/* Google Fonts are preconnected and loaded asynchronously in HTML <head> */

/* Google Material Symbols Outlined */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined' !important;
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
}

/* =========================================================
   FULL PACK · Sistema de diseño
   Marca: #FFB403 (ámbar) · #8EC7E5 (celeste)
   Temas: claro / oscuro (auto por horario + manual)
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --brand: #FFB403;
  --brand-soft: #FFD166;
  --brand-ink: #1C1400;
  --sky: #8EC7E5;

  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;

  --container: 1160px;
  --header-h: 76px;
}

/* Tema CLARO (default) */
:root, [data-theme="light"] {
  color-scheme: light;
  --bg: #FFFFFF;
  --bg-alt: #F5F9FC;
  --surface: #FFFFFF;
  --surface-2: #EFF6FB;
  --field: #FFFFFF;
  --text: #0C1622;
  --muted: #54667A;
  --border: #E2EBF2;
  --accent-strong: #2C7BAE;           /* celeste legible sobre claro */
  --shadow-sm: 0 4px 14px rgba(12, 22, 34, .06);
  --shadow-lg: 0 18px 50px rgba(12, 22, 34, .10);
  --grid-line: rgba(12, 22, 34, .05);
  --blob-a: rgba(255, 180, 3, .20);
  --blob-b: rgba(142, 199, 229, .30);
}

/* Tema OSCURO */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B1118;
  --bg-alt: #0E151D;
  --surface: #131C26;
  --surface-2: #18232F;
  --field: #0F1822;
  --text: #E8F1F8;
  --muted: #9DAEBD;
  --border: rgba(142, 199, 229, .16);
  --accent-strong: #8EC7E5;
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, .35);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, .50);
  --grid-line: rgba(142, 199, 229, .06);
  --blob-a: rgba(255, 180, 3, .14);
  --blob-b: rgba(142, 199, 229, .14);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color .45s ease, color .45s ease;
}
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--muted); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
strong { color: var(--text); }
::selection { background: var(--brand); color: var(--brand-ink); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.container { width: min(var(--container), 92%); margin-inline: auto; }
.container-narrow { max-width: 820px; }
.section { padding: clamp(64px, 9vw, 108px) 0; }
.section-alt { background: var(--bg-alt); }
.pt-0 { padding-top: 0; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--brand); color: var(--brand-ink); padding: .7rem 1.2rem; border-radius: 0 0 12px 0; font-weight: 700; z-index: 200; }
.skip-link:focus { left: 0; }

/* ---------- Reveals (scroll) ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--rd, 0ms); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Topbar ---------- */
.topbar { background: var(--bg-alt); border-bottom: 1px solid var(--border); font-size: .8rem; }
.topbar-inner { display: flex; gap: 1.6rem; justify-content: space-between; padding: .45rem 0; color: var(--muted); }
.topbar-wa { color: var(--accent-strong); font-weight: 600; }
.topbar-wa:hover { color: var(--brand); }
@media (max-width: 860px) { .topbar-item:not(.topbar-wa) { display: none; } .topbar-inner { justify-content: center; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background-color .45s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--header-h); }
.brand-logo { height: 52px; width: auto; }
[data-theme="dark"] .brand-logo { filter: drop-shadow(0 2px 10px rgba(142,199,229,.15)); }

.main-nav { display: flex; gap: 2rem; }
.main-nav a { font-weight: 600; font-size: .95rem; position: relative; padding: .4rem 0; color: var(--muted); transition: color .25s; }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--brand), var(--sky)); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--text); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: .8rem; }

/* Toggle de tema */
.theme-toggle {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  cursor: pointer; display: grid; place-items: center; overflow: hidden;
  transition: border-color .25s, transform .25s, background-color .45s;
}
.theme-toggle:hover { border-color: var(--brand); transform: rotate(12deg); }
.theme-toggle svg { position: absolute; width: 20px; height: 20px; transition: transform .5s cubic-bezier(.2,.7,.2,1), opacity .35s; }
[data-theme="light"] .icon-moon { transform: translateY(140%) rotate(90deg); opacity: 0; }
[data-theme="light"] .icon-sun  { transform: none; opacity: 1; color: #E09E00; }
[data-theme="dark"]  .icon-sun  { transform: translateY(-140%) rotate(-90deg); opacity: 0; }
[data-theme="dark"]  .icon-moon { transform: none; opacity: 1; color: var(--sky); }

/* Burger + menú mobile */
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.burger span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; flex-direction: column; gap: .4rem; padding: 1rem 4% 1.4rem; border-top: 1px solid var(--border); background: var(--bg); }
.mobile-menu a { padding: .8rem .4rem; font-weight: 600; border-bottom: 1px solid var(--border); }
.mobile-menu a.btn { border-bottom: none; margin-top: .8rem; justify-content: center; }
.mobile-menu.open { display: flex; animation: menuIn .35s cubic-bezier(.2,.7,.2,1); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .burger { display: flex; }
  .header-actions .btn-sm { display: none; }
}

