/* ==========================================================
   sitioswebapatzingan.com — Sistema de diseño
   Tipografía: Outfit · Paleta: gris y azul
   ========================================================== */

:root {
  /* Paleta base */
  --ink-950: #0B0E13;
  --ink-800: #1A2330;
  --blue-600: #1F6FEB;
  --blue-700: #1859C0;
  --blue-300: #7FAAF4;
  --gray-400: #A8B3BF;
  --gray-100: #E6EBF0;
  --gray-50: #F3F6F9;
  --gray-600: #4A5666;
  --white: #FFFFFF;

  /* Tokens semánticos */
  --bg: var(--gray-100);
  --surface: var(--white);
  --text: var(--ink-800);
  --text-muted: var(--gray-600);
  --border: #CBD3DC;
  --accent: var(--blue-600);

  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(11, 14, 19, .06), 0 1px 3px rgba(11, 14, 19, .08);
  --shadow-md: 0 8px 24px rgba(11, 14, 19, .10);
  --shadow-lg: 0 20px 50px rgba(11, 14, 19, .18);
  --container: 1180px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue-700); text-underline-offset: 3px; }
a:hover { color: var(--blue-600); }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
h3 { font-size: 1.3rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--blue-300); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--blue-600); color: #fff; padding: 12px 18px; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; color: #fff; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .75em 1.5em;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  border: 2px solid transparent; border-radius: 999px; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn .i { transition: transform .2s var(--ease); }
.btn:hover .i-arrow { transform: translateX(3px); }
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: 0 6px 18px rgba(31, 111, 235, .35); }
.btn-primary:hover { background: var(--blue-700); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(168, 179, 191, .5); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }
.btn-outline { background: transparent; color: var(--ink-800); border-color: var(--ink-800); }
.btn-outline:hover { background: var(--ink-800); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { min-height: 44px; padding: .55em 1.2em; font-size: .95rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(11, 14, 19, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(168, 179, 191, .14);
  transition: background-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { background: rgba(11, 14, 19, .97); box-shadow: 0 6px 24px rgba(0, 0, 0, .3); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  color: var(--gray-400); text-decoration: none; font-weight: 500; font-size: .98rem;
  padding: 10px 14px; border-radius: 999px; transition: color .2s, background-color .2s;
}
.nav a:not(.btn):hover { color: #fff; background: rgba(255, 255, 255, .07); }
.nav a[aria-current="page"] { color: #fff; background: rgba(31, 111, 235, .22); }
.nav .btn { margin-left: 10px; }
.menu-toggle {
  display: none; width: 48px; height: 48px; align-items: center; justify-content: center;
  background: transparent; border: 1px solid rgba(168, 179, 191, .35); border-radius: 12px; color: #fff; cursor: pointer;
}
.menu-toggle .i { width: 24px; height: 24px; }
.menu-toggle .i-close { display: none; }
.menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }

@media (max-width: 980px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px 20px 28px; background: var(--ink-950); border-bottom: 1px solid rgba(168, 179, 191, .2);
    box-shadow: 0 24px 40px rgba(0, 0, 0, .4);
    transform: translateY(-12px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform .25s var(--ease), opacity .25s var(--ease), visibility .25s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
  .nav a:not(.btn) { padding: 14px 16px; font-size: 1.1rem; border-radius: 12px; }
  .nav .btn { margin: 12px 0 0; }
}

/* ---------- Secciones ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-light { background: var(--bg); }
.section-white { background: var(--white); }
.section-dark { background: var(--ink-950); color: #fff; }
.section-dark2 { background: var(--ink-800); color: #fff; }
.on-dark { color: #fff; }
.on-dark .muted, .section-dark .muted, .section-dark2 .muted { color: var(--gray-400); }
.muted { color: var(--text-muted); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.15rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em; margin-bottom: 1rem;
  font-size: .85rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-700);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.section-dark .eyebrow, .section-dark2 .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--blue-300); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; background: var(--ink-950);
  padding-block: clamp(56px, 8vw, 112px) clamp(64px, 9vw, 120px);
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(31, 111, 235, .38), transparent 60%),
    radial-gradient(700px 480px at -10% 110%, rgba(31, 111, 235, .18), transparent 60%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(168, 179, 191, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(168, 179, 191, .07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 .hl { color: var(--blue-300); }
.hero .lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--gray-400); max-width: 34em; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 2.25rem; color: var(--gray-400); font-size: .98rem; }
.hero-points li { display: inline-flex; align-items: center; gap: .5em; }
.hero-points .i { color: var(--blue-300); }

.mock {
  position: relative; background: linear-gradient(160deg, var(--ink-800), #131a24);
  border: 1px solid rgba(168, 179, 191, .22); border-radius: 20px; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(31, 111, 235, .08);
  overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid rgba(168, 179, 191, .16); }
.mock-bar span { width: 11px; height: 11px; border-radius: 50%; background: rgba(168, 179, 191, .35); }
.mock-bar em { margin-left: 10px; flex: 1; font-style: normal; font-size: .8rem; color: var(--gray-400); background: rgba(11, 14, 19, .55); padding: 5px 12px; border-radius: 999px; }
.mock-body { padding: 22px; display: grid; gap: 14px; }
.mock-hero { height: 112px; border-radius: 12px; background: linear-gradient(120deg, var(--blue-600), #4b8df0 60%, var(--blue-300)); position: relative; overflow: hidden; }
.mock-hero::after { content: ""; position: absolute; right: -30px; top: -30px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.mock-line { height: 10px; border-radius: 6px; background: rgba(168, 179, 191, .28); }
.mock-line.w60 { width: 60%; } .mock-line.w85 { width: 85%; } .mock-line.w40 { width: 40%; background: rgba(31, 111, 235, .55); }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mock-cards div { height: 74px; border-radius: 10px; background: rgba(168, 179, 191, .12); border: 1px solid rgba(168, 179, 191, .16); }
.mock-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: #fff; color: var(--ink-800); font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-md);
}
.mock-chip .i { color: var(--blue-600); }
.mock-chip.c1 { left: -14px; bottom: 54px; }
.mock-chip.c2 { right: -12px; top: 64px; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } .mock { max-width: 520px; } .mock-chip.c1 { left: 8px; } .mock-chip.c2 { right: 8px; } }

/* Hero de páginas internas */
.page-hero { position: relative; overflow: hidden; color: #fff; background: var(--ink-950); padding-block: clamp(48px, 7vw, 88px); isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(800px 420px at 90% -20%, rgba(31, 111, 235, .35), transparent 60%); }
.page-hero .lead { font-size: 1.25rem; color: var(--gray-400); max-width: 40em; margin-bottom: 1.75rem; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.crumbs { display: flex; gap: 8px; font-size: .92rem; color: var(--gray-400); margin-bottom: 1.25rem; }
.crumbs a { color: var(--gray-400); }
.crumbs a:hover { color: #fff; }

/* ---------- Grids y tarjetas ---------- */
.grid { display: grid; gap: 22px; }
.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: 1020px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
a.card { text-decoration: none; color: inherit; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-300); }
.card .icon-box { margin-bottom: 20px; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--text-muted); margin-bottom: 0; }
.card .more { margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: .5em; color: var(--blue-700); font-weight: 600; }
.icon-box { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: rgba(31, 111, 235, .12); color: var(--blue-600); }
.icon-box .i { width: 26px; height: 26px; }
.section-dark .card, .section-dark2 .card { background: rgba(255, 255, 255, .04); border-color: rgba(168, 179, 191, .2); box-shadow: none; }
.section-dark .card p, .section-dark2 .card p { color: var(--gray-400); }
.section-dark .icon-box, .section-dark2 .icon-box { background: rgba(31, 111, 235, .22); color: var(--blue-300); }

/* ---------- Paquetes ---------- */
.packages { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.packages .pkg:nth-child(n+4) { grid-column: span 1; }
@media (max-width: 1020px) { .packages { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .packages { grid-template-columns: 1fr; } }
.pkg {
  position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 32px 28px 28px; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.pkg:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pkg.featured { background: var(--ink-950); color: #fff; border-color: var(--blue-600); box-shadow: 0 18px 48px rgba(31, 111, 235, .28); }
.pkg .badge {
  position: absolute; top: -14px; left: 28px; background: var(--blue-600); color: #fff; font-size: .8rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px;
}
.pkg .icon-box { margin-bottom: 18px; }
.pkg.featured .icon-box { background: rgba(31, 111, 235, .28); color: var(--blue-300); }
.pkg h3 { font-size: 1.55rem; margin-bottom: .25em; }
.pkg .for { color: var(--text-muted); font-size: .98rem; margin-bottom: 1.25rem; min-height: 3.1em; }
.pkg.featured .for { color: var(--gray-400); }
.pkg .meta { display: flex; align-items: center; gap: .5em; font-size: .92rem; font-weight: 500; color: var(--blue-700); padding: 12px 0; border-block: 1px solid var(--border); margin-bottom: 1.25rem; }
.pkg.featured .meta { color: var(--blue-300); border-color: rgba(168, 179, 191, .22); }
.checks { display: grid; gap: 11px; margin-bottom: 1.75rem; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: .99rem; }
.checks .i { margin-top: .2em; color: var(--blue-600); width: 1.1em; height: 1.1em; stroke-width: 2.4; }
.pkg.featured .checks .i { color: var(--blue-300); }
.pkg .btn { margin-top: auto; }
.pkg-note { text-align: center; margin-top: 28px; color: var(--text-muted); font-size: .98rem; }

/* Compacto (home) */
.pkg-mini { padding: 24px; }
.pkg-mini h3 { font-size: 1.25rem; }
.pkg-mini p { color: var(--text-muted); font-size: .98rem; }

/* ---------- Tabla comparativa ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; min-width: 760px; font-size: .98rem; }
th, td { padding: 16px 18px; text-align: center; border-bottom: 1px solid var(--border); }
th:first-child, td:first-child { text-align: left; font-weight: 600; }
thead th { background: var(--ink-950); color: #fff; font-weight: 600; border-bottom: 0; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) td { background: var(--gray-50); }
td .i { margin-inline: auto; color: var(--blue-600); stroke-width: 2.6; }
td .no { color: var(--gray-400); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Pasos ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1020px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .steps { grid-template-columns: 1fr; } }
.step { counter-increment: step; position: relative; padding: 28px 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(168, 179, 191, .2); }
.step::before { content: "0" counter(step); display: block; font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; color: var(--blue-600); line-height: 1; margin-bottom: 14px; }
.step h3 { color: #fff; }
.step p { color: var(--gray-400); margin: 0; }

/* ---------- Split / listas ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.feature-list { display: grid; gap: 22px; }
.feature-list li { display: flex; gap: 16px; }
.feature-list h3 { font-size: 1.15rem; margin-bottom: .15em; }
.feature-list p { margin: 0; color: var(--text-muted); }
.section-dark .feature-list p, .section-dark2 .feature-list p { color: var(--gray-400); }

.panel { border-radius: 22px; padding: clamp(28px, 4vw, 44px); background: var(--ink-800); color: #fff; border: 1px solid rgba(168, 179, 191, .18); box-shadow: var(--shadow-lg); }
.panel h3 { color: #fff; }
.panel .checks .i { color: var(--blue-300); }

/* ---------- CTA ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(36px, 6vw, 72px); background: linear-gradient(120deg, var(--blue-700), var(--blue-600) 55%, #4b8df0); color: #fff; text-align: center; box-shadow: 0 24px 60px rgba(31, 111, 235, .35); }
.cta-band::before { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.cta-band > * { position: relative; }
.cta-band h2 { max-width: 18em; margin-inline: auto; }
.cta-band p { font-size: 1.15rem; max-width: 36em; margin: 0 auto 1.75rem; color: rgba(255, 255, 255, .9); }
.cta-band .btn-light { background: #fff; color: var(--ink-950); }
.cta-band .btn-light:hover { background: var(--gray-100); color: var(--ink-950); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none;
  padding: 20px 22px; font-weight: 600; font-size: 1.1rem; min-height: 56px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { transition: transform .25s var(--ease); color: var(--blue-600); }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--text-muted); }

/* ---------- Formulario ---------- */
.form-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 960px) { .form-layout { grid-template-columns: 1fr; } }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-md); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .97rem; }
.field label .req { color: var(--blue-700); }
.field .hint { font-size: .88rem; color: var(--text-muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--gray-50); border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--gray-400); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-600); background: #fff; box-shadow: 0 0 0 4px rgba(31, 111, 235, .18); }
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: #B42318; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: var(--text-muted); }
.consent input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--blue-600); flex: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 18px; padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 500; display: none; }
.form-status.is-visible { display: block; }
.form-status.ok { background: #E3F1E8; color: #14532D; border: 1px solid #9BC8AB; }
.form-status.err { background: #FDE8E6; color: #7A1A12; border: 1px solid #E5A29B; }
.contact-list { display: grid; gap: 20px; margin-top: 28px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list strong { display: block; }
.contact-list a { color: inherit; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-950); color: var(--gray-400); padding-top: clamp(48px, 7vw, 80px); border-top: 1px solid rgba(168, 179, 191, .12); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer img { height: 44px; width: auto; margin-bottom: 18px; }
.site-footer h4 { color: #fff; font-size: 1rem; letter-spacing: 0; margin-bottom: 1rem; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer a { color: var(--gray-400); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer p { margin-bottom: .6em; }
.footer-bottom { border-top: 1px solid rgba(168, 179, 191, .14); padding-block: 22px; font-size: .92rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 404 / gracias ---------- */
.center-page { min-height: 62vh; display: grid; place-items: center; text-align: center; }
.center-page .icon-box { margin: 0 auto 24px; width: 72px; height: 72px; border-radius: 22px; }
.center-page .icon-box .i { width: 36px; height: 36px; }

/* Imágenes editoriales de servicios */
.service-card-img { width: calc(100% + 44px); max-width: none; height: 168px; object-fit: cover; margin: -22px -22px 22px; border-radius: var(--radius) var(--radius) 0 0; }
.page-hero-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(280px, .85fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.page-hero-copy { min-width: 0; }
.page-hero-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 20px; border: 1px solid rgba(255,255,255,.18); box-shadow: 0 24px 60px rgba(0,0,0,.28); }
@media (max-width: 760px) { .page-hero-layout { grid-template-columns: 1fr; } .page-hero-img { max-height: 300px; } }

/* Carrusel principal */
.hero { min-height: min(760px, calc(100svh - var(--header-h))); padding: 0; display: grid; isolation: isolate; }
.hero-carousel { position: relative; min-height: min(760px, calc(100svh - var(--header-h))); width: 100%; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; display: flex; align-items: center; visibility: hidden; opacity: 0; transition: opacity .65s ease, visibility .65s; background: var(--ink-950); }
.hero-slide.is-active { position: relative; visibility: visible; opacity: 1; }
.hero-slide-image { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 48%; }
.hero-slide::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(11,14,19,.96) 0%, rgba(11,14,19,.87) 38%, rgba(11,14,19,.47) 68%, rgba(11,14,19,.16) 100%), linear-gradient(0deg, rgba(11,14,19,.5), transparent 48%); }
.hero-slide-inner { position: relative; z-index: 2; width: min(100% - 40px, var(--container)); padding-block: clamp(90px, 15vh, 156px) clamp(132px, 19vh, 190px); margin-inline: auto; }
.hero-copy { max-width: 650px; }
.hero-copy h1, .hero-copy h2 { max-width: 13ch; margin-bottom: .48em; font-size: clamp(2.7rem, 6.2vw, 5rem); font-weight: 800; line-height: 1.02; letter-spacing: -.04em; }
.hero-copy .lead { max-width: 34em; margin-bottom: 1.8rem; font-size: clamp(1.08rem, 1.6vw, 1.3rem); color: rgba(255,255,255,.84); }
.hero-controls { position: absolute; z-index: 4; left: 50%; bottom: clamp(24px, 5vh, 52px); transform: translateX(-50%); display: flex; align-items: center; gap: 12px; }
.hero-control-btn { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.38); border-radius: 50%; color: #fff; background: rgba(11,14,19,.35); cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.hero-control-btn:hover, .hero-control-btn:focus-visible { background: var(--blue-600); border-color: var(--blue-300); color: #fff; }
.hero-prev .i { transform: rotate(180deg); }
.hero-toggle { width: auto; padding-inline: 16px; border-radius: 999px; font: inherit; font-size: .9rem; }
.hero-dots { display: flex; gap: 9px; margin-inline: 3px; }
.hero-dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.53); cursor: pointer; transition: width .25s ease, background .25s ease; }
.hero-dot.is-active { width: 28px; background: #fff; }
@media (max-width: 700px) { .hero, .hero-carousel { min-height: 680px; } .hero-slide-image { object-position: 62% center; } .hero-slide::after { background: linear-gradient(90deg, rgba(11,14,19,.91), rgba(11,14,19,.60)), linear-gradient(0deg, rgba(11,14,19,.60), transparent 55%); } .hero-slide-inner { padding-block: 90px 150px; } .hero-copy h1, .hero-copy h2 { max-width: 12ch; font-size: clamp(2.45rem, 12vw, 3.45rem); } .hero-controls { gap: 9px; } .hero-control-btn { width: 42px; height: 42px; } }
@media (prefers-reduced-motion: reduce) { .hero-slide, .hero-control-btn, .hero-dot { transition: none; } }

.no-js .hero-controls { display: none; }
