/* Acosta & Díaz — Dirección visual 2 "Trazado"
   Identidad de estudio profesional: azul noche dominante, blanco como superficie de contenido
   (formulario, panel de confianza), grafito/acero para detalle. Sin gradientes, sin dorados,
   sin terracota. Tipografía Sora (títulos/numerales) + DM Sans (cuerpo/UI). Sin serif.
   El sitio compromete una identidad visual única (no sigue prefers-color-scheme del sistema). */

:root{
  --navy-deep:#071A33; --navy-alt:#0A2140; --navy-raised:#0F2A4D; --navy-raised-hi:#153A66;
  --steel-line:#22374F; --steel-soft:#8FA0B5; --steel-dim:#5E7188; --steel-text:#7B8FA6;
  --white:#FFFFFF; --ink:#0B0D10; --ink-secondary:#4C596B;
  --line-on-light:#DDE2E7;
  --radius:0px;
  --col-gap:22px; --edge:24px; --maxw:1280px;
  color-scheme: dark;
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
html,body{margin:0;}
body{
  background:var(--navy-deep); color:var(--white);
  font-family:'DM Sans',system-ui,-apple-system,"Segoe UI",sans-serif;
  padding-inline:var(--edge);
  -webkit-font-smoothing:antialiased;
  font-size:16px;
}
h1,h2,h3,.display{font-family:'Sora',system-ui,sans-serif; font-weight:600; text-wrap:balance; margin:0; letter-spacing:0;}
p{line-height:1.7; margin:0;}
a{color:inherit;}
ul{margin:0; padding:0; list-style:none;}
button{font-family:inherit;}
img,svg{max-width:100%; display:block;}
:focus-visible{outline:2px solid var(--white); outline-offset:2px;}
[hidden]{display:none !important;}

.wrap{max-width:var(--maxw); margin-inline:auto; position:relative;}
.grid12{display:grid; grid-template-columns:repeat(12,1fr); gap:var(--col-gap);}

.eyebrow{display:flex; align-items:center; gap:10px; font-size:.72rem; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:var(--steel-soft); font-variant-numeric:tabular-nums;}
.eyebrow--nosotros{margin-bottom:24px;}
.eyebrow--contacto{margin-bottom:20px;}
.footer-brand-link{margin-bottom:16px; display:flex;}
.footer-razon{margin-top:16px;}
.eyebrow::before{content:""; width:22px; height:1px; background:var(--steel-dim);}

.section{padding-block:96px; border-top:1px solid var(--steel-line);}
.section:first-of-type{border-top:none;}
.section-alt{background:var(--navy-alt); margin-inline:calc(-1 * var(--edge)); padding-inline:var(--edge);}
.surface-light{background:var(--white); color:var(--ink); border-color:var(--line-on-light); margin-inline:calc(-1 * var(--edge)); padding-inline:var(--edge);}
.surface-light .eyebrow,.surface-light .section-head p{color:var(--ink-secondary);}
.surface-light .eyebrow::before{background:var(--ink-secondary);}
.surface-light .section-head h2{color:var(--ink);}
.surface-light :focus-visible{outline-color:var(--ink);}
.section-head{grid-column:1/8; margin-bottom:56px;}
.section-head h2{font-size:clamp(1.7rem,3vw,2.35rem); margin-top:16px; line-height:1.18; font-weight:700; letter-spacing:-.018em;}
.section-head p{color:var(--steel-soft); margin-top:16px; font-size:1.02rem; max-width:58ch;}
@media (max-width:900px){ .section{padding-block:60px;} .section-head{grid-column:1/-1;} }

.skip-link{position:absolute; left:12px; top:-60px; background:var(--white); color:var(--ink); padding:10px 16px; z-index:200; transition:top .15s ease; font-size:.9rem; font-weight:600;}
.skip-link:focus{top:12px;}

header.site{position:sticky; top:env(safe-area-inset-top,0px); z-index:100; background:var(--navy-deep); border-bottom:1px solid var(--steel-line); margin-inline:calc(-1 * var(--edge)); padding-inline:var(--edge);}
.header-row{display:flex; align-items:center; justify-content:space-between; gap:16px; height:80px;}
.brand{display:flex; flex-direction:column; line-height:1.1; gap:3px; text-decoration:none; color:var(--white);}
.brand .word{font-family:'Sora',sans-serif; font-weight:700; font-size:1.14rem; letter-spacing:-.01em;}
.brand .desc{font-size:.66rem; letter-spacing:.13em; text-transform:uppercase; color:var(--steel-soft); font-weight:500;}
nav.primary{display:flex; align-items:center; gap:32px;}
nav.primary a{font-size:.85rem; letter-spacing:.01em; color:var(--steel-soft); text-decoration:none; padding-bottom:4px; border-bottom:1px solid transparent; transition:color .15s ease,border-color .15s ease;}
nav.primary a:hover{color:var(--white); border-color:var(--white);}
.header-actions{display:flex; align-items:center; gap:22px;}
.text-link{display:inline-flex; align-items:center; gap:8px; font-size:.9rem; font-weight:600; text-decoration:none; color:var(--white); border-bottom:1px solid var(--steel-dim); padding-bottom:2px; transition:border-color .15s ease, gap .15s ease;}
.text-link:hover{border-color:var(--white); gap:11px;}
.text-link svg{width:14px; height:14px;}
.header-wa-desktop{display:inline-flex;}
.menu-toggle{display:none; background:none; border:1px solid var(--steel-line); border-radius:var(--radius); width:40px; height:40px; align-items:center; justify-content:center; cursor:pointer; color:var(--white);}
.menu-toggle svg{width:18px; height:18px;}

.btn{display:inline-flex; align-items:center; justify-content:center; gap:12px; min-height:48px; white-space:nowrap; padding:13px 22px; border-radius:var(--radius); font-weight:700; font-size:.86rem; letter-spacing:.015em; text-decoration:none; border:1px solid var(--white); cursor:pointer; transition:background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;}
.btn-primary{background:var(--white); color:var(--ink);}
.btn-primary:hover{background:var(--steel-soft); border-color:var(--steel-soft); box-shadow:4px 4px 0 rgba(255,255,255,.16);}
.btn:hover{transform:translateY(-2px);}
.btn:active{transform:translateY(0);}
.btn-arrow{font-size:1.08em; line-height:1; transition:transform .18s ease;}
.btn:hover .btn-arrow{transform:translateX(3px);}
.btn-outline{background:transparent; color:var(--white); border-color:var(--steel-dim);}
.btn-outline:hover{border-color:var(--white);}
.btn svg{width:15px; height:15px; flex-shrink:0;}

.mobile-panel{display:none; flex-direction:column; gap:0; padding-block:8px 24px; border-top:1px solid var(--steel-line);}
.mobile-panel a{padding:14px 2px; font-size:1.05rem; text-decoration:none; color:var(--white); border-bottom:1px solid var(--steel-line);}
.mobile-panel .btn{margin-top:18px; justify-content:center;}
.mobile-panel .btn-primary{color:var(--ink);}
@media (max-width:1100px){
  nav.primary,.header-wa-desktop{display:none;}
  .menu-toggle{display:inline-flex;}
  header.site.open .mobile-panel{display:flex;}
}

.hero{padding-block:72px 88px; overflow:hidden;}
.hero-lines{position:absolute; inset:0; pointer-events:none; opacity:.42;}
.hero-lines svg{width:100%; height:100%;}
.hero-head{grid-column:1/8; position:relative;}
.hero h1{font-size:clamp(2.15rem,4.1vw,3.2rem); line-height:1.12; margin-top:18px; max-width:18ch; font-weight:700; letter-spacing:-.035em;}
.hero .lede{font-size:clamp(1rem,1.15vw,1.08rem); color:var(--steel-soft); margin-top:22px; max-width:50ch;}
.hero-actions{display:flex; flex-wrap:wrap; align-items:center; gap:26px; margin-top:36px;}
.hero-panel{grid-column:9/13; position:relative; align-self:end;}
.hero-panel .frame{border:1px solid var(--steel-dim); padding:18px 20px; position:relative;}
.hero-panel .frame::before,.hero-panel .frame::after{content:""; position:absolute; width:10px; height:10px; border:1px solid var(--white);}
.hero-panel .frame::before{top:-1px; left:-1px; border-right:none; border-bottom:none;}
.hero-panel .frame::after{bottom:-1px; right:-1px; border-left:none; border-top:none;}
.hero-panel .cap{font-size:.68rem; letter-spacing:.12em; text-transform:uppercase; color:var(--steel-soft); margin-bottom:12px;}
.hero-panel ol{counter-reset:seg; display:flex; flex-direction:column;}
.hero-panel li{counter-increment:seg; font-family:'Sora',sans-serif; font-weight:600; font-size:.92rem; padding-block:8px; border-top:1px solid var(--steel-line); display:flex; gap:12px; align-items:baseline;}
.hero-panel li:first-child{border-top:none;}
.hero-panel li::before{content:"0" counter(seg); color:var(--steel-text); font-size:.78rem; font-variant-numeric:tabular-nums;}
@media (max-width:900px){
  .hero-head{grid-column:1/-1;}
  .hero-panel{grid-column:1/-1; margin-top:44px; align-self:auto;}
}
@media (min-width:901px) and (max-width:1050px){
  .hero-head{grid-column:1/-1;}
  .hero-panel{grid-column:1/-1; margin-top:44px; align-self:auto;}
}

.services-grid{grid-column:1/-1; display:grid; grid-template-columns:repeat(12,1fr); gap:var(--col-gap);}
.svc{grid-column:span 12; background:var(--navy-raised); border:1px solid var(--steel-line); padding:32px; position:relative; overflow:hidden; display:flex; flex-direction:column; gap:16px; transition:background .18s ease, border-color .18s ease,transform .18s ease;}
.svc:hover{background:var(--navy-raised-hi); border-color:var(--steel-dim);}
.svc::after{content:""; position:absolute; left:32px; right:32px; bottom:0; height:1px; background:var(--white); transform:scaleX(0); transform-origin:left; transition:transform .22s ease;}
.svc:hover::after{transform:scaleX(1);}
.svc .ghost{position:absolute; top:-.15em; right:14px; font-family:'Sora',sans-serif; font-weight:700; font-size:6.5rem; color:rgba(255,255,255,.05); line-height:1; pointer-events:none; user-select:none;}
.svc h3{font-size:1.28rem; position:relative;}
.svc p{color:var(--steel-soft); font-size:.96rem; max-width:44ch; position:relative;}
.svc ul{display:flex; flex-direction:column; gap:7px; position:relative;}
.svc li{font-size:.88rem; color:var(--white); padding-left:14px; position:relative;}
.svc li::before{content:"–"; position:absolute; left:0; color:var(--steel-dim);}
.svc .text-link{align-self:flex-start; margin-top:4px;}
.surface-light .svc{background:#F4F6F8; border-color:var(--line-on-light);}
.surface-light .svc:hover{background:#EEF2F5; border-color:#B9C4D0;}
.surface-light .svc::after{background:var(--ink);}
.surface-light .svc .ghost{color:rgba(11,13,16,.055);}
.surface-light .svc h3,.surface-light .svc li{color:var(--ink);}
.surface-light .svc p{color:var(--ink-secondary);}
.surface-light .svc li::before{color:var(--ink-secondary);}
.surface-light .text-link{color:var(--ink); border-color:#AAB5C0;}
.surface-light .text-link:hover{border-color:var(--ink);}
@media (min-width:1051px){
  .svc-1{grid-column:1/8;} .svc-2{grid-column:8/13;}
  .svc-3{grid-column:1/5;} .svc-4{grid-column:5/10;} .svc-5{grid-column:10/13;}
}

.steps-line{grid-column:1/-1; height:1px; background:var(--steel-line); position:relative;}
.steps{grid-column:1/-1; display:grid; grid-template-columns:repeat(4,1fr); gap:var(--col-gap); margin-top:-1px;}
.step{padding-top:26px; position:relative;}
.step .num{font-family:'Sora',sans-serif; font-weight:700; color:var(--steel-soft); font-size:.85rem; letter-spacing:.08em; margin-bottom:14px; display:block; font-variant-numeric:tabular-nums;}
.step h3{font-size:1.02rem; margin-bottom:10px; font-weight:700;}
.step p{font-size:.92rem; color:var(--steel-soft);}
.surface-light .steps-line{background:var(--line-on-light);}
.surface-light .step .num,.surface-light .step p{color:var(--ink-secondary);}
.surface-light .step h3{color:var(--ink);}
@media (max-width:900px){ .steps{grid-template-columns:1fr; gap:38px;} }
@media (min-width:901px) and (max-width:1050px){ .steps{grid-template-columns:repeat(2,1fr); row-gap:38px;} }

.about-statement{grid-column:1/6;}
.about-statement p{font-family:'Sora',sans-serif; font-weight:600; font-size:1.5rem; line-height:1.4; color:var(--white);}
.about-panel{grid-column:7/13; background:var(--white); color:var(--ink); padding:8px 36px;}
.about-item{padding-block:24px; border-top:1px solid var(--line-on-light);}
.about-panel .about-item:first-child{border-top:none;}
.about-item h3{font-size:1rem; font-weight:700; font-family:'Sora',sans-serif; color:var(--ink);}
.about-item p{font-size:.92rem; color:var(--ink-secondary); margin-top:6px;}
.surface-light .about-statement p:not(.eyebrow){color:var(--ink);}
.surface-light .about-panel{background:#F4F6F8;}
@media (max-width:900px){
  .about-statement,.about-panel{grid-column:1/-1;}
  .about-statement{margin-bottom:44px;}
  .about-panel{padding:8px 24px;}
}

.faq-list{grid-column:1/-1;}
details.faq-item{border-top:1px solid var(--steel-line); padding-block:26px;}
.faq-list details.faq-item:last-child{border-bottom:1px solid var(--steel-line);}
details.faq-item .faq-idx{font-family:'Sora',sans-serif; font-weight:700; color:var(--steel-text); font-size:.82rem; padding-top:4px; font-variant-numeric:tabular-nums;}
details.faq-item summary{display:grid; grid-template-columns:48px minmax(0,1fr) 18px; align-items:start; gap:var(--col-gap); list-style:none; cursor:pointer; font-family:'Sora',sans-serif; font-weight:600; font-size:1.08rem; line-height:1.4; color:var(--white);}
details.faq-item summary::-webkit-details-marker{display:none;}
.faq-mark{width:18px; height:18px; position:relative; margin-top:3px;}
.faq-mark::before,.faq-mark::after{content:""; position:absolute; background:var(--white); top:50%; left:50%; transform:translate(-50%,-50%);}
.faq-mark::before{width:13px; height:1.4px;}
.faq-mark::after{width:1.4px; height:13px; transition:transform .18s ease;}
details[open] .faq-mark::after{transform:translate(-50%,-50%) rotate(90deg); opacity:0;}
details.faq-item .answer{margin:14px 18px 0 calc(48px + var(--col-gap)); color:var(--steel-soft); font-size:.96rem; max-width:62ch;}
.surface-light details.faq-item{border-color:var(--line-on-light);}
.surface-light details.faq-item .faq-idx,.surface-light details.faq-item .answer{color:var(--ink-secondary);}
.surface-light details.faq-item summary{color:var(--ink);}
.surface-light .faq-mark::before,.surface-light .faq-mark::after{background:var(--ink);}

.contact-statement{grid-column:1/6;}
.contact-statement h2{font-size:clamp(1.7rem,3vw,2.35rem); line-height:1.22;}
.contact-statement p{color:var(--steel-soft); margin-top:18px; max-width:42ch;}
.contact-links{margin-top:30px; display:flex; flex-direction:column; gap:14px; align-items:flex-start;}
.contact-links .text-link{font-size:1.02rem;}
p.contact-note{margin-top:30px; font-size:.82rem; color:var(--steel-text); max-width:42ch;}
.contact-panel{grid-column:7/13; background:var(--white); color:var(--ink); padding:36px;}
.field{border-bottom:1px solid var(--line-on-light); padding-block:16px; display:flex; flex-direction:column; gap:8px;}
.field label{font-size:.7rem; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-secondary); font-weight:700;}
.field input, .field select, .field textarea{font-family:'DM Sans',inherit; font-size:1rem; padding:0; border:none; background:transparent; color:var(--ink); width:100%;}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible{outline:2px solid var(--ink); outline-offset:4px;}
.field textarea{resize:vertical; min-height:64px;}
.field:focus-within{border-color:var(--ink);}
.contact-panel .btn{margin-top:24px; border-color:var(--ink); background:var(--ink); color:var(--white);}
.contact-panel .btn:hover{background:var(--ink-secondary); border-color:var(--ink-secondary);}
.form-note{font-size:.78rem; color:var(--ink-secondary); margin-top:18px; max-width:46ch;}
@media (max-width:900px){ .contact-statement,.contact-panel{grid-column:1/-1;} .contact-panel{margin-top:44px; padding:28px;} }

footer{border-top:1px solid var(--steel-line); padding-block:56px 32px;}
.footer-grid{grid-column:1/-1; display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:var(--col-gap);}
footer h4{font-size:.68rem; text-transform:uppercase; letter-spacing:.12em; color:var(--steel-text); margin-bottom:16px; font-weight:700;}
footer .brand .word{font-size:1.05rem;}
footer p, footer li{font-size:.87rem; color:var(--steel-soft);}
footer li{margin-bottom:10px;}
footer a{text-decoration:none;}
footer a:hover{color:var(--white);}
.footer-note{font-size:.72rem; color:var(--steel-text); margin-top:4px;}
.footer-bottom{grid-column:1/-1; margin-top:48px; padding-top:22px; border-top:1px solid var(--steel-line); display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; font-size:.78rem; color:var(--steel-text);}
@media (max-width:900px){ .footer-grid{grid-template-columns:1fr 1fr; row-gap:32px;} }
@media (min-width:901px) and (max-width:1050px){ .footer-grid{grid-template-columns:1fr 1fr; row-gap:32px;} }

@media (max-width:600px){
  details.faq-item{padding-block:21px;}
  details.faq-item summary{grid-template-columns:28px minmax(0,1fr) 18px; gap:12px; font-size:1rem; line-height:1.35;}
  details.faq-item .faq-idx{font-size:.76rem; padding-top:3px;}
  .faq-mark{margin-top:2px;}
  details.faq-item .answer{margin-left:40px; margin-right:0; font-size:.95rem;}
}

.fab{position:fixed; right:var(--edge); bottom:calc(20px + env(safe-area-inset-bottom,0px)); z-index:150; min-height:52px; padding:0 17px; gap:10px; border-radius:var(--radius); background:var(--navy-deep); color:var(--white); display:flex; align-items:center; justify-content:center; text-decoration:none; border:1px solid #284563; box-shadow:0 10px 24px rgba(7,26,51,.28); cursor:pointer; font-size:.78rem; font-weight:700; letter-spacing:.02em; transition:background .15s ease,border-color .15s ease,box-shadow .15s ease,transform .15s ease;}
.fab:hover{background:var(--navy-raised-hi); border-color:var(--white); box-shadow:0 14px 28px rgba(7,26,51,.34);}
.fab svg{width:21px; height:21px; flex:0 0 auto;}
@media (max-width:900px){
  .fab{opacity:0; pointer-events:none; transform:translateY(10px); transition:opacity .18s ease,transform .18s ease,background .15s ease;}
  .fab.is-visible{opacity:1; pointer-events:auto; transform:translateY(0);}
}

@media (prefers-reduced-motion:reduce){ *{transition:none !important;} }

@media (prefers-reduced-motion:no-preference){
  .hero-lines .trace-diagonal{stroke-dasharray:120 760; animation:trace-drift 15s linear infinite;}
  .hero-lines .trace-node{animation:trace-node 3.6s ease-in-out infinite; transform-origin:center;}
  .hero-lines .trace-node--late{animation-delay:1.2s;}
  .has-motion .reveal{opacity:0; transform:translateY(14px); transition:opacity .38s ease,transform .38s ease;}
  .has-motion .reveal.is-revealed{opacity:1; transform:translateY(0);}
  .has-motion .services-grid .svc:nth-child(2).is-revealed{transition-delay:.05s;}
  .has-motion .services-grid .svc:nth-child(3).is-revealed{transition-delay:.09s;}
  .has-motion .services-grid .svc:nth-child(4).is-revealed{transition-delay:.13s;}
  .has-motion .services-grid .svc:nth-child(5).is-revealed{transition-delay:.17s;}
}
@keyframes trace-drift{to{stroke-dashoffset:-880;}}
@keyframes trace-node{0%,100%{opacity:.55; transform:scale(1);}50%{opacity:1; transform:scale(1.35);}}
