/* =========================================================
   MaxGenData — hoja de estilos principal
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root{
  /* Marca */
  --navy:#0B1D3A;
  --navy-2:#122747;
  --navy-3:#1A3459;
  --teal:#00D4B4;
  --teal-deep:#0A9E86;
  --white:#FFFFFF;
  --slate:#8FA3B8;

  /* Superficies / texto (modo claro, secciones de contenido) */
  --ink:#0F1B2D;
  --ink-muted:#54637A;
  --surface:#FFFFFF;
  --surface-alt:#F4F7FA;
  --border:#E3E9F0;

  /* Estado */
  --good:#0C8F6F;
  --warn:#B4750F;
  --bad:#C23A3A;

  --font-display:'Space Grotesk', system-ui, sans-serif;
  --font-body:'Inter', system-ui, sans-serif;

  --radius-sm:8px;
  --radius-md:14px;
  --radius-lg:22px;
  --radius-pill:999px;

  --shadow-sm: 0 1px 2px rgba(11,29,58,.06);
  --shadow-md: 0 8px 24px rgba(11,29,58,.08);
  --shadow-lg: 0 20px 48px rgba(11,29,58,.16);

  --container: 1180px;
}

/* ---------- Reset ---------- */
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--surface);
  line-height:1.6;
  font-size:16px;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul,ol{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4,p,figure{ margin:0; }
button{ font-family:inherit; cursor:pointer; }
input,textarea,select{ font-family:inherit; font-size:16px; }
svg{ display:block; }

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

.skip-link{
  position:absolute; left:-9999px; top:0;
  background:var(--navy); color:var(--white);
  padding:12px 18px; border-radius:0 0 8px 0;
  z-index:1000; font-weight:600;
}
.skip-link:focus{ left:0; }

:focus-visible{ outline:3px solid var(--teal); outline-offset:2px; }

/* ---------- Typography ---------- */
h1,h2,h3,h4{ font-family:var(--font-display); font-weight:700; color:var(--navy); line-height:1.15; letter-spacing:-0.01em; }
.section-eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--font-body); font-weight:700; font-size:13px;
  letter-spacing:.08em; text-transform:uppercase;
  color:var(--teal-deep);
  margin-bottom:14px;
}
.section-eyebrow::before{
  content:''; width:20px; height:2px; background:var(--teal); border-radius:2px;
}
.on-dark .section-eyebrow{ color:var(--teal); }
.on-dark .section-eyebrow::before{ background:var(--teal); }

