/* ============================================================
   BLINO GROUP — Landing cinematográfica legal
   Dirección: documental oscuro · Cormorant Garamond + Manrope · plateado/acero
   ============================================================ */

:root {
    --bg:        #0d0d0d;
    --bg-2:      #111214;
    --bg-3:      #08090b;
    --panel:     #16171a;
    --line:      rgba(200, 205, 214, 0.24);
    --gold:      #b9c0cc;
    --gold-hi:   #eef1f6;
    --gold-soft: rgba(200, 205, 214, 0.14);
    --text:      #ece7df;
    --text-dim:  #a49f96;
    --text-mut:  #6f6b64;
    --white:     #f4f1ea;
    --wa:        #25d366;
    --ff-serif:  "Cormorant Garamond", Georgia, serif;
    --ff-sans:   "Manrope", system-ui, -apple-system, sans-serif;
    --ease:      cubic-bezier(0.22, 1, 0.36, 1);
    --maxw:      1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--ff-sans);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* subtle film grain over the whole page */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- shared layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }

section { position: relative; z-index: 2; }

.eyebrow {
    font-family: var(--ff-sans);
    font-size: 0.72rem;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 14px;
}
.eyebrow::before {
    content: "";
    width: 34px; height: 1px;
    background: var(--gold);
    opacity: 0.7;
}

.section-num {
    position: absolute;
    font-family: var(--ff-serif);
    font-size: clamp(4.5rem, 12vw, 9rem);
    line-height: 1;
    font-weight: 300;
    color: transparent;
    -webkit-text-stroke: 1px rgba(200, 205, 214, 0.16);
    top: -0.15em;
    right: 4%;
    pointer-events: none;
    user-select: none;
    z-index: 1;
}

h2.title {
    font-family: var(--ff-serif);
    font-weight: 500;
    font-size: clamp(2.3rem, 5.2vw, 4rem);
    line-height: 1.04;
    letter-spacing: -0.01em;
    color: var(--white);
    margin: 22px 0 0;
}
h2.title em { font-style: italic; color: var(--gold-hi); }

.lead {
    font-size: 1.1rem;
    color: var(--text-dim);
    max-width: 620px;
    margin-top: 20px;
}

.ruled { height: 1px; background: var(--line); border: 0; }

/* reveal base state (JS toggles .is-in) */
.reveal { opacity: 0; transform: translateY(34px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal[data-d="1"].is-in { transition-delay: 0.09s; }
.reveal[data-d="2"].is-in { transition-delay: 0.18s; }
.reveal[data-d="3"].is-in { transition-delay: 0.27s; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   TOP BAR (logo only, no nav that pulls away — minimal)
   ============================================================ */
.topbar {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 20;
    padding: 22px 0;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 46px; height: 46px; border-radius: 50%; background: var(--white); padding: 4px; }
.brand span {
    font-family: var(--ff-serif);
    font-size: 1.35rem;
    letter-spacing: 0.02em;
    color: var(--white);
    font-weight: 600;
}
.topbar__cta {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-hi);
    border: 1px solid var(--line);
    padding: 11px 20px;
    transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.topbar__cta:hover { background: var(--gold-soft); border-color: var(--gold); }
@media (max-width: 640px){ .topbar__cta { display: none; } .brand span { font-size: 1.15rem; } }

/* ============================================================
   1. HERO
   ============================================================ */
.legal-hero {
    position: relative;
    width: 100%;
    height: clamp(560px, 88vh, 900px);
    overflow: hidden;
    background: #0d0d0d;
    display: flex;
    align-items: center;
}
.legal-hero__image {
    position: absolute;
    inset: -5%;
    width: 110%;
    height: 110%;
    background-image: url("./assets/hero-banner.webp");
    background-size: cover;
    background-position: center center;
    will-change: transform;
    transform: scale(1.08);
}
.legal-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(6, 9, 12, 0.94) 0%,
        rgba(6, 9, 12, 0.80) 28%,
        rgba(6, 9, 12, 0.34) 58%,
        rgba(6, 9, 12, 0.05) 100%);
    pointer-events: none;
}
/* extra bottom fade so it melts into the next section */
.legal-hero::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: 0; height: 30%;
    background: linear-gradient(to top, var(--bg) 0%, rgba(13,13,13,0) 100%);
    z-index: 3; pointer-events: none;
}
.legal-hero__light {
    position: absolute;
    top: -30%;
    left: -40%;
    width: 28%;
    height: 170%;
    background: linear-gradient(90deg,
        transparent,
        rgba(200, 205, 214, 0.10),
        rgba(238, 241, 246, 0.16),
        rgba(200, 205, 214, 0.08),
        transparent);
    filter: blur(22px);
    transform: rotate(12deg) translateX(-150%);
    mix-blend-mode: screen;
    opacity: 0;
    pointer-events: none;
    z-index: 2;
}
.legal-hero__content {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}
.hero-inner { max-width: 640px; }
.hero-inner .eyebrow { margin-bottom: 26px; }
.legal-hero h1 {
    font-family: var(--ff-serif);
    font-weight: 500;
    font-size: clamp(2.8rem, 7vw, 5.6rem);
    line-height: 1.0;
    letter-spacing: -0.015em;
    color: var(--white);
    text-transform: none;
}
.legal-hero h1 em { font-style: italic; color: var(--gold-hi); display: block; }
.legal-hero h1 em .amp { font-style: normal; }
.legal-hero .hero-sub {
    margin-top: 26px;
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    color: var(--text-dim);
    max-width: 460px;
}
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--ff-sans);
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 17px 30px;
    cursor: pointer;
    transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease);
    border: 1px solid transparent;
}
.btn--gold {
    background: linear-gradient(180deg, var(--gold-hi), var(--gold));
    color: #10151c;
    box-shadow: 0 12px 40px -12px rgba(200,205,214,0.6);
}
.btn--gold:hover { transform: translateY(-3px); box-shadow: 0 20px 50px -14px rgba(200,205,214,0.75); }
.btn--ghost { border-color: var(--line); color: var(--white); }
.btn--ghost:hover { border-color: var(--gold); background: var(--gold-soft); transform: translateY(-3px); }
.btn--wa { background: var(--wa); color: #06301a; box-shadow: 0 12px 40px -12px rgba(37,211,102,0.55); }
.btn--wa:hover { transform: translateY(-3px); box-shadow: 0 20px 52px -14px rgba(37,211,102,0.7); }
.btn svg { width: 20px; height: 20px; }

.hero-scroll {
    position: absolute; z-index: 5; bottom: 30px; left: 50%; transform: translateX(-50%);
    font-size: 0.66rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--text-mut);
    display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero-scroll .bar { width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); animation: drop 2.2s var(--ease) infinite; }