/* ---------- Botones ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-display); font-weight: 700; font-size: .98rem;
  padding: .95rem 1.7rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; overflow: hidden; transition: transform .25s, box-shadow .25s, background-color .25s, border-color .25s;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s; }
.btn:hover svg { transform: translateX(4px); }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.5) 50%, transparent 60%); transform: translateX(-120%); transition: transform .7s ease; }
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }

.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 10px 26px color-mix(in srgb, var(--brand) 35%, transparent); }
.btn-primary:hover { box-shadow: 0 14px 34px color-mix(in srgb, var(--brand) 45%, transparent); }
.btn-ghost { border-color: var(--border); background: var(--surface); color: var(--text); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-dark { background: #101820; color: #FFF; }
.btn-ghost-light { border-color: rgba(255,255,255,.45); color: #FFF; }
.btn-ghost-light:hover { border-color: #FFF; background: rgba(255,255,255,.08); }
.btn-sm { padding: .6rem 1.15rem; font-size: .88rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Eyebrows / highlights ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: .74rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-strong); margin-bottom: .9rem; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--brand); border-radius: 2px; }
.eyebrow-pill { display: inline-flex; align-items: center; gap: .5rem; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); font-size: .82rem; font-weight: 600; padding: .5rem 1.1rem; border-radius: 999px; margin-bottom: 1.4rem; }
.hl { color: var(--brand); position: relative; white-space: nowrap; }
.hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: .04em; height: .14em; background: color-mix(in srgb, var(--sky) 70%, transparent); border-radius: 4px; transform: scaleX(0); transform-origin: left; animation: swipe 1s .6s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes swipe { to { transform: scaleX(1); } }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); max-width: 56ch; }

.section-head { max-width: 720px; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.section-sub { font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(56px, 8vw, 96px) 0 clamp(64px, 8vw, 100px); overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 30%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; position: relative; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0 1.6rem; }
.hero-ctas.center { justify-content: center; }
.hero-chips { display: flex; flex-wrap: wrap; gap: .7rem; }
.hero-chips li { background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: .45rem 1rem; font-size: .85rem; font-weight: 600; color: var(--muted); }

/* Visual tracking */
.hero-visual { position: relative; }
.blob { position: absolute; width: 340px; height: 340px; border-radius: 50%; filter: blur(70px); z-index: 0; animation: floatBlob 12s ease-in-out infinite alternate; }
.blob-a { background: var(--blob-a); top: -60px; right: -40px; }
.blob-b { background: var(--blob-b); bottom: -70px; left: -50px; animation-delay: -6s; }
@keyframes floatBlob { from { transform: translate(0,0) scale(1); } to { transform: translate(-30px, 26px) scale(1.12); } }

.track-card { position: relative; z-index: 1; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow-lg); }
.track-head { display: flex; align-items: center; gap: .6rem; padding-bottom: 1rem; border-bottom: 1px dashed var(--border); margin-bottom: .6rem; }
.track-head strong { font-family: var(--font-display); font-size: .95rem; }
.track-id { margin-left: auto; font-size: .78rem; color: var(--muted); font-weight: 600; letter-spacing: .08em; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 0 rgba(34,197,94,.5); animation: pulseDot 1.8s infinite; }
@keyframes pulseDot { 70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

.track-steps li { display: flex; gap: .95rem; align-items: flex-start; padding: .85rem 0; position: relative; }
.track-steps li + li::before { content: ""; position: absolute; left: 17px; top: -6px; height: 14px; width: 2px; background: var(--border); }
.step-icon { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); font-size: .95rem; }
.track-steps .done .step-icon { background: color-mix(in srgb, var(--brand) 18%, var(--surface)); border-color: color-mix(in srgb, var(--brand) 45%, transparent); color: #B27B00; font-weight: 800; }
.track-steps .active .step-icon { background: color-mix(in srgb, var(--sky) 20%, var(--surface)); border-color: var(--sky); animation: pulseDot2 2s infinite; }
@keyframes pulseDot2 { 0%,100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--sky) 45%, transparent); } 50% { box-shadow: 0 0 0 8px transparent; } }
.track-steps .pending { opacity: .55; }
.track-steps strong { display: block; font-size: .95rem; }
.track-steps small { color: var(--muted); font-size: .8rem; }
.track-eta { margin-top: .8rem; background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 16%, var(--surface)), color-mix(in srgb, var(--sky) 16%, var(--surface))); border: 1px solid var(--border); border-radius: 14px; padding: .8rem 1rem; font-size: .9rem; color: var(--muted); }

