/* ==========================================
   FORAWAY — H5 Stylesheet (Navy "broadsheet")
   Distinct from gafival (no sidebar/ledger): top header, bold navy-bar
   cards, vertical timeline, corner-accent tiles, 2x2 diferenciadores.
   Theme colors unchanged: navy #0C1424 · gold #C9A227
   ========================================== */

:root{
  --navy:     #0C1424;
  --navy-2:   #111F33;
  --gold:     #C9A227;
  --gold-lt:  #E6CD88;
  --blue:     #4A7BC0;
  --paper:    #FFFFFF;
  --cream:    #F3F0E9;
  --ink:      #23303F;
  --muted:    #6B7787;
  --line:     rgba(12,20,36,.12);
  --line-2:   rgba(201,162,39,.35);
  --shadow:   0 22px 50px -26px rgba(12,20,36,.42);
  --wrap:     1140px;
  --ease:     cubic-bezier(.22,.68,.36,1);
  --f-disp:   "Cormorant Garamond", Georgia, serif;
  --f-body:   "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --f-mono:   "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body{
  margin:0; font-family:var(--f-body); font-size:16px; line-height:1.7;
  color:var(--ink); background:var(--cream); overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
img,svg{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul,ol{ margin:0; padding:0; list-style:none; }
h1,h2,h3{ margin:0; line-height:1.15; font-weight:600; }
p{ margin:0 0 1em; }
p:last-child{ margin-bottom:0; }
.wrap{ width:100%; max-width:var(--wrap); margin:0 auto; padding:0 22px; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:14px 30px; border-radius:999px; border:1px solid transparent;
  font-family:var(--f-body); font-size:14px; font-weight:700; letter-spacing:.05em;
  text-transform:uppercase; cursor:pointer;
  transition:transform .28s var(--ease), background .28s var(--ease), box-shadow .28s var(--ease), color .28s var(--ease), border-color .28s var(--ease);
  text-align:center;
}
.btn:active{ transform:scale(.97); }
.btn-gold{ background:var(--gold); color:var(--navy); box-shadow:0 10px 26px -12px rgba(201,162,39,.85); }
.btn-gold:hover{ background:var(--gold-lt); box-shadow:0 16px 34px -12px rgba(201,162,39,.95); transform:translateY(-2px); }
.btn-ghost{ background:transparent; color:#fff; border-color:rgba(255,255,255,.5); }
.btn-ghost:hover{ background:rgba(255,255,255,.12); border-color:#fff; transform:translateY(-2px); }

/* ---------- Header (transparent over hero → solid navy) ---------- */
.site-header{
  position:fixed; inset:0 0 auto 0; z-index:90;
  background:transparent; border-bottom:1px solid transparent;
  transition:background .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.scrolled{ background:var(--navy); border-bottom-color:var(--line-2); box-shadow:0 10px 30px -18px rgba(0,0,0,.5); }
.header-inner{ max-width:var(--wrap); margin:0 auto; padding:16px 22px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.brand{ display:flex; align-items:center; gap:11px; color:var(--gold-lt); }
.brand-mark{ display:block; }
.brand-text strong{ display:block; font-family:var(--f-disp); font-size:22px; font-weight:600; letter-spacing:.16em; color:#fff; line-height:1.1; }
.brand-text em{ display:block; font-style:normal; font-size:10px; letter-spacing:.18em; text-transform:uppercase; color:rgba(255,255,255,.55); margin-top:2px; }
.nav-desktop{ display:none; gap:30px; align-items:center; }
.nav-desktop a{ font-size:13px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:rgba(255,255,255,.85); position:relative; padding:6px 0; }
.nav-desktop a::after{ content:""; position:absolute; left:0; bottom:0; width:0; height:2px; background:var(--gold); transition:width .3s var(--ease); }
.nav-desktop a:hover{ color:#fff; }
.nav-desktop a:hover::after{ width:100%; }
.menu-toggle{ width:44px; height:44px; border:1px solid rgba(255,255,255,.35); border-radius:12px; background:transparent; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; cursor:pointer; }
.menu-toggle span{ display:block; width:18px; height:1.8px; background:var(--gold-lt); border-radius:1px; transition:transform .3s var(--ease), opacity .2s var(--ease); }
.menu-toggle.open span:nth-child(1){ transform:translateY(6.8px) rotate(45deg); }
.menu-toggle.open span:nth-child(2){ opacity:0; }
.menu-toggle.open span:nth-child(3){ transform:translateY(-6.8px) rotate(-45deg); }
.mobile-menu{ display:grid; gap:0; max-height:0; overflow:hidden; padding:0 22px; background:var(--navy-2); transition:max-height .42s var(--ease), padding .42s var(--ease); }
.mobile-menu.open{ max-height:340px; padding:8px 22px 18px; }
.mobile-menu a{ padding:15px 4px; color:rgba(255,255,255,.9); font-size:14px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; border-bottom:1px solid rgba(255,255,255,.1); }

/* ---------- Hero ---------- */
.hero{ position:relative; overflow:hidden; color:#fff; background:var(--navy); padding:calc(124px + env(safe-area-inset-top)) 0 76px; }
.hero-bg{ position:absolute; inset:0; pointer-events:none; background: radial-gradient(55% 45% at 85% 10%, rgba(74,123,192,.32), transparent 70%), radial-gradient(45% 45% at 5% 95%, rgba(201,162,39,.16), transparent 72%); }
.hero-inner{ position:relative; z-index:2; display:grid; gap:36px; align-items:center; }
.hero-eyebrow{ display:inline-block; font-family:var(--f-mono); font-size:11px; letter-spacing:.2em; text-transform:uppercase; color:var(--gold-lt); border:1px solid var(--line-2); border-radius:999px; padding:7px 16px; margin-bottom:22px; }
.hero-title{ font-family:var(--f-disp); font-size:clamp(46px,12vw,84px); font-weight:700; line-height:1.0; letter-spacing:-.02em; margin-bottom:22px; }
.hero-title .line{ display:block; }
.hero-title .accent{ color:var(--gold-lt); }
.hero-lead{ max-width:52ch; color:rgba(255,255,255,.8); font-size:16px; font-weight:300; margin-bottom:30px; }
.hero-actions{ display:flex; flex-wrap:wrap; gap:14px; margin-bottom:44px; }
.hero-stats{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px 14px; border-top:1px solid rgba(255,255,255,.16); padding-top:24px; max-width:540px; }
.stat b{ display:block; font-family:var(--f-disp); font-size:clamp(22px,6vw,30px); font-weight:700; color:var(--gold-lt); line-height:1.1; }
.stat span{ font-size:10.5px; letter-spacing:.1em; text-transform:uppercase; color:rgba(255,255,255,.55); }
.hero-art{ width:100%; max-width:360px; margin:0 auto; }
.hero-scroll{ position:absolute; left:50%; transform:translateX(-50%); bottom:18px; width:26px; height:42px; border:1px solid rgba(255,255,255,.4); border-radius:999px; }
.hero-scroll span{ position:absolute; left:50%; top:8px; width:4px; height:8px; border-radius:2px; background:var(--gold-lt); transform:translateX(-50%); animation:scrolldot 1.8s var(--ease) infinite; }
@keyframes scrolldot{ 0%{opacity:0;transform:translate(-50%,0)} 40%{opacity:1} 80%{opacity:0;transform:translate(-50%,14px)} 100%{opacity:0} }

/* ---------- Trust bar ---------- */
.trustbar{ background:var(--navy-2); border-top:1px solid var(--line-2); border-bottom:1px solid var(--line-2); }
.trustbar-inner{ display:grid; grid-template-columns:repeat(2,1fr); gap:1px; background:rgba(201,162,39,.25); }
.trust{ background:var(--navy-2); padding:20px 18px; display:flex; flex-direction:column; gap:3px; }
.trust-k{ font-family:var(--f-mono); font-size:10px; letter-spacing:.14em; text-transform:uppercase; color:rgba(255,255,255,.45); }
.trust-v{ font-size:14px; font-weight:700; color:var(--gold-lt); }

/* ---------- Sections ---------- */
.section{ padding:80px 0; }
.section-alt{ background:var(--cream); }
.section-dark{ background:var(--navy); color:#fff; }
.chapter-head{ max-width:780px; margin-bottom:34px; }
.kicker{ display:inline-block; font-family:var(--f-mono); font-size:11px; letter-spacing:.2em; text-transform:uppercase; color:var(--gold); font-weight:700; margin-bottom:14px; }
.kicker::before{ content:""; display:inline-block; width:28px; height:2px; background:var(--gold); vertical-align:middle; margin-right:12px; }
.section-dark .kicker{ color:var(--gold-lt); }
.section-dark .kicker::before{ background:var(--gold-lt); }
.section-title{ font-family:var(--f-disp); font-size:clamp(30px,6.4vw,46px); font-weight:700; color:var(--navy); line-height:1.06; letter-spacing:-.01em; }
.section-title em{ font-style:italic; color:var(--gold); }
.section-dark .section-title{ color:#fff; }
.section-dark .section-title em{ color:var(--gold-lt); }
.section-lead{ color:var(--muted); max-width:60ch; margin-top:16px; font-size:15.5px; }
.section-dark .section-lead{ color:rgba(255,255,255,.62); }
.prose p{ color:var(--ink); font-size:15.5px; max-width:64ch; }
.section-dark .prose p{ color:rgba(255,255,255,.78); }

/* ---------- Pillars (Nosotros) ---------- */
.pillars{ display:grid; gap:14px; margin-top:32px; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); }
.pillar{ background:#fff; border:1px solid var(--line); border-top:3px solid var(--navy); border-radius:8px; padding:22px 20px; transition:transform .35s var(--ease), box-shadow .35s var(--ease); }
.pillar:hover{ transform:translateY(-4px); box-shadow:var(--shadow); }
.pillar-n{ font-family:var(--f-mono); font-size:22px; font-weight:700; color:var(--gold); display:block; margin-bottom:8px; }
.pillar h3{ font-family:var(--f-disp); font-size:21px; color:var(--navy); margin-bottom:7px; }
.pillar p{ font-size:14px; color:var(--muted); margin:0; }

/* ---------- Cards (Productos) — navy-bar cards ---------- */
.cards{ display:grid; gap:16px; grid-template-columns:1fr; }
.card{ background:var(--paper); border:1px solid var(--line); border-radius:10px; padding:26px 24px; position:relative; overflow:hidden; transition:transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease); }
.section-alt .card{ background:#fff; }
.card::before{ content:""; position:absolute; left:0; top:0; right:0; height:4px; background:var(--navy); transition:background .35s var(--ease); }
.card:hover{ transform:translateY(-5px); box-shadow:var(--shadow); background:var(--navy); border-color:var(--navy); }
.card:hover::before{ background:var(--gold); }
.card-num{ font-family:var(--f-disp); font-size:42px; font-weight:700; color:var(--gold); line-height:1; margin-bottom:10px; }
.card-ico{ position:absolute; right:18px; bottom:18px; width:42px; height:42px; display:grid; place-items:center; color:var(--gold); opacity:.32; }
.card h3{ font-family:var(--f-disp); font-size:23px; color:var(--navy); margin-bottom:8px; }
.card p{ font-size:14px; color:var(--muted); margin-bottom:14px; }
.card p:last-child{ margin-bottom:0; }
.tags{ display:flex; flex-wrap:wrap; gap:6px; }
.tags li{ font-family:var(--f-mono); font-size:10px; letter-spacing:.03em; text-transform:uppercase; color:var(--navy); border:1px solid var(--line-2); padding:4px 10px; border-radius:999px; }
.card:hover h3{ color:var(--gold-lt); }
.card:hover p{ color:rgba(255,255,255,.72); }
.card:hover .tags li{ color:var(--gold-lt); border-color:rgba(201,162,39,.5); }
.card:hover .card-ico{ opacity:.55; }

/* ---------- Timeline (Proceso) — vertical ---------- */
.timeline{ list-style:none; display:grid; gap:0; }
.step{ position:relative; padding:0 0 28px 58px; border-left:2px solid var(--line); }
.step:last-child{ border-left-color:transparent; padding-bottom:0; }
.step span{ position:absolute; left:-21px; top:-2px; width:42px; height:42px; border-radius:50%; background:var(--navy); color:var(--gold-lt); display:grid; place-items:center; font-family:var(--f-disp); font-size:19px; font-weight:700; border:3px solid var(--cream); }
.step h3{ font-family:var(--f-disp); font-size:20px; color:var(--navy); margin-bottom:5px; }
.step p{ font-size:14px; color:var(--muted); margin:0; }

/* ---------- Tiles (Sectores) — corner gold accent ---------- */
.tiles{ display:grid; gap:14px; grid-template-columns:1fr; }
.tile{ background:#fff; border:1px solid var(--line); border-radius:10px; padding:22px 20px; position:relative; transition:transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease); }
.tile::after{ content:""; position:absolute; top:0; right:0; width:0; height:0; border-style:solid; border-width:0 26px 26px 0; border-color:transparent var(--line-2) transparent transparent; opacity:.55; transition:opacity .3s var(--ease); }
.tile:hover{ transform:translateY(-4px); background:var(--navy); border-color:var(--navy); }
.tile:hover::after{ opacity:1; border-color:transparent var(--gold) transparent transparent; }
.tile .card-ico{ width:46px; height:46px; border-radius:10px; display:grid; place-items:center; background:rgba(201,162,39,.12); color:var(--gold); border:1px solid var(--line-2); margin-bottom:14px; }
.tile h3{ font-family:var(--f-disp); font-size:20px; color:var(--navy); margin-bottom:7px; }
.tile p{ font-size:13.5px; color:var(--muted); margin:0; }
.tile:hover h3{ color:var(--gold-lt); }
.tile:hover p{ color:rgba(255,255,255,.66); }
.tile:hover .card-ico{ background:rgba(201,162,39,.2); color:var(--gold-lt); border-color:var(--line-2); }

/* ---------- Service grid (Diferenciadores) — 2x2 ---------- */
.svc-grid{ display:grid; gap:0; grid-template-columns:1fr; }
.svc{ padding:24px 0; border-top:1px solid rgba(255,255,255,.16); }
.svc-num{ font-family:var(--f-mono); font-size:22px; font-weight:700; color:var(--gold); display:block; margin-bottom:8px; }
.svc h3{ font-family:var(--f-disp); font-size:21px; color:#fff; margin-bottom:7px; }
.svc p{ font-size:14px; color:rgba(255,255,255,.62); margin:0; }

/* ---------- Footer ---------- */
.site-footer{ background:var(--navy); color:rgba(255,255,255,.6); padding:56px 0 70px; border-top:3px solid var(--gold); }
.footer-inner{ display:grid; gap:28px; }
.footer-brand{ display:flex; align-items:center; gap:12px; color:var(--gold-lt); }
.footer-brand p{ font-size:13px; color:rgba(255,255,255,.55); margin:0; }
.footer-brand strong{ font-family:var(--f-disp); font-size:19px; letter-spacing:.16em; color:#fff; }
.footer-nav{ display:flex; flex-wrap:wrap; gap:22px; }
.footer-nav a{ font-size:13px; font-weight:600; letter-spacing:.05em; text-transform:uppercase; color:rgba(255,255,255,.6); }
.footer-nav a:hover{ color:var(--gold-lt); }
.footer-legal{ font-size:11.5px; line-height:1.85; color:rgba(255,255,255,.5); border-top:1px solid rgba(255,255,255,.12); padding-top:22px; }

/* ---------- Reveal ---------- */
.reveal{ opacity:0; transform:translateY(22px); transition:opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in{ opacity:1; transform:none; }
@media (prefers-reduced-motion:reduce){
  *{ animation:none !important; transition-duration:.01ms !important; }
  .reveal{ opacity:1; transform:none; }
  html{ scroll-behavior:auto; }
}

/* ---------- Responsive ---------- */
@media (min-width:520px){ .tiles{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:640px){ .cards{ grid-template-columns:repeat(2,1fr); } .trustbar-inner{ grid-template-columns:repeat(4,1fr); } }
@media (min-width:700px){ .wrap{ padding:0 32px; } .section{ padding:96px 0; } .hero{ padding-top:calc(146px + env(safe-area-inset-top)); } .hero-art{ max-width:400px; } }
@media (min-width:880px){
  .tiles{ grid-template-columns:repeat(3,1fr); }
  .svc-grid{ grid-template-columns:repeat(2,1fr); }
  .svc{ padding:26px 28px; border-left:1px solid rgba(255,255,255,.16); }
  .svc:nth-child(odd){ border-left:0; }
  .footer-inner{ grid-template-columns:auto 1fr; align-items:center; }
  .footer-legal{ grid-column:1/-1; }
}
@media (min-width:900px){ .hero-inner{ grid-template-columns:1.05fr .95fr; } .hero-art{ margin-left:auto; max-width:440px; } }
@media (min-width:1000px){
  .nav-desktop{ display:flex; }
  .menu-toggle{ display:none; }
  .mobile-menu{ display:none !important; }
}