h1{ font-size:clamp(2.1rem, 4.5vw, 3.4rem); }
h2{ font-size:clamp(1.7rem, 3.2vw, 2.4rem); }
h3{ font-size:clamp(1.2rem, 2vw, 1.5rem); }
.lede{ font-size:clamp(1.05rem, 1.6vw, 1.25rem); color:var(--ink-muted); line-height:1.6; }
.on-dark, .on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4{ color:var(--white); }
.on-dark p, .on-dark .lede{ color:#C3CEDE; }
.on-dark .ink-muted{ color:#C3CEDE; }

/* ---------- Layout ---------- */
.container{ width:100%; max-width:var(--container); margin:0 auto; padding:0 24px; }
.section{ padding:72px 0; }
.section-tight{ padding:48px 0; }
@media (max-width:640px){
  .section{ padding:56px 0; }
}

.grid{ display:grid; gap:24px; }
.grid-2{ grid-template-columns:repeat(2,1fr); }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-4{ grid-template-columns:repeat(4,1fr); }
@media (max-width:900px){
  .grid-3{ grid-template-columns:repeat(2,1fr); }
  .grid-4{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:640px){
  .grid-2, .grid-3, .grid-4{ grid-template-columns:1fr; }
}

.bg-navy{ background:var(--navy); }
.bg-alt{ background:var(--surface-alt); }
.bg-navy-fade{
  background:
    radial-gradient(ellipse 900px 500px at 85% 0%, rgba(0,212,180,.14), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:14px 26px;
  border-radius:var(--radius-pill);
  font-weight:600; font-size:15px;
  border:1px solid transparent;
  transition:transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
  white-space:nowrap;
  min-height:48px;
}
.btn:hover{ transform:translateY(-1px); }
.btn:active{ transform:translateY(0); }
.btn-primary{ background:var(--teal); color:var(--navy); box-shadow:var(--shadow-sm); }
.btn-primary:hover{ background:#0FE6C4; box-shadow:var(--shadow-md); }
.btn-dark{ background:var(--navy); color:var(--white); }
.btn-dark:hover{ background:var(--navy-2); }
.btn-outline{ background:transparent; border-color:var(--border); color:var(--navy); }
.btn-outline:hover{ border-color:var(--navy); }
.on-dark .btn-outline{ border-color:rgba(255,255,255,.3); color:var(--white); }
.on-dark .btn-outline:hover{ border-color:var(--white); }
.btn-ghost{ background:transparent; color:var(--navy); padding:14px 10px; }
.on-dark .btn-ghost{ color:var(--white); }
.btn-block{ width:100%; }
.btn[aria-disabled="true"], .btn:disabled{ opacity:.55; pointer-events:none; }

/* ---------- Header / Nav ---------- */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(11,29,58,.92);
  backdrop-filter:saturate(140%) blur(10px);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.site-header .container{
  display:flex; align-items:center; justify-content:space-between;
  height:76px;
}
.brand{ display:flex; align-items:center; gap:12px; }
.brand img{ width:40px; height:40px; border-radius:10px; }
.brand-word{ font-family:var(--font-display); font-weight:700; font-size:19px; color:var(--white); }
.brand-word span{ color:var(--teal); }

.nav-desktop{ display:flex; align-items:center; gap:2px; }
.nav-desktop a{
  color:#D7DFEA; font-weight:500; font-size:15px;
  padding:10px 14px; border-radius:var(--radius-pill);
  transition:color .15s ease, background-color .15s ease;
}
.nav-desktop a:hover, .nav-desktop a[aria-current="page"]{ color:var(--white); background:rgba(255,255,255,.08); }

.header-actions{ display:flex; align-items:center; gap:10px; }
.lang-switch{
  display:flex; align-items:center; gap:2px;
  border:1px solid rgba(255,255,255,.18); border-radius:var(--radius-pill);
  padding:3px; font-size:13px; font-weight:600;
}
.lang-switch a, .lang-switch button{
  padding:6px 11px; border-radius:var(--radius-pill); color:#B9C4D6; background:none; border:none; font-weight:600; font-size:13px;
}
.lang-switch a[aria-current="true"]{ background:var(--teal); color:var(--navy); }

.nav-toggle{
  display:none;
  background:none; border:none; color:var(--white);
  width:44px; height:44px; align-items:center; justify-content:center;
  border-radius:8px;
}
.nav-toggle:hover{ background:rgba(255,255,255,.08); }

@media (max-width:900px){
  .nav-desktop{ display:none; }
  .header-actions .lang-switch{ display:none; }
  .nav-toggle{ display:inline-flex; }
}
@media (max-width:560px){
  .header-actions .btn-primary{ display:none; }
  .brand-word{ font-size:16px; }
}
@media (max-width:360px){
  .brand-word{ font-size:15px; }
}

.mobile-menu{
  display:none;
  position:fixed; inset:76px 0 0 0; z-index:99;
  background:var(--navy);
  overflow-y:auto;
}
.mobile-menu.is-open{ display:block; }
.mobile-menu .container{ padding-top:20px; padding-bottom:40px; }
.mobile-menu a{
  display:block; padding:16px 4px; font-size:19px; font-weight:600; color:var(--white);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.mobile-menu .lang-switch{ margin-top:24px; width:fit-content; }
.mobile-menu .lang-switch a{ padding:10px 16px; font-size:15px; min-height:44px; display:inline-flex; align-items:center; }
.mobile-menu .btn{ margin-top:24px; }
body.menu-open{ overflow:hidden; }

/* ---------- Hero ---------- */
.hero{
  position:relative;
  padding:64px 0 80px;
  overflow:hidden;
}
.hero-grid{
  display:grid; grid-template-columns:1.05fr .95fr; gap:48px; align-items:center;
}
@media (max-width:960px){
  .hero-grid{ grid-template-columns:1fr; }
}
.hero-badge{
  display:inline-flex; align-items:center; gap:8px;
  background:rgba(0,212,180,.12); border:1px solid rgba(0,212,180,.35);
  color:var(--teal); font-weight:600; font-size:13px;
  padding:8px 16px; border-radius:var(--radius-pill);
  margin-bottom:20px;
}
.hero h1{ margin-bottom:20px; }
.hero-actions{ display:flex; flex-wrap:wrap; gap:14px; margin-top:32px; }
.hero-trust{ display:flex; flex-wrap:wrap; gap:22px; margin-top:40px; color:#9FB0C6; font-size:13.5px; }
.hero-trust .item{ display:flex; align-items:center; gap:8px; }

.dna-stage{
  position:relative;
  aspect-ratio:1/1;
  border-radius:var(--radius-lg);
  background:radial-gradient(ellipse at center, rgba(0,212,180,.12), transparent 70%);
  overflow:hidden;
}
.dna-stage iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }
.dna-poster{
  position:absolute; inset:0; width:100%; height:100%;
  border:0; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(160deg, rgba(11,29,58,.4), rgba(11,29,58,.1));
  color:var(--white);
}
.dna-poster img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.9; }
.dna-poster .play{
  position:relative; z-index:2;
  display:flex; flex-direction:column; align-items:center; gap:12px;
  background:rgba(11,29,58,.55); border:1px solid rgba(255,255,255,.25);
  padding:20px 26px; border-radius:var(--radius-md);
  backdrop-filter:blur(6px);
}
.dna-poster .play svg{ width:28px; height:28px; }
.dna-credit{
  position:absolute; bottom:10px; right:12px; z-index:3;
  font-size:11px; color:#B9C4D6; background:rgba(11,29,58,.6);
  padding:4px 8px; border-radius:6px;
}

/* ---------- Cards ---------- */
.card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md);
  padding:28px; box-shadow:var(--shadow-sm);
  transition:box-shadow .2s ease, transform .2s ease;
}
.card-icon{
  width:48px; height:48px; border-radius:12px;
  background:var(--navy); color:var(--teal);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:18px;
}
.card-icon svg{ width:24px; height:24px; }
.card h3{ margin-bottom:10px; }
.card p{ color:var(--ink-muted); font-size:15px; }
a.card:hover{ box-shadow:var(--shadow-md); transform:translateY(-2px); }

.card-dark{
  background:var(--navy-2); border:1px solid rgba(255,255,255,.08); border-radius:var(--radius-md); padding:28px;
}
.card-dark .card-icon{ background:rgba(0,212,180,.14); }

/* ---------- Pills / badges ---------- */
.pill{
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 14px; border-radius:var(--radius-pill);
  font-size:13px; font-weight:600;
}
.pill-placeholder{ background:#FCEFDD; color:#8A5219; border:1px solid #F0D2A8; }
.pill-teal{ background:rgba(0,212,180,.14); color:var(--teal-deep); }
.on-dark .pill-teal{ background:rgba(0,212,180,.16); color:var(--teal); }

/* ---------- Placeholder / pending-connection notes ---------- */
.pending-note{
  display:flex; gap:10px; align-items:flex-start;
  background:#FFF8EC; border:1px solid #F0D2A8; color:#7A4A12;
  padding:12px 16px; border-radius:var(--radius-sm); font-size:13.5px;
  margin-top:12px;
}
.pending-note svg{ width:18px; height:18px; flex:none; margin-top:1px; }

/* ---------- Forms ---------- */
.field{ margin-bottom:18px; text-align:left; }
.field label{ display:block; font-weight:600; font-size:14px; margin-bottom:7px; color:var(--navy); }
.on-dark .field label{ color:var(--white); }
.field input, .field textarea, .field select{
  width:100%; padding:13px 15px; border-radius:10px;
  border:1px solid var(--border); background:var(--surface); color:var(--ink);
  min-height:48px;
}
.on-dark .field input, .on-dark .field textarea, .on-dark .field select{
  background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.18); color:var(--white);
}
.field textarea{ min-height:120px; resize:vertical; }
.field input:focus, .field textarea:focus, .field select:focus{ border-color:var(--teal); }
.field-hint{ font-size:12.5px; color:var(--ink-muted); margin-top:6px; }
.on-dark .field-hint{ color:#9FB0C6; }
.form-status{ font-size:14px; margin-top:14px; }
.form-status[data-state="success"]{ color:var(--good); }
.form-status[data-state="error"]{ color:var(--bad); }

/* ---------- Footer ---------- */
.site-footer{ background:var(--navy); color:#B9C4D6; padding:64px 0 28px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:32px; margin-bottom:48px; }
@media (max-width:800px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:520px){ .footer-grid{ grid-template-columns:1fr; } }
.footer-grid h4{ color:var(--white); font-size:14px; text-transform:uppercase; letter-spacing:.06em; margin-bottom:16px; }
.footer-grid ul li{ margin-bottom:10px; }
.footer-grid a:hover{ color:var(--white); }
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.1); padding-top:24px;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px;
  font-size:13px; color:#8090A8;
}
.social-row{ display:flex; gap:10px; }
.social-row a{
  width:38px; height:38px; border-radius:10px; background:rgba(255,255,255,.06);
  display:flex; align-items:center; justify-content:center;
}
.social-row a:hover{ background:rgba(255,255,255,.14); }
.social-row svg{ width:18px; height:18px; }

/* ---------- Utility ---------- */
.text-center{ text-align:center; }
.mx-auto{ margin-left:auto; margin-right:auto; }
.max-w-content{ max-width:680px; }
.mt-0{ margin-top:0; }
.stack{ display:flex; flex-direction:column; }
.row{ display:flex; align-items:center; }
.gap-8{ gap:8px; } .gap-12{ gap:12px; } .gap-16{ gap:16px; } .gap-24{ gap:24px; }
.wrap{ flex-wrap:wrap; }
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* ---------- Breadcrumb / page header (interior pages) ---------- */
.page-header{ padding:56px 0 48px; }
.page-header .lede{ max-width:640px; }

/* ---------- Table (used on transparency/how-we-work) ---------- */
.table-wrap{ overflow-x:auto; border-radius:var(--radius-md); border:1px solid var(--border); }
table{ width:100%; border-collapse:collapse; min-width:520px; }
th{ text-align:left; font-size:12.5px; text-transform:uppercase; letter-spacing:.05em; color:var(--ink-muted); padding:14px 16px; background:var(--surface-alt); }
td{ padding:16px; border-top:1px solid var(--border); font-size:14.5px; }

/* ---------- Reveal-on-scroll (progressive enhancement) ---------- */
/* .reveal is kept as a marker class for potential future use, but content is
   always visible by default — no JS-gated opacity/visibility on page content. */
.reveal{ opacity:1; transform:none; }

/* =========================================================
   v7 — Añadidos: menú desplegable, formulario largo,
   portfolio ampliable, newsletter y reseñas
   ========================================================= */

/* ---------- Desplegable de Servicios (escritorio) ---------- */
.nav-drop{ position:relative; }
.nav-drop-toggle{
  display:inline-flex; align-items:center; gap:6px;
  background:none; border:none;
  color:#D7DFEA; font-weight:500; font-size:15px;
  padding:10px 12px; border-radius:var(--radius-pill);
  transition:color .15s ease, background-color .15s ease;
}
.nav-drop-toggle:hover,
.nav-drop.is-open .nav-drop-toggle,
.nav-drop-toggle.is-current{ color:var(--white); background:rgba(255,255,255,.08); }
.nav-drop-toggle svg{ transition:transform .18s ease; }
.nav-drop.is-open .nav-drop-toggle svg{ transform:rotate(180deg); }

.nav-dropdown{
  position:absolute; top:calc(100% + 10px); left:-10px;
  width:min(640px, calc(100vw - 60px)); padding:12px;
  display:grid; grid-template-columns:1fr 1fr; gap:2px 8px;
  background:var(--white);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  box-shadow:var(--shadow-lg);
  opacity:0; visibility:hidden; transform:translateY(-6px);
  transition:opacity .16s ease, transform .16s ease, visibility .16s;
  z-index:120;
}
.nav-drop.is-open .nav-dropdown{ opacity:1; visibility:visible; transform:translateY(0); }
.nav-dropdown::before{ content:""; position:absolute; top:-12px; left:0; right:0; height:12px; }
.nav-dropdown a{
  display:block; padding:10px 12px; border-radius:var(--radius-sm);
  color:var(--ink); background:none;
}
.nav-dropdown a:hover{ background:var(--surface-alt); color:var(--navy); }
.nav-dropdown a strong{ display:block; font-size:14.5px; font-weight:600; color:var(--navy); }
.nav-dropdown a span{ display:block; font-size:12.5px; color:var(--ink-muted); margin-top:2px; line-height:1.45; }
.nav-dropdown-all{
  grid-column:1 / -1;
  margin-top:6px; padding-top:12px !important;
  border-top:1px solid var(--border);
  font-size:13.5px; font-weight:600; color:var(--teal-deep) !important;
}
.nav-dropdown-all:hover{ background:none !important; text-decoration:underline; }

/* ---------- Submenú de Servicios (móvil) ---------- */
.mobile-drop-toggle{
  display:flex; align-items:center; justify-content:space-between; width:100%;
  background:none; border:none; text-align:left;
  padding:16px 4px; font-size:19px; font-weight:600; color:var(--white);
  border-bottom:1px solid rgba(255,255,255,.08);
  font-family:inherit;
}
.mobile-drop-toggle svg{ transition:transform .18s ease; }
.mobile-drop-toggle[aria-expanded="true"] svg{ transform:rotate(180deg); }
.mobile-dropdown{ padding:6px 0 10px 14px; border-left:2px solid rgba(0,212,180,.4); margin:8px 0 8px 4px; }
.mobile-dropdown a{ font-size:16px; font-weight:500; padding:12px 4px; border-bottom:none; }
.mobile-dropdown a strong{ display:block; font-weight:600; }
.mobile-dropdown a span{ display:block; font-size:13px; color:#9FB0C6; margin-top:2px; }

/* ---------- Índice de servicios ---------- */
.service-index{
  display:flex; flex-wrap:wrap; gap:8px; justify-content:center;
}
.service-index a{
  display:inline-block; padding:9px 16px;
  border:1px solid var(--border); border-radius:var(--radius-pill);
  font-size:14px; font-weight:600; color:var(--navy); background:var(--surface);
  transition:border-color .15s ease, background-color .15s ease;
}
.service-index a:hover{ border-color:var(--teal); background:var(--surface-alt); }

/* ---------- Lista de pasos numerados ---------- */
.steps{ counter-reset:paso; display:grid; gap:16px; }
.steps li{
  counter-increment:paso;
  position:relative; padding-left:44px;
}
.steps li::before{
  content:counter(paso);
  position:absolute; left:0; top:0;
  width:30px; height:30px; border-radius:50%;
  background:rgba(0,212,180,.14); color:var(--teal-deep);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-weight:700; font-size:14px;
}
.steps li strong{ display:block; color:var(--navy); font-size:15.5px; }
.steps li span{ display:block; color:var(--ink-muted); font-size:14.5px; margin-top:4px; }

/* ---------- Formulario largo ---------- */
.form-layout{ grid-template-columns:1.55fr 1fr; }
@media (max-width:900px){ .form-layout{ grid-template-columns:1fr; } }

fieldset{
  border:none; padding:0; margin:0 0 26px;
}
fieldset legend{
  padding:0; margin-bottom:14px;
  font-family:var(--font-display); font-weight:700; font-size:15px;
  color:var(--navy); text-transform:uppercase; letter-spacing:.05em;
}
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:0 18px; }
@media (max-width:620px){ .field-row{ grid-template-columns:1fr; } }
.field-legend{ display:block; font-weight:600; font-size:14px; margin-bottom:10px; color:var(--navy); }

.check-grid{ display:grid; grid-template-columns:1fr 1fr; gap:8px 18px; }
@media (max-width:620px){ .check-grid{ grid-template-columns:1fr; } }
.check-inline,
.field .check-inline,
label.check-inline{
  display:flex; align-items:flex-start; gap:10px;
  font-size:14.5px; font-weight:400; color:var(--ink-muted);
  line-height:1.45; cursor:pointer; margin-bottom:0;
}
.check-inline input[type="checkbox"],
.field .check-inline input[type="checkbox"]{
  width:17px; height:17px; min-height:0; flex:none;
  margin:2px 0 0; padding:0; border-radius:3px;
  accent-color:var(--teal-deep);
}
.on-dark .check-inline{ color:#C3CEDE; }

.hp-field{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

/* ---------- Newsletter ---------- */
.newsletter-card{
  display:grid; grid-template-columns:1.15fr 1fr; gap:36px; align-items:center;
  max-width:1000px; margin:0 auto; padding:40px;
}
@media (max-width:820px){ .newsletter-card{ grid-template-columns:1fr; gap:24px; padding:30px; } }

/* ---------- Reseñas de Google ---------- */
.reviews-embed:empty{ display:none; }

/* ---------- Portfolio ampliable ---------- */
.shots{ display:grid; gap:40px; max-width:1060px; }
.shot{ margin:0; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow-sm); }
.shot-img{ display:block; position:relative; background:var(--surface-alt); }
.shot-img img{ width:100%; height:auto; display:block; border-bottom:1px solid var(--border); }
.shot-zoom{
  position:absolute; right:14px; bottom:22px;
  display:inline-flex; align-items:center; gap:7px;
  padding:8px 14px; border-radius:var(--radius-pill);
  background:rgba(11,29,58,.88); color:var(--white);
  font-size:13px; font-weight:600;
  opacity:0; transition:opacity .18s ease;
}
.shot-img:hover .shot-zoom, .shot-img:focus-visible .shot-zoom{ opacity:1; }
@media (hover:none){ .shot-zoom{ opacity:1; } }
.shot figcaption{ padding:24px 28px 28px; }

/* ---------- Visor de imágenes ---------- */
.lightbox{
  position:fixed; inset:0; z-index:200;
  background:rgba(6,15,30,.94);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  padding:56px 20px 32px;
}
.lightbox[hidden]{ display:none; }
.lightbox img{ max-width:100%; max-height:calc(100vh - 130px); object-fit:contain; border-radius:8px; }
.lightbox-caption{ color:#C3CEDE; font-size:14px; margin-top:14px; text-align:center; }
.lightbox-close{
  position:absolute; top:16px; right:16px;
  width:44px; height:44px; border-radius:50%;
  background:rgba(255,255,255,.12); border:none; color:var(--white);
  display:flex; align-items:center; justify-content:center;
}
.lightbox-close:hover{ background:rgba(255,255,255,.22); }

/* ---------- Metadatos de artículo ---------- */
.article-meta{
  display:flex; flex-wrap:wrap; align-items:center; gap:8px;
  font-size:13.5px; color:var(--ink-muted);
}
.article-meta .byline strong{ color:var(--navy); font-weight:600; }
.article-meta time{ white-space:nowrap; }
.post-meta{ font-size:12.5px; color:var(--ink-muted); margin-top:14px; }
.post-meta-upd{ font-size:12.5px; color:var(--ink-muted); opacity:.8; margin-top:2px; }

/* ---------- Ajustes de cabecera para el menú más largo ---------- */
.site-header .brand{ flex:0 0 auto; }
.header-actions{ flex:0 0 auto; }
.nav-desktop{ flex:0 1 auto; justify-content:center; }
.nav-desktop > a, .nav-drop-toggle{ white-space:nowrap; padding:10px 11px; font-size:14.5px; }
.nav-dropdown a{ white-space:normal; }


/* =========================================================
   Revisión de diseño (25 ago 2026): contraste, enlaces
   visibles, desbordamiento en móvil y zonas de pulsación
   ========================================================= */

/* Turquesa de texto más oscuro: el anterior (#0A9E86) daba 3,36:1
   sobre blanco y no llegaba al 4,5:1 que pide WCAG AA.
   Este da 5,25:1 sobre blanco y 4,7:1 sobre el turquesa claro
   de las píldoras. El turquesa vivo (--teal) no cambia. */
:root{ --teal-deep:#0A7A68; }

/* Cabecera de sección con enlace al lado (blog en la home):
   sin esto, el enlace desbordaba la pantalla en móvil. */
.section-head{
  display:flex; flex-wrap:wrap; gap:12px 20px;
  justify-content:space-between; align-items:flex-end;
  margin-bottom:32px;
}

/* Enlaces dentro de un párrafo: antes eran del mismo color que el
   texto y sin subrayado, así que no se veían. */
.card p a, .card li a,
.article p a, .article li a,
.steps li span a,
.field-hint a{
  color:var(--navy); font-weight:600;
  text-decoration:underline; text-underline-offset:2px; text-decoration-thickness:1px;
}
.card p a:hover, .card li a:hover,
.article p a:hover, .article li a:hover,
.steps li span a:hover,
.field-hint a:hover{ color:var(--teal-deep); }
.on-dark .card p a, .card-dark p a, .card-dark li a{ color:var(--teal); }

/* Píldoras: las reglas .card p y .article p les quitaban el color de
   marca y las dejaban grises. Con dos clases ganan ellas. */
.pill.pill-teal{ color:var(--teal-deep); }
.on-dark .pill.pill-teal, .card-dark .pill.pill-teal{ color:var(--teal); }
.pill.pill-placeholder{ color:#8A5219; }

/* El botón del menú móvil heredaba el blanco de .mobile-menu a */
.mobile-menu .btn-primary{ color:var(--navy); }

/* Zonas de pulsación algo más generosas en móvil */
.site-footer li a{ display:inline-block; padding:5px 0; }
.check-inline{ padding:5px 0; }

/* Numeración de los bloques del formulario */
fieldset legend{ display:flex; align-items:center; gap:10px; }
.legend-step{
  font-family:var(--font-body); font-size:11.5px; font-weight:600;
  letter-spacing:0; text-transform:none;
  color:var(--ink-muted); background:var(--surface-alt);
  border:1px solid var(--border); border-radius:var(--radius-pill);
  padding:3px 9px;
}

/* Títulos del pie: pasan a h3 para no saltarse un nivel de encabezado */
.footer-grid h3{ color:var(--white); font-size:14px; text-transform:uppercase; letter-spacing:.06em; margin-bottom:16px; }

/* Encabezado solo para lectores de pantalla */
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}

/* =========================================================
   Segunda revisión: CTA en móvil, columna lateral pegajosa,
   unidad de tiempo en las fases y aprovechar el ancho medio
   ========================================================= */

/* El botón de la cabecera ya no se oculta en móvil: se acorta */
@media (max-width:560px){
  .header-actions .btn-primary{ display:inline-flex; padding:11px 16px; font-size:14px; }
}
.btn-cta .cta-corto{ display:none; }
@media (max-width:700px){
  .btn-cta .cta-largo{ display:none; }
  .btn-cta .cta-corto{ display:inline; }
}

/* El menú de escritorio cabe hasta 1160 px: antes se escondía en 1200 y
   dejaba la cabecera medio vacía en portátiles pequeños. */
@media (min-width:1121px){ .nav-desktop{ display:flex; } .nav-toggle{ display:none; } }
@media (max-width:1120px){
  .nav-desktop{ display:none; }
  .header-actions .lang-switch{ display:none; }
  .nav-toggle{ display:inline-flex; }
}

/* Secciones a dos columnas: apilar antes, para no dejar media
   pantalla vacía en tablet y portátiles pequeños */
@media (max-width:1100px){
  .section .grid-2{ grid-template-columns:1fr; }
}

/* La columna lateral del formulario acompaña al scroll */
@media (min-width:901px){
  .form-aside{ position:sticky; top:96px; }
}

/* Tiempo que le cuesta al cliente cada fase — misma unidad siempre */
.fase-tiempo{
  margin-top:12px; font-size:14px; color:var(--ink-muted);
}
.fase-tiempo strong{ color:var(--navy); font-weight:600; }

/* ---------- Foto de perfil (Sobre nosotros) ---------- */
.perfil{
  position:relative; width:160px; height:160px; margin:0 auto 18px;
  border-radius:50%; overflow:hidden; background:var(--surface-alt);
  box-shadow:0 0 0 4px rgba(0,212,180,.18);
}
.perfil img{ position:relative; z-index:1; width:100%; height:100%; object-fit:cover; display:block; }
.perfil-iniciales{
  position:absolute; inset:0; z-index:0;
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-weight:700; font-size:48px; color:var(--navy);
}