.float-chip { position: absolute; z-index: 2; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); border-radius: 999px; padding: .55rem 1.05rem; font-size: .82rem; font-weight: 700; animation: floatChip 6s ease-in-out infinite; }
.chip-a { top: -18px; right: 6%; color: #B27B00; }
.chip-b { bottom: -16px; left: 2%; color: var(--accent-strong); animation-delay: -3s; }
@keyframes floatChip { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 480px; margin-inline: auto; }
}

/* ---------- Banda especialidad ---------- */
.specialty { position: relative; text-align: center; padding: clamp(72px, 10vw, 130px) 0; overflow: hidden; background: var(--bg-alt); }
.specialty::before, .specialty::after { content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.specialty::before { background: var(--blob-a); top: -160px; left: -120px; }
.specialty::after { background: var(--blob-b); bottom: -180px; right: -120px; }
.pulse-badge { display: inline-flex; align-items: center; gap: .5rem; background: var(--brand); color: var(--brand-ink); font-weight: 800; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; padding: .55rem 1.3rem; border-radius: 999px; margin-bottom: 1.6rem; box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 55%, transparent); animation: badgePulse 2.4s infinite; }
@keyframes badgePulse { 70% { box-shadow: 0 0 0 16px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.specialty h2 { font-size: clamp(2.7rem, 8vw, 6rem); line-height: .98; letter-spacing: -.03em; margin-bottom: 1.2rem; }
.sp-line1 { display: block; color: var(--brand); text-shadow: 0 8px 40px color-mix(in srgb, var(--brand) 35%, transparent); }
.sp-line2 { display: block; color: var(--sky); }
@supports (-webkit-text-stroke: 2px black) {
  .sp-line2 { color: transparent; -webkit-text-stroke: 2px var(--sky); }
}
.sp-sub { max-width: 60ch; margin: 0 auto 2rem; font-size: 1.08rem; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; background: var(--brand); color: var(--brand-ink); border-block: 1px solid rgba(0,0,0,.06); }
.marquee-track { display: flex; width: max-content; animation: marquee 26s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-weight: 800; font-size: .95rem; letter-spacing: .12em; padding: .85rem 0; white-space: nowrap; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cards de servicios ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s, background-color .45s; }
.service-card { position: relative; padding: 1.7rem 1.5rem; display: flex; flex-direction: column; gap: .55rem; }
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 50%, var(--border)); }
.service-card.featured { border-color: var(--brand); background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 10%, var(--surface)), var(--surface) 55%); }
.card-icon { width: 52px; height: 52px; display: grid; place-items: center; font-size: 1.5rem; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); margin-bottom: .4rem; }
.card-tag { position: absolute; top: 1.3rem; right: 1.3rem; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-strong); background: color-mix(in srgb, var(--sky) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--sky) 40%, transparent); padding: .3rem .7rem; border-radius: 999px; }
.tag-brand { color: #B27B00; background: color-mix(in srgb, var(--brand) 16%, var(--surface)); border-color: color-mix(in srgb, var(--brand) 50%, transparent); }
.service-card p { font-size: .93rem; flex: 1; }
.service-card a { font-weight: 700; font-size: .9rem; color: var(--accent-strong); transition: color .25s; }
.service-card a:hover { color: var(--brand); }
@media (max-width: 1000px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .cards-grid { grid-template-columns: 1fr; } }

/* ---------- Why + social card ---------- */
.why-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.check-list { display: grid; gap: .9rem; margin-top: 1.6rem; }
.check-list li { display: flex; gap: .8rem; align-items: flex-start; color: var(--muted); }
.check-list li span { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 800; font-size: .8rem; margin-top: .1rem; }
.light-list li { color: rgba(255,255,255,.85); }
.light-list li strong { color: #FFF; }

.social-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.8rem; box-shadow: var(--shadow-lg); position: relative; }
.social-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, var(--brand), var(--sky)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; opacity: .55; }
.social-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.1rem; }
.social-avatar { width: 52px; height: 52px; object-fit: contain; background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 6px; }
.social-head small { display: block; color: var(--muted); font-size: .8rem; }
.social-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; }
.social-chips span { background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: .35rem .9rem; font-size: .82rem; font-weight: 600; color: var(--muted); }
.social-close { font-weight: 700; color: var(--accent-strong); margin: 0; }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.step { position: relative; padding: 2rem 1.6rem; border-radius: var(--radius-lg); border: 1px dashed var(--border); background: var(--surface); transition: transform .3s, border-color .3s; }
.step:hover { transform: translateY(-6px); border-color: var(--brand); }
.step-num { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; color: transparent; -webkit-text-stroke: 1.5px var(--brand); display: block; margin-bottom: .6rem; }
@media (max-width: 800px) { .steps-grid { grid-template-columns: 1fr; } }

