@font-face{
    font-family:'Fraunces'; font-style:normal; font-weight:600 700; font-display:swap;
    src:url("fonts/fraunces-latin.woff2") format('woff2');
    unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }
  @font-face{
    font-family:'IBM Plex Sans'; font-style:normal; font-weight:400 600; font-display:swap;
    src:url("fonts/ibm-plex-sans-latin.woff2") format('woff2');
    unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }
  @font-face{
    font-family:'IBM Plex Mono'; font-style:normal; font-weight:400; font-display:swap;
    src:url("fonts/ibm-plex-mono-400-latin.woff2") format('woff2');
    unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }
  @font-face{
    font-family:'IBM Plex Mono'; font-style:normal; font-weight:500; font-display:swap;
    src:url("fonts/ibm-plex-mono-500-latin.woff2") format('woff2');
    unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }
  @font-face{
    font-family:'IBM Plex Mono'; font-style:normal; font-weight:600; font-display:swap;
    src:url("fonts/ibm-plex-mono-600-latin.woff2") format('woff2');
    unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }

  :root{
    --navy-deep:#0D1B34;
    --navy-card:#16294A;
    --navy-line:#28406b;
    --crimson:#A32638;
    --crimson-soft:#c23349;
    --gold:#C6A15B;        /* dorado de marca — solo sobre fondo oscuro */
    --gold-ink:#856526;    /* dorado oscuro — para fondo claro (WCAG AA) */
    --gris:#6b7280;
    --paper:#FFFFFF;
    --paper-dim:#F3F1EA;
    --ink:#12172A;
    --ink-soft:#4b526b;
    --cream-text:#F2F1EC;
    --logo:url("logo.png");
  }
  :root{
    --font-sans:'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-serif:'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
    --font-mono:'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, 'Courier New', monospace;
  }
  *{box-sizing:border-box; margin:0; padding:0;}
  html{scroll-behavior:smooth;}
  body{
    font-family:var(--font-sans);
    color:var(--ink);
    background:var(--paper);
    line-height:1.6;
    -webkit-font-smoothing:antialiased;
  }
  h1,h2,h3,h4{ font-family:var(--font-serif); font-weight:600; line-height:1.12; letter-spacing:-0.01em; }
  .mono{ font-family:var(--font-mono); font-variant-numeric:tabular-nums; }
  a{ color:inherit; text-decoration:none; }
  img{ max-width:100%; display:block; }
  .wrap{ max-width:1180px; margin:0 auto; padding:0 32px; }

  /* Etiqueta de sección: por defecto sobre fondo claro (dorado oscuro, AA).
     Sobre navy se restaura el dorado de marca más abajo. */
  .eyebrow{ font-family:var(--font-mono); font-size:12px; letter-spacing:.14em; text-transform:uppercase; color:var(--gold-ink); font-weight:500; }
  .navy .eyebrow, .metrics .eyebrow, .hero .eyebrow, footer .eyebrow{ color:var(--gold); }

  /* Foco visible coherente en toda la página */
  a:focus-visible, button:focus-visible{ outline:2px solid var(--gold); outline-offset:3px; border-radius:2px; }
  .navy a:focus-visible, .navy button:focus-visible, .nav a:focus-visible, .nav button:focus-visible, footer a:focus-visible{ outline-color:var(--gold); }

  .skip-link{
    position:absolute; left:-9999px; top:0; z-index:100;
    background:var(--crimson); color:#fff; padding:11px 18px;
    font-size:13px; font-weight:600; border-radius:0 0 3px 0;
  }
  .skip-link:focus{ left:0; }

  /* ---------- FOTOGRAFÍA DE SERVICIO (imagen real) ---------- */
  .photo-frame{
    position:relative; border-radius:8px; overflow:hidden;
    aspect-ratio:4/3; box-shadow:0 10px 28px rgba(13,27,52,0.14);
    border:1px solid #e4e1d4; background:#EFEDE4;
  }
  .photo-frame img{ width:100%; height:100%; object-fit:cover; display:block; }
  .photo-frame.short{ aspect-ratio:16/9; }

  /* ---------- LOGO (una sola copia embebida, reutilizada por CSS) ---------- */
  .logo-img-nav, .footer-logo-img{
    background-image:var(--logo);
    background-repeat:no-repeat;
    background-position:left center;
    background-size:contain;
    aspect-ratio:375/152;
    -webkit-print-color-adjust:exact; print-color-adjust:exact;
  }
  .logo-img-nav{ height:42px; }
  .footer-logo-img{ height:76px; margin-bottom:16px; }

  /* ---------- NAV ---------- */
  .nav{ position:sticky; top:0; z-index:50; background:rgba(13,27,52,0.94); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); border-bottom:1px solid rgba(198,161,91,0.25); }
  .nav-inner{ max-width:1180px; margin:0 auto; padding:0 32px; display:flex; align-items:center; justify-content:space-between; min-height:72px; flex-wrap:wrap; }
  .nav-logo{ display:flex; align-items:center; }
  .nav-links{ display:flex; gap:30px; list-style:none; }
  .nav-links a{ font-size:13px; color:#c7cede; font-weight:500; letter-spacing:.02em; transition:color .2s ease; }
  .nav-links a:hover{ color:var(--gold); }
  .nav-cta{ border:1px solid var(--gold); color:var(--gold); font-size:12.5px; font-weight:600; padding:9px 18px; border-radius:2px; letter-spacing:.04em; text-transform:uppercase; }
  .nav-toggle{
    display:none; background:none; cursor:pointer;
    border:1px solid rgba(198,161,91,0.45); border-radius:3px; padding:9px 11px;
  }
  .nav-toggle .bar{ display:block; width:20px; height:2px; background:var(--gold); border-radius:2px; }
  .nav-toggle .bar + .bar{ margin-top:4px; }

  /* ---------- HERO ---------- */
  .hero{ background:var(--navy-deep); color:var(--cream-text); position:relative; overflow:hidden; padding:88px 0 76px; }
  .hero::before{
    content:""; position:absolute; inset:0;
    background-image:linear-gradient(rgba(198,161,91,0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(198,161,91,0.055) 1px, transparent 1px);
    background-size:56px 56px; -webkit-mask-image:radial-gradient(ellipse 80% 60% at 50% 20%, black 40%, transparent 90%); mask-image:radial-gradient(ellipse 80% 60% at 50% 20%, black 40%, transparent 90%); pointer-events:none;
  }
  .hero-inner{ position:relative; z-index:1; max-width:760px; }
  .hero-folio{ display:inline-flex; align-items:center; gap:10px; border:1px solid rgba(198,161,91,0.4); padding:6px 14px; border-radius:2px; margin-bottom:26px; }
  .hero h1{ font-size:2.9rem; color:#fff; margin-bottom:22px; }
  .hero h1 em{ font-style:normal; color:var(--gold); }
  .hero p{ font-size:1.06rem; color:#c7cede; max-width:600px; line-height:1.8; margin-bottom:34px; }
  .hero-actions{ display:flex; gap:16px; flex-wrap:wrap; }
  .btn-solid{ background:var(--crimson); color:#fff; font-weight:600; font-size:13.5px; padding:13px 26px; border-radius:2px; letter-spacing:.03em; }
  .btn-ghost{ border:1px solid rgba(255,255,255,.35); color:#fff; font-weight:600; font-size:13.5px; padding:13px 26px; border-radius:2px; letter-spacing:.03em; }

  /* ---------- SECTION HEAD ---------- */
  section{ padding:78px 0; }
  .light{ background:var(--paper); }
  .dim{ background:var(--paper-dim); }
  .navy{ background:var(--navy-deep); color:var(--cream-text); }
  .section-head{ max-width:640px; margin:0 auto 50px; text-align:center; }
  .section-head h2{ font-size:2.1rem; color:var(--navy-deep); margin:10px 0 14px; }
  .navy .section-head h2{ color:#fff; }
  .section-head p{ color:var(--ink-soft); font-size:1rem; }
  .navy .section-head p{ color:#c7cede; }

  /* ---------- SERVICES OVERVIEW STRIP ---------- */
  .svc-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--navy-line); border:1px solid var(--navy-line); margin-top:6px; }
  .svc-chip{
    background:var(--navy-card); color:#fff; padding:22px 18px;
    border:none; width:100%; text-align:left; cursor:pointer;
    font-family:inherit; transition:background .2s ease;
  }
  .svc-chip:hover{ background:#1b3157; }
  .svc-chip h4{ font-size:14px; color:#fff; }

  /* ---------- SERVICE DETAIL BLOCKS ---------- */
  .svc-detail{ display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center; max-width:1100px; margin:0 auto; padding:0 32px; }
  .svc-copy h3{ font-size:1.55rem; color:var(--navy-deep); margin:10px 0 14px; }
  .svc-copy p{ color:var(--ink-soft); font-size:.98rem; line-height:1.75; margin-bottom:16px; }
  .svc-copy ul{ list-style:none; margin-top:10px; }
  .svc-copy ul li{ font-size:.88rem; color:var(--ink); padding-left:18px; position:relative; margin-bottom:8px; }
  .svc-copy ul li::before{ content:"—"; position:absolute; left:0; color:var(--crimson); }
  .svc-row{ padding:56px 0; border-top:1px solid #e4e1d4; }
  .svc-row:first-of-type{ border-top:none; }
  .svc-stack{ display:grid; gap:14px; }

  /* ---------- DETALLE DE SERVICIOS (A FONDO) ---------- */
  .detail-tabs{ display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin-bottom:40px; }
  .dtab{ background:#fff; border:1px solid #e4e1d4; color:var(--ink-soft); font-size:.82rem; font-weight:600;
    padding:10px 18px; border-radius:20px; cursor:pointer; transition:all .2s ease; font-family:var(--font-sans); }
  .dtab:hover{ border-color:var(--gold-ink); color:var(--navy-deep); }
  .dtab[aria-selected="true"]{ background:var(--navy-deep); border-color:var(--navy-deep); color:#fff; }
  .dpanel{ display:none; max-width:980px; margin:0 auto; background:#fff; border:1px solid #e4e1d4;
    border-left:4px solid var(--crimson); border-radius:8px; padding:44px; }
  .dpanel.active{ display:block; }
  .dpanel .didx{ font-family:var(--font-mono); font-size:12px; color:var(--gold-ink); letter-spacing:.1em; }
  .dpanel h3{ font-size:1.6rem; color:var(--navy-deep); margin:8px 0 14px; }
  .dpanel > p.dlead{ color:var(--ink-soft); font-size:.98rem; line-height:1.75; margin-bottom:28px; max-width:820px; }
  .detail-grid{ display:grid; grid-template-columns:1fr 1fr; gap:40px; }
  .detail-grid h5{ font-family:var(--font-mono); font-weight:600; font-size:11.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--gold-ink); margin-bottom:16px; }
  .detail-grid ul{ list-style:none; }
  .detail-grid ul li{ font-size:.88rem; color:var(--ink); padding-left:18px; position:relative; margin-bottom:11px; line-height:1.55; }
  .detail-grid ul li::before{ content:"—"; position:absolute; left:0; color:var(--crimson); }
  .detail-grid ol{ list-style:none; counter-reset:step; }
  .detail-grid ol li{ font-size:.88rem; color:var(--ink); padding-left:32px; position:relative; margin-bottom:14px; line-height:1.55; counter-increment:step; }
  .detail-grid ol li::before{
    content:counter(step); position:absolute; left:0; top:-1px; width:21px; height:21px;
    background:var(--navy-deep); color:#fff; border-radius:50%; font-family:var(--font-mono);
    font-size:10.5px; display:flex; align-items:center; justify-content:center;
  }

  /* ---------- METRICS / LOGROS ---------- */
  .metrics{ background:linear-gradient(160deg, var(--navy-deep), #16294A 60%, #1a2f52); color:#fff; position:relative; overflow:hidden; }
  .metrics::after{ content:""; position:absolute; inset:0; background-image:linear-gradient(rgba(198,161,91,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(198,161,91,0.05) 1px, transparent 1px); background-size:48px 48px; }
  .metrics-inner{ position:relative; z-index:1; max-width:1100px; margin:0 auto; padding:0 32px; text-align:center; }
  .metrics .eyebrow{ display:block; margin-bottom:18px; }
  .headline-figure{ font-family:var(--font-serif); font-weight:700; font-size:clamp(2.4rem, 5vw, 3.6rem); line-height:1.15; max-width:820px; margin:0 auto 46px; }
  .headline-figure .num{ color:var(--gold); }
  .metric-support{ display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:rgba(198,161,91,0.25); border:1px solid rgba(198,161,91,0.25); border-radius:6px; overflow:hidden; }
  .metric-item{ background:rgba(13,27,52,0.55); padding:28px 16px; }
  .metric-item .f{ font-size:1.7rem; font-weight:600; color:#fff; }
  .metric-item .l{ font-size:11.5px; color:#9aa4c2; letter-spacing:.05em; text-transform:uppercase; margin-top:6px; }

  /* ---------- ASERTO ---------- */
  .aserto-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; max-width:1100px; margin:0 auto; padding:0 32px; }
  .aserto-card{ background:#fff; border:1px solid #e4e1d4; border-radius:6px; padding:26px; }
  .aserto-card .anum{ font-size:12px; color:var(--gold-ink); }
  .aserto-card h4{ font-size:1.02rem; color:var(--navy-deep); margin:10px 0 8px; }
  .aserto-card p{ font-size:.87rem; color:var(--ink-soft); line-height:1.6; }

  /* ---------- WHY US ---------- */
  .why-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:26px; max-width:1100px; margin:0 auto; padding:0 32px; }
  .why-card{ padding:8px 4px; }
  .why-card .wnum{ font-size:12px; color:var(--gold-ink); }
  .why-card h4{ font-size:1.05rem; color:var(--navy-deep); margin:10px 0 8px; }
  .why-card p{ font-size:.88rem; color:var(--ink-soft); line-height:1.65; }

  /* ---------- CONTACT (informativo, sin formulario) ---------- */
  .contact-panel{ max-width:820px; margin:0 auto; padding:0 32px; text-align:center; }
  .contact-fields{ display:flex; justify-content:center; gap:44px; flex-wrap:wrap; margin-top:34px; }
  .cfield .l{ font-family:var(--font-mono); font-size:10.5px; letter-spacing:.12em; text-transform:uppercase; color:var(--gold); margin-bottom:6px; }
  .cfield .v{ font-size:.95rem; color:var(--cream-text); }
  .cfield .v a{ border-bottom:1px solid rgba(198,161,91,0.45); padding-bottom:1px; transition:color .2s ease, border-color .2s ease; }
  .cfield .v a:hover{ color:var(--gold); border-color:var(--gold); }

  /* ---------- FOOTER ---------- */
  footer{ background:var(--navy-deep); color:#c7cede; padding-top:60px; }
  .footer-grid{ max-width:1180px; margin:0 auto; padding:0 32px 40px; display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:50px; border-bottom:1px solid rgba(198,161,91,0.2); }
  .footer-brand p{ font-size:.85rem; margin-top:14px; line-height:1.7; color:#9aa4c2; max-width:320px; }
  .footer-col h5{ font-family:var(--font-mono); font-weight:600; font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:var(--gold); margin-bottom:16px; }
  .footer-col ul{ list-style:none; }
  .footer-col li{ margin-bottom:10px; font-size:.86rem; }
  .footer-col a:hover{ color:var(--gold); }
  .footer-bottom{ max-width:1180px; margin:0 auto; padding:22px 32px; font-size:.78rem; color:#7d87a3; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; }

  /* ---------- RESPONSIVE ---------- */
  @media(max-width:1080px){
    .nav-links{ gap:20px; }
    .aserto-grid, .why-grid{ grid-template-columns:repeat(2,1fr); }
    .svc-detail{ gap:36px; }
  }
  @media(max-width:900px){
    .detail-grid{ grid-template-columns:1fr; }
    .dpanel{ padding:26px; }
    .nav-toggle{ display:block; }
    .nav-links{
      display:none; flex-direction:column; gap:0;
      width:100%; order:3; padding:6px 0 14px;
      border-top:1px solid rgba(198,161,91,0.2);
    }
    .nav.open .nav-links{ display:flex; }
    .nav-links li{ width:100%; }
    .nav-links a{ display:block; padding:13px 2px; font-size:14px; }
    .nav-cta{ display:none; }
    .nav.open .nav-cta{ display:inline-block; order:4; margin-bottom:16px; }
    .svc-grid{ grid-template-columns:repeat(2,1fr); }
    .svc-detail{ grid-template-columns:1fr; }
    .metric-support{ grid-template-columns:repeat(2,1fr); }
    .aserto-grid, .why-grid{ grid-template-columns:1fr; }
    .footer-grid{ grid-template-columns:1fr; }
    .hero h1{ font-size:2.1rem; }
    .contact-fields{ gap:28px; }
  }
  @media(max-width:520px){
    .wrap, .nav-inner, .svc-detail, .metrics-inner, .aserto-grid, .why-grid, .contact-panel, .footer-grid, .footer-bottom{ padding-left:20px; padding-right:20px; }
    .svc-grid{ grid-template-columns:1fr; }
    section{ padding:56px 0; }
  }

  /* ---------- PREFERENCIA DE MOVIMIENTO REDUCIDO ---------- */
  @media (prefers-reduced-motion: reduce){
    html{ scroll-behavior:auto; }
    *, *::before, *::after{
      animation-duration:.01ms !important; animation-iteration-count:1 !important;
      transition-duration:.01ms !important; scroll-behavior:auto !important;
    }
  }

  /* ---------- IMPRESIÓN ---------- */
  @media print{
    .nav{ position:static; }
    .nav-toggle, .skip-link, .detail-tabs, .hero-actions{ display:none !important; }
    .dpanel{ display:block !important; page-break-inside:avoid; margin-bottom:20px; }
    .svc-row, .aserto-card, .why-card{ page-break-inside:avoid; }
    section{ padding:30px 0; }
    body{ background:#fff; }
  }

  /* reglas que antes iban en atributos style= */
  .svc-row.alt{ background:var(--paper-dim); }
  .contact-title{ color:#fff; margin:10px 0 6px; }