@keyframes drop { 0%{transform:scaleY(0);transform-origin:top} 45%{transform:scaleY(1);transform-origin:top} 55%{transform:scaleY(1);transform-origin:bottom} 100%{transform:scaleY(0);transform-origin:bottom} }

@media (max-width: 768px) {
    .legal-hero { height: 640px; }
    .legal-hero__image { background-position: 66% center; }
    .legal-hero__overlay {
        background: linear-gradient(180deg,
            rgba(6,9,12,.62) 0%,
            rgba(6,9,12,.72) 45%,
            rgba(6,9,12,.92) 100%);
    }
    .hero-scroll { display: none; }
}

/* ============================================================
   2. SERVICIOS
   ============================================================ */
.services { padding: clamp(90px, 12vw, 150px) 0 clamp(70px, 9vw, 120px); }
.services__head { max-width: 640px; margin-bottom: 60px; }

.svc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.svc-card {
    position: relative;
    min-height: 400px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    border: 1px solid rgba(255,255,255,0.06);
    transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease), border-color 0.55s var(--ease);
    isolation: isolate;
}
.svc-card__img {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    transform: scale(1.02);
    transition: transform 0.9s var(--ease), filter 0.6s var(--ease);
    filter: grayscale(0.35) brightness(0.62);
    z-index: -2;
}
.svc-card::after {
    content: "";
    position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(8,9,11,0) 30%, rgba(8,9,11,0.78) 74%, rgba(8,9,11,0.96) 100%);
    transition: background 0.55s var(--ease);
}
.svc-card__body { padding: 28px 24px 30px; position: relative; z-index: 2; }
.svc-card__idx {
    font-family: var(--ff-serif); font-size: 0.95rem; color: var(--gold);
    letter-spacing: 0.1em; margin-bottom: 12px; display: block;
}
.svc-card h3 {
    font-family: var(--ff-serif); font-weight: 600;
    font-size: 1.7rem; line-height: 1.08; color: var(--white); margin-bottom: 12px;
}
.svc-card p { font-size: 0.92rem; color: var(--text-dim); max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.55s var(--ease), opacity 0.5s var(--ease), margin 0.55s var(--ease); }
.svc-card__line { width: 40px; height: 2px; background: var(--gold); margin-top: 4px; transition: width 0.55s var(--ease); }