/* ---------- CTA panel ---------- */
.cta-panel { position: relative; overflow: hidden; text-align: center; border-radius: 32px; padding: clamp(3rem, 6vw, 4.6rem) 2rem; background: linear-gradient(135deg, var(--brand) 0%, #FFC93C 55%, var(--sky) 130%); color: var(--brand-ink); }
.cta-panel h2 { color: #191200; font-size: clamp(1.9rem, 4vw, 3rem); }
.cta-panel p { color: rgba(25,18,0,.75); font-weight: 600; font-size: 1.05rem; }
.cta-panel::before { content: "📦"; position: absolute; font-size: 9rem; opacity: .12; right: -20px; bottom: -40px; transform: rotate(-12deg); }

/* ---------- Page hero (subpáginas) ---------- */
.page-hero { padding: clamp(56px, 8vw, 92px) 0 clamp(30px, 4vw, 44px); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 60% 70% at 30% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 60% 70% at 30% 40%, #000 20%, transparent 75%); }
.page-hero .container { position: relative; }

/* ---------- Banner Flex (servicios) ---------- */
.flex-banner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.5rem; align-items: center; border-radius: 32px; padding: clamp(2.2rem, 5vw, 3.6rem); background: linear-gradient(140deg, #FFB403 0%, #FFC93C 60%, #FFD166 100%); color: var(--brand-ink); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.flex-banner::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: rgba(142,199,229,.35); filter: blur(80px); right: -120px; top: -140px; }
.flex-banner .pulse-badge { background: #191200; color: var(--brand); animation: none; }
.flex-banner h2 { color: #191200; font-size: clamp(2rem, 4.6vw, 3.4rem); }
.flex-banner p { color: rgba(25,18,0,.8); font-size: 1.05rem; }

/* Botones dentro del banner Flex */
.btn-ghost-dark {
  border: 1.5px solid #191200;
  color: #191200;
  background: rgba(25, 18, 0, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-ghost-dark:hover {
  background: #191200;
  color: #FFB403;
  border-color: #191200;
}

.flex-banner-visual-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.flex-banner-visual { position: relative; z-index: 1; display: grid; place-items: center; min-height: 260px; width: 100%; }
.big-emoji { font-size: 7rem; filter: drop-shadow(0 16px 30px rgba(25,18,0,.25)); animation: floatChip 5s ease-in-out infinite; }
.orbit-chip { position: absolute; background: #FFF; color: #191200; font-weight: 800; font-size: .85rem; border-radius: 999px; padding: .5rem 1.1rem; box-shadow: 0 10px 24px rgba(25,18,0,.18); animation: floatChip 6s ease-in-out infinite; }
.oc-1 { top: 8%; left: 12%; }
.oc-2 { bottom: 14%; left: 4%; animation-delay: -2s; }
.oc-3 { top: 40%; right: 2%; animation-delay: -4s; }

.flex-banner-actions-desktop {
  display: flex;
  justify-content: center;
  width: 100%;
}
.flex-banner-actions-mobile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}
.btn-cobertura-mobile {
  display: none;
}

@media (max-width: 900px) {
  .flex-banner { grid-template-columns: 1fr; }
  .flex-banner-visual { min-height: 200px; }
  .flex-banner-actions-desktop { display: none; }
  .btn-cobertura-mobile { display: inline-flex; }
  .flex-banner-actions-mobile { margin-top: 1rem; }
}

/* ---------- Detalle servicios ---------- */
.detail-stack { display: grid; gap: 1.4rem; max-width: 900px; margin-inline: auto; }
.detail-row { display: grid; grid-template-columns: 92px 1fr; gap: 1.6rem; align-items: start; padding: 2rem; border-radius: var(--radius-lg); }
.detail-row:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--sky) 55%, var(--border)); }
.detail-icon { width: 76px; height: 76px; display: grid; place-items: center; font-size: 2.1rem; border-radius: 22px; background: var(--surface-2); border: 1px solid var(--border); }
.meta-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .9rem; }
.meta-chips span { font-size: .8rem; font-weight: 600; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: .35rem .85rem; }
@media (max-width: 640px) { .detail-row { grid-template-columns: 1fr; } }

/* ---------- Tabla comparativa ---------- */
.table-wrap { overflow-x: auto; padding: .6rem; }
.compare-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .95rem; }
.compare-table th { text-align: left; font-family: var(--font-display); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 1.1rem 1.2rem; border-bottom: 2px solid var(--border); }
.compare-table td { padding: 1.05rem 1.2rem; border-bottom: 1px solid var(--border); color: var(--muted); }
.compare-table td strong { color: var(--text); }
.compare-table tbody tr { transition: background-color .25s; }
.compare-table tbody tr:hover { background: var(--surface-2); }
.row-featured { background: color-mix(in srgb, var(--brand) 9%, transparent); box-shadow: inset 4px 0 0 var(--brand); }
.row-featured td { color: var(--text); }

/* ---------- Panel precios ---------- */
.price-panel { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding: clamp(2rem, 4vw, 3rem); border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); }
.price-panel h2 { margin-bottom: .4rem; }
.price-panel p { max-width: 52ch; margin: 0; }

/* ---------- Acordeón FAQ ---------- */
.acc-list { display: grid; gap: .9rem; }
.acc { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); overflow: hidden; transition: border-color .3s; }
.acc.open { border-color: color-mix(in srgb, var(--brand) 55%, var(--border)); }
.acc-head { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: none; border: none; cursor: pointer; text-align: left; font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: var(--text); padding: 1.15rem 1.4rem; }
.acc-icon { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); color: var(--accent-strong); font-size: 1.1rem; font-weight: 600; transition: transform .35s, background-color .3s, color .3s; }
.acc.open .acc-icon { transform: rotate(45deg); background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .45s cubic-bezier(.2,.7,.2,1); }
.acc-body p { padding: 0 1.4rem 1.3rem; margin: 0; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 1.6rem; align-items: start; margin-bottom: 2rem; }
.form-card { padding: clamp(1.8rem, 4vw, 2.6rem); }
.form-card h2 { font-size: 1.6rem; }
.form-note { font-size: .92rem; margin-bottom: 1.6rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.1rem; }
.form-field label { font-size: .85rem; font-weight: 600; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--text);
  background: var(--field); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: .85rem 1rem; transition: border-color .25s, box-shadow .25s, background-color .45s;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent);
}
.hp-field { display: none !important; }  /* honeypot anti-spam */
.form-legal { font-size: .78rem; color: var(--muted); margin: .9rem 0 0; text-align: center; }

.contact-aside { display: grid; gap: 1.2rem; }
.contact-card { padding: 1.6rem; text-align: left; }
.contact-card .card-icon { margin-bottom: .8rem; }
.contact-card p { font-size: .88rem; margin-bottom: .5rem; }
.big-data { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--text); margin-bottom: .3rem; line-height: 1.25; }
.big-data a:hover { color: var(--brand); }
.link-arrow { font-weight: 700; font-size: .9rem; color: var(--accent-strong); }
.link-arrow:hover { color: var(--brand); }

.map-wrap { padding: 0; }
.map-wrap iframe { width: 100%; height: 380px; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); filter: saturate(.9); }
[data-theme="dark"] .map-wrap iframe { filter: invert(.92) hue-rotate(180deg) saturate(.8); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.4rem; padding-bottom: 2.6rem; }
.footer-logo { height: 56px; width: auto; margin-bottom: 1rem; }
.footer-brand p { font-size: .92rem; max-width: 30ch; }
.footer-col h4 { font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.1rem; }
.footer-col a, .footer-col p { display: block; font-size: .92rem; color: var(--muted); margin-bottom: .6rem; transition: color .25s; }
.footer-col a:hover { color: var(--brand); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.4rem 0; border-top: 1px solid var(--border); font-size: .82rem; color: var(--muted); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 24px); background: var(--surface); color: var(--text); border: 1px solid var(--border); border-left: 4px solid var(--brand); border-radius: 999px; padding: .85rem 1.6rem; font-weight: 600; font-size: .92rem; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .4s, transform .4s; z-index: 300; max-width: 92%; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

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