.svc-card:hover {
    transform: translateY(-10px) scale(1.012);
    box-shadow: 0 30px 60px -24px rgba(0,0,0,0.85);
    border-color: var(--line);
}
.svc-card:hover .svc-card__img { transform: scale(1.1); filter: grayscale(0) brightness(0.72); }
.svc-card:hover::after { background: linear-gradient(180deg, rgba(8,9,11,0.1) 10%, rgba(8,9,11,0.72) 55%, rgba(10,12,15,0.97) 100%); }
.svc-card:hover p { max-height: 160px; opacity: 1; margin-top: 8px; }
.svc-card:hover .svc-card__line { width: 64px; }

@media (max-width: 980px){ .svc-grid { grid-template-columns: repeat(2, 1fr); } .svc-card { min-height: 340px; } .svc-card p { max-height: 160px; opacity: 1; margin-top: 8px; } }
@media (max-width: 520px){ .svc-grid { grid-template-columns: 1fr; } }

/* ============================================================
   3. ÁREAS DE PRÁCTICA (contrast band)
   ============================================================ */
.areas {
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(200,205,214,0.07), transparent 55%),
        var(--bg-2);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: clamp(90px, 12vw, 150px) 0;
}
.areas__head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 30px; margin-bottom: 56px; }
.areas__head .lead { margin-top: 0; }

.area-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.06); }
.area {
    background: var(--bg-2);
    padding: 40px 34px 44px;
    transition: background 0.5s var(--ease);
    position: relative;
}
.area:hover { background: var(--panel); }
.area__n { font-family: var(--ff-serif); font-size: 1.1rem; color: var(--gold); letter-spacing: 0.1em; }
.area h3 {
    font-family: var(--ff-sans); font-weight: 700; font-size: 0.94rem;
    letter-spacing: 0.12em; text-transform: uppercase; color: var(--white);
    margin: 18px 0 14px; line-height: 1.4;
}
.area p { font-size: 0.95rem; color: var(--text-dim); }
.area::before {
    content: ""; position: absolute; left: 0; top: 0; width: 0; height: 2px;
    background: linear-gradient(90deg, var(--gold-hi), var(--gold)); transition: width 0.5s var(--ease);
}
.area:hover::before { width: 100%; }

@media (max-width: 900px){ .area-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .area-grid { grid-template-columns: 1fr; } }

/* ============================================================
   4. VISIÓN
   ============================================================ */
.vision {
    padding: clamp(100px, 14vw, 180px) 0;
    background:
        radial-gradient(90% 120% at 0% 50%, rgba(200,205,214,0.06), transparent 60%),
        var(--bg-3);
}
.vision__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }
.vision__aside { position: sticky; top: 80px; }
.vision__aside .title { margin-top: 20px; }
.vision__mark {
    margin-top: 34px; font-family: var(--ff-serif); font-style: italic;
    font-size: 1.4rem; color: var(--gold-hi); line-height: 1.4; border-left: 2px solid var(--gold); padding-left: 22px;
}
.vision__body p { font-size: 1.18rem; line-height: 1.85; color: var(--text-dim); margin-bottom: 28px; }
.vision__body p:first-child::first-letter {
    font-family: var(--ff-serif); font-size: 3.6rem; line-height: 0.8; float: left;
    padding: 8px 14px 0 0; color: var(--gold-hi); font-weight: 500;
}
.vision__body p strong, .vision__body em { color: var(--white); font-style: normal; }
@media (max-width: 860px){ .vision__grid { grid-template-columns: 1fr; gap: 40px; } .vision__aside { position: static; } }

/* ============================================================
   5. CÓMO TRABAJAMOS (timeline)
   ============================================================ */
.process { padding: clamp(90px, 12vw, 150px) 0; background: var(--bg); }
.process__head { max-width: 700px; margin-bottom: 66px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; position: relative; }
.steps::before {
    content: ""; position: absolute; top: 46px; left: 8%; right: 8%; height: 1px;
    background: repeating-linear-gradient(90deg, var(--gold) 0 6px, transparent 6px 14px);
    opacity: 0.5;
}
.step { position: relative; text-align: left; }
.step__icon {
    width: 92px; height: 92px; border-radius: 50%;
    background: var(--panel); border: 1px solid var(--line);
    display: grid; place-items: center; margin-bottom: 26px; position: relative; z-index: 2;
    transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.step__icon img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.step:hover .step__icon { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 18px 40px -16px rgba(200,205,214,0.45); }
.step__n { font-family: var(--ff-serif); font-size: 0.9rem; letter-spacing: 0.3em; color: var(--gold); text-transform: uppercase; }
.step h3 { font-family: var(--ff-serif); font-weight: 600; font-size: 1.65rem; color: var(--white); margin: 8px 0 14px; }
.step p { font-size: 0.97rem; color: var(--text-dim); }

@media (max-width: 800px){
    .steps { grid-template-columns: 1fr; gap: 44px; }
    .steps::before { top: 0; bottom: 0; left: 45px; right: auto; width: 1px; height: auto;
        background: repeating-linear-gradient(180deg, var(--gold) 0 6px, transparent 6px 14px); }
    .step { padding-left: 118px; }
    .step__icon { position: absolute; left: 0; top: 0; margin: 0; width: 92px; }
}

/* ============================================================
   6. CONTACTO (CTA)
   ============================================================ */
.contact {
    position: relative;
    padding: clamp(100px, 14vw, 190px) 0;
    text-align: center;
    background:
        radial-gradient(60% 90% at 50% 0%, rgba(200,205,214,0.14), transparent 60%),
        var(--bg-3);
    border-top: 1px solid var(--line);
    overflow: hidden;
}
.contact__logo { width: 96px; height: 96px; margin: 0 auto 34px; border-radius: 50%; background: var(--white); padding: 12px; box-shadow: 0 0 0 1px var(--line), 0 26px 60px -24px rgba(200,205,214,0.5); }
.contact h2 {
    font-family: var(--ff-serif); font-weight: 600;
    font-size: clamp(3rem, 11vw, 8rem); line-height: 0.94;
    letter-spacing: -0.02em; color: var(--white);
    text-transform: uppercase;
}
.contact h2 span { color: transparent; -webkit-text-stroke: 1.4px var(--gold); }
.contact p.lead { margin: 26px auto 0; text-align: center; }
.contact__actions { margin-top: 46px; display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }
.contact__meta { margin-top: 44px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.contact__meta span { font-size: 0.82rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-mut); }
.wa-imgbtn { display: inline-block; transition: transform 0.35s var(--ease), filter 0.35s var(--ease); filter: drop-shadow(0 14px 34px rgba(37,211,102,0.32)); }
.wa-imgbtn img { width: 260px; height: auto; }
.wa-imgbtn:hover { transform: translateY(-3px) scale(1.03); filter: drop-shadow(0 20px 44px rgba(37,211,102,0.5)); }
@media (max-width: 480px){ .wa-imgbtn img { width: 220px; } }

/* ============================================================
   7. FOOTER
   ============================================================ */
.footer { background: var(--bg-3); border-top: 1px solid rgba(255,255,255,0.06); padding: 66px 0 40px; }
.footer__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.footer__brand { display: flex; align-items: center; gap: 14px; max-width: 320px; }
.footer__brand img { width: 54px; height: 54px; border-radius: 50%; background: var(--white); padding: 5px; }
.footer__brand div span { font-family: var(--ff-serif); font-size: 1.4rem; color: var(--white); font-weight: 600; display: block; }
.footer__brand div small { font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-mut); }
.footer__brand div small.footer__area { display: block; margin-top: 8px; letter-spacing: 0.06em; text-transform: none; font-size: 0.78rem; color: var(--text-dim); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 12px 34px; }
.footer__nav a { font-size: 0.9rem; color: var(--text-dim); position: relative; transition: color 0.35s var(--ease); }
.footer__nav a::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 0; height: 1px; background: var(--gold); transition: width 0.35s var(--ease); }
.footer__nav a:hover { color: var(--white); }
.footer__nav a:hover::after { width: 100%; }
.footer__bottom { margin-top: 50px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.06); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; font-size: 0.82rem; color: var(--text-mut); }
.footer__credit a { color: var(--gold); display: inline-flex; align-items: center; gap: 7px; transition: color 0.3s var(--ease); }
.footer__credit a:hover { color: var(--gold-hi); }
.footer__credit svg { width: 16px; height: 16px; }

/* ============================================================
   Floating WhatsApp
   ============================================================ */
.wa-float {
    position: fixed; z-index: 60; right: 22px; bottom: 22px;
    width: 60px; height: 60px; border-radius: 50%;
    background: var(--wa); display: grid; place-items: center;
    box-shadow: 0 14px 34px -8px rgba(37,211,102,0.6);
    transition: transform 0.35s var(--ease);
    padding-bottom: env(safe-area-inset-bottom);
}
.wa-float:hover { transform: scale(1.08) rotate(-4deg); }
.wa-float svg { width: 32px; height: 32px; }
.wa-float::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%;
    border: 2px solid var(--wa); animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { 0%{transform:scale(1);opacity:0.7} 100%{transform:scale(1.7);opacity:0} }
@media (max-width: 640px){ .wa-float { width: 54px; height: 54px; } }