/* ---------- COMPONENTES ULTRAMODERNOS WEB 2 ---------- */
.badge-special {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--brand) 18%, var(--surface));
  color: #B27B00;
  border: 1px solid color-mix(in srgb, var(--brand) 40%, transparent);
}
[data-theme="dark"] .badge-special {
  color: #FFC033;
}

.gallery-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 580px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
.gallery-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
}
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.gallery-card:hover img {
  transform: scale(1.06);
}
.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 18px 14px;
  background: linear-gradient(to top, rgba(11,17,24, 0.92) 0%, rgba(11,17,24, 0.6) 70%, transparent 100%);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.gallery-caption .material-symbols-outlined {
  color: var(--brand);
  font-size: 20px;
}

.metrics-row {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
}
@media (max-width: 960px) {
  .metrics-row {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 540px) {
  .metrics-row {
    grid-template-columns: 1fr;
  }
}
.metric-box {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md);
  padding: 2rem 1.4rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.metric-box:hover {
  transform: translateY(-5px);
  border-color: var(--brand) !important;
  box-shadow: var(--shadow-lg);
}
.metric-val {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.metric-lbl {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.4;
}

.quote-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 6px solid var(--brand);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow-sm);
  margin-top: 3rem;
}
.quote-card blockquote {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
}
.quote-card cite {
  font-style: normal;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-strong);
  display: flex;
  align-items: center;
  gap: 8px;
}

.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  box-shadow: 0 8px 24px rgba(37,211,102,0.45);
  z-index: 250;
  transition: transform .25s, box-shadow .25s;
}
.wa-float:hover {
  transform: scale(1.1) rotate(6deg);
  box-shadow: 0 12px 30px rgba(37,211,102,0.6);
  color: #FFF;
}
.wa-float svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.clarification-callout {
  display: flex;
  align-items: center;
  gap: 12px;
  background: color-mix(in srgb, var(--sky) 14%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--sky) 35%, transparent);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  margin-top: 1.2rem;
  font-size: 0.92rem;
  color: var(--text);
}
.clarification-callout .material-symbols-outlined {
  color: var(--accent-strong);
  font-size: 24px;
  flex-shrink: 0;
}

/* ---------- Sección Zonas Flex ---------- */
.zonas-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: start;
}
.map-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.map-img-frame {
  position: relative;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  justify-content: center;
  align-items: center;
}
.map-img-frame img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  display: block;
  transition: transform .4s ease;
}
.map-img-frame:hover img {
  transform: scale(1.02);
}
.map-caption {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.zonas-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.zona-badge-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, border-color .25s;
}
.zona-badge-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand) 60%, var(--border));
}
.zona-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px dashed var(--border);
}
.zona-title-group {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.zona-tag {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
}
.tag-z1 { background: #E0F2FE; color: #0369A1; }
.tag-z2 { background: #FEF3C7; color: #B45309; }
.tag-z3 { background: #F1F5F9; color: #334155; }
[data-theme="dark"] .tag-z1 { background: rgba(14, 165, 233, 0.2); color: #7DD3FC; }
[data-theme="dark"] .tag-z2 { background: rgba(245, 158, 11, 0.2); color: #FCD34D; }
[data-theme="dark"] .tag-z3 { background: rgba(148, 163, 184, 0.2); color: #CBD5E1; }

.zona-grid-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.55rem;
  margin-top: 0.8rem;
}
.zona-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.zona-item .material-symbols-outlined {
  font-size: 16px;
  color: var(--brand);
}

.flex-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.flex-benefit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, border-color .25s;
}
.flex-benefit-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
}
.flex-benefit-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  margin-bottom: 1.2rem;
  color: var(--brand);
  font-size: 26px;
}

@media (max-width: 960px) {
  .zonas-layout {
    grid-template-columns: 1fr;
  }
  .map-card {
    position: static;
  }
}