/* ===== S.O.S.A · Legado Constructivo — Estilos (moderno) ===== */

:root {
  --bg: #0a0a0b;
  --bg-alt: #0f0f11;
  --surface: #141416;
  --surface-2: #1a1a1d;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --red: #e23b33;
  --red-2: #ff5a4d;
  --red-grad: linear-gradient(135deg, #ff5a4d 0%, #e11d10 100%);
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --muted-2: #71717a;
  --radius: 20px;
  --radius-sm: 14px;
  --maxw: 1180px;
  --head: "Space Grotesk", "Inter", sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  /* Tintes/vidrio y encabezado (dependen del tema) */
  --tint: rgba(255, 255, 255, 0.06);
  --tint-strong: rgba(255, 255, 255, 0.12);
  --tint-soft: rgba(255, 255, 255, 0.05);
  --header-bg: rgba(10, 10, 11, 0.72);
}

/* ===== Tema claro ===== */
:root[data-theme="light"] {
  --bg: #f6f7f9;
  --bg-alt: #eceef2;
  --surface: #ffffff;
  --surface-2: #f4f5f8;
  --line: rgba(0, 0, 0, 0.10);
  --line-strong: rgba(0, 0, 0, 0.16);
  --text: #14151a;
  --muted: #52555e;
  --muted-2: #83868f;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  --tint: rgba(0, 0, 0, 0.05);
  --tint-strong: rgba(0, 0, 0, 0.09);
  --tint-soft: rgba(0, 0, 0, 0.04);
  --header-bg: rgba(255, 255, 255, 0.82);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: 46px; /* espacio para la barra fija de crédito */
}

.container { width: min(var(--maxw), 92%); margin-inline: auto; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--head); line-height: 1.06; letter-spacing: -1.5px; font-weight: 700; }

.eyebrow {
  display: inline-block;
  font-family: var(--body);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 600;
  color: var(--red-2);
  font-size: 0.78rem;
  margin-bottom: 1rem;
}

.grad-text {
  background: var(--red-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ===== Botones ===== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--body); font-weight: 600; font-size: 1rem;
  padding: 0.95rem 1.8rem; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s;
}
.btn-primary { background: var(--red-grad); color: #fff; box-shadow: 0 10px 30px rgba(226, 59, 51, 0.4); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(226, 59, 51, 0.55); }
.btn-glass { background: var(--tint); color: var(--text); border-color: var(--line-strong); backdrop-filter: blur(8px); }
.btn-glass:hover { background: var(--tint-strong); transform: translateY(-3px); }
.btn-block { width: 100%; justify-content: center; }

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand-logo { height: 54px; width: auto; display: block; }
/* Logo sin fondo: versión oscura (texto blanco) en tema oscuro, versión clara (texto negro) en tema claro */
.logo-light-bg { display: none; }
:root[data-theme="light"] .logo-dark-bg { display: none; }
:root[data-theme="light"] .logo-light-bg { display: block; }

.nav-list { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-list a { font-size: 0.98rem; font-weight: 500; color: var(--muted); transition: color 0.2s; }
.nav-list a:hover { color: var(--text); }
.nav-cta { background: var(--red-grad); color: #fff !important; padding: 0.6rem 1.3rem; border-radius: 999px; font-weight: 600; box-shadow: 0 8px 22px rgba(226, 59, 51, 0.35); }
.nav-cta:hover { transform: translateY(-2px); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; z-index: 110; }
.nav-toggle span { width: 26px; height: 2.5px; background: var(--text); border-radius: 2px; transition: 0.3s; }

/* Botón de tema claro/oscuro */
.nav { display: flex; align-items: center; gap: 0.85rem; }
.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; cursor: pointer;
  background: var(--tint); border: 1px solid var(--line-strong);
  font-size: 1.15rem; line-height: 1;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}
.theme-toggle:hover { background: var(--tint-strong); transform: translateY(-2px); }
.theme-toggle .th-moon { display: none; }
:root[data-theme="light"] .theme-toggle .th-sun { display: none; }
:root[data-theme="light"] .theme-toggle .th-moon { display: inline; }

/* Encabezado transparente sobre el hero oscuro: contenido claro en AMBOS temas */
.site-header:not(.scrolled) .nav-list a { color: rgba(255, 255, 255, 0.82); }
.site-header:not(.scrolled) .nav-list a:hover { color: #fff; }
.site-header:not(.scrolled) .nav-toggle span { background: #fff; }
.site-header:not(.scrolled) .theme-toggle { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.25); }

/* Hero en modo OSCURO (por defecto): overlay oscuro + texto claro */
.hero { color: #f4f4f5; }
.hero .hero-slogan { color: #cfcfd6; }
.hero .hero-slogan strong { color: #fff; }
.hero .btn-glass { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.hero .btn-glass:hover { background: rgba(255, 255, 255, 0.16); }
.hero .stat-label { color: #b6b6bd; }

/* Hero en modo CLARO: overlay claro + texto oscuro (sigue el tema) */
:root[data-theme="light"] .hero-bg {
  background:
    radial-gradient(900px circle at 80% 8%, rgba(226,59,51,0.15), transparent 50%),
    linear-gradient(180deg, rgba(246,247,249,0.82) 0%, rgba(246,247,249,0.92) 55%, #f6f7f9 100%),
    url("../assets/hero.jpg") center/cover no-repeat;
}
:root[data-theme="light"] .hero { color: #14151a; }
:root[data-theme="light"] .hero .pill { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.14); color: #52555e; }
:root[data-theme="light"] .hero .hero-slogan { color: #52555e; }
:root[data-theme="light"] .hero .hero-slogan strong { color: #14151a; }
:root[data-theme="light"] .hero .btn-glass { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.16); color: #14151a; }
:root[data-theme="light"] .hero .btn-glass:hover { background: rgba(0,0,0,0.08); }
:root[data-theme="light"] .hero .stat-label { color: #83868f; }
/* Encabezado transparente sobre hero claro: contenido oscuro */
:root[data-theme="light"] .site-header:not(.scrolled) .nav-list a { color: #52555e; }
:root[data-theme="light"] .site-header:not(.scrolled) .nav-list a:hover { color: #14151a; }
:root[data-theme="light"] .site-header:not(.scrolled) .nav-toggle span { background: #14151a; }
:root[data-theme="light"] .site-header:not(.scrolled) .theme-toggle { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.14); }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 7rem 0 4rem; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(900px circle at 80% 8%, rgba(226,59,51,0.30), transparent 50%),
    linear-gradient(180deg, rgba(9,9,11,0.80) 0%, rgba(9,9,11,0.90) 55%, #0a0a0b 100%),
    url("../assets/hero.jpg") center/cover no-repeat;
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); z-index: 1; opacity: 0.5; }
.hero-glow-1 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(226,59,51,0.5), transparent 70%); top: -140px; right: -120px; }
.hero-glow-2 { width: 420px; height: 420px; background: radial-gradient(circle, rgba(255,90,77,0.28), transparent 70%); bottom: -160px; left: -120px; }
.hero-content { position: relative; z-index: 2; max-width: 860px; }

.pill {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px); padding: 0.5rem 1.1rem; border-radius: 999px;
  font-size: 0.85rem; color: #d8d8de; margin-bottom: 1.8rem;
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red-2); box-shadow: 0 0 0 0 rgba(255,90,77,0.6); animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255,90,77,0.5); } 100% { box-shadow: 0 0 0 10px rgba(255,90,77,0); } }

.hero-title { font-size: clamp(2.8rem, 7vw, 5.4rem); font-weight: 700; margin-bottom: 1.5rem; letter-spacing: -2.5px; }
.hero-slogan { font-size: clamp(1.05rem, 2.2vw, 1.4rem); color: var(--muted); margin-bottom: 2.4rem; max-width: 600px; }
.hero-slogan strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3.5rem; }

.hero-stats { display: flex; gap: 3rem; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--head); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; line-height: 1; background: var(--red-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { color: var(--muted-2); font-size: 0.9rem; margin-top: 0.5rem; }

/* ===== Marquee ===== */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-alt); padding: 1.2rem 0; }
.marquee-track { display: inline-flex; align-items: center; gap: 1.5rem; white-space: nowrap; animation: scroll 30s linear infinite; }
.marquee-track span { font-family: var(--head); font-size: 1.4rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.marquee-track .dot { color: var(--red); }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== Secciones ===== */
.section { padding: 7rem 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin: 0 auto 4rem; text-align: center; }
.section-head h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 1rem; }
.section-sub { color: var(--muted); font-size: 1.08rem; }

/* ===== Franja mantenimiento express ===== */
.express-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  flex-wrap: wrap; margin-bottom: 1.6rem;
  background: linear-gradient(120deg, rgba(226,59,51,0.18), var(--surface) 65%);
  border: 1px solid rgba(226,59,51,0.35); border-radius: var(--radius);
  padding: 1.6rem 2rem;
}
.express-info { display: flex; align-items: center; gap: 1.3rem; }
.express-icon {
  flex-shrink: 0; width: 60px; height: 60px; display: grid; place-items: center;
  font-size: 1.9rem; border-radius: 16px; background: var(--red-grad);
  box-shadow: 0 8px 24px rgba(226,59,51,0.4);
}
.express-info h3 { font-size: 1.4rem; margin-bottom: 0.25rem; letter-spacing: -0.5px; }
.express-info p { color: var(--muted); font-size: 0.96rem; max-width: 560px; }

/* ===== Servicios (lista tipo índice) ===== */
.svc-list {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--surface);
}
.svc-item {
  position: relative; display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 1.1rem; padding: 1.35rem 1.6rem;
  background: transparent; border: none;
  border-bottom: 1px solid var(--line); border-right: 1px solid var(--line);
  cursor: pointer; text-align: left; font-family: var(--body);
  transition: background 0.2s;
}
.svc-item:nth-child(2n) { border-right: none; }
.svc-item:nth-last-child(-n+2) { border-bottom: none; }
.svc-item::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--red-grad); transform: scaleY(0); transform-origin: center;
  transition: transform 0.22s ease;
}
.svc-item:hover { background: var(--tint-soft); }
.svc-item:hover::before { transform: scaleY(1); }
.svc-featured { background: linear-gradient(120deg, rgba(226,59,51,0.10), transparent 70%); }
.svc-ic {
  width: 46px; height: 46px; display: grid; place-items: center; font-size: 1.4rem;
  border-radius: 13px; background: var(--tint-soft); border: 1px solid var(--line); flex-shrink: 0;
}
.svc-name { display: block; font-family: var(--head); font-size: 1.22rem; font-weight: 600; letter-spacing: -0.4px; transition: color 0.2s; }
.svc-item:hover .svc-name { color: var(--red); }
.svc-desc { display: block; color: var(--muted); font-size: 0.9rem; margin-top: 0.15rem; }
.svc-arrow { color: var(--muted-2); font-size: 1.2rem; transition: transform 0.2s, color 0.2s; }
.svc-item:hover .svc-arrow { color: var(--red); transform: translateX(5px); }
@media (max-width: 720px) {
  .svc-list { grid-template-columns: 1fr; }
  .svc-item { border-right: none; }
  .svc-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .svc-item:last-child { border-bottom: none; }
}

/* ===== Servicios (Bento) ===== */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.bento-card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2.4rem 2rem; overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s, background 0.3s;
}
.bento-card::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius);
  pointer-events: none; /* no interceptar clics del botón "Leer más" */
  padding: 1px; background: var(--red-grad);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.3s;
}
.bento-card:hover { transform: translateY(-6px); background: var(--surface-2); }
.bento-card:hover::before { opacity: 1; }
.bento-lg { grid-column: span 2; }
.bento-accent { background: linear-gradient(150deg, rgba(226,59,51,0.16), var(--surface) 70%); border-color: rgba(226,59,51,0.3); }
.card-icon {
  width: 58px; height: 58px; display: grid; place-items: center;
  font-size: 1.7rem; border-radius: 16px; margin-bottom: 1.3rem;
  background: var(--tint-soft); border: 1px solid var(--line);
}
.bento-card h3 { font-size: 1.5rem; margin-bottom: 0.7rem; letter-spacing: -0.5px; }
.bento-card p { color: var(--muted); margin-bottom: 1.2rem; font-size: 0.98rem; }
.card-link { font-weight: 600; color: var(--red-2); font-size: 0.95rem; transition: gap 0.2s; }
.card-link:hover { color: var(--red); }

/* ===== Nosotros ===== */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3.5rem; align-items: center; }
.about-text h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.2rem; }
.about-text p { color: var(--muted); margin-bottom: 1rem; }
.values { list-style: none; margin-top: 1.6rem; display: grid; gap: 0.9rem; }
.values li { padding-left: 2rem; position: relative; color: var(--muted); }
.values li strong { color: var(--text); }
.values li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; display: grid; place-items: center;
  background: var(--red-grad); color: #fff; border-radius: 50%; font-size: 0.7rem; font-weight: 700;
}
.about-slogan-box {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 3rem 2.4rem 2.4rem;
  overflow: hidden;
}
.about-slogan-box::after { content: ""; position: absolute; top: 0; left: 0; width: 5px; height: 100%; background: var(--red-grad); }
.quote-mark { position: absolute; top: 0.4rem; right: 1.6rem; font-family: var(--head); font-size: 6rem; color: rgba(226,59,51,0.18); line-height: 1; }
.big-quote { font-family: var(--head); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; line-height: 1.25; margin-bottom: 1.2rem; letter-spacing: -1px; }
.quote-brand { color: var(--red-2); font-weight: 500; font-size: 0.9rem; }

/* ===== Proceso ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.6rem; transition: transform 0.3s, border-color 0.3s;
}
.step:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.step-num {
  font-family: var(--head); font-size: 2.6rem; font-weight: 700; line-height: 1;
  background: var(--red-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  display: block; margin-bottom: 1rem;
}
.step h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.step p { color: var(--muted); font-size: 0.94rem; }

/* ===== CTA / Contacto ===== */
.cta-section { background: var(--bg-alt); overflow: hidden; }
.cta-glow { position: absolute; width: 600px; height: 600px; border-radius: 50%; filter: blur(120px); background: radial-gradient(circle, rgba(226,59,51,0.25), transparent 70%); top: -200px; left: 50%; transform: translateX(-50%); z-index: 0; }
.cta-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.cta-info h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 1rem; }
.cta-info p { color: var(--muted); margin-bottom: 1.8rem; }
.contact-list { list-style: none; display: grid; gap: 1rem; }
.contact-list li { display: flex; align-items: center; gap: 0.9rem; font-size: 1.05rem; color: var(--muted); }
.contact-list a { color: var(--text); }
.contact-list a:hover { color: var(--red-2); }
.ci { width: 40px; height: 40px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-size: 1.1rem; }

.cta-form { background: var(--surface); border: 1px solid var(--line); padding: 2.2rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 0.45rem; color: var(--muted); letter-spacing: 0.3px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.85rem 1rem;
  background: var(--bg); border: 1px solid var(--line-strong);
  border-radius: 12px; font-family: var(--body); font-size: 1rem; color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(226,59,51,0.18); }
.field select option { background: var(--surface); }
.form-note { font-size: 0.82rem; color: var(--muted-2); margin-top: 0.9rem; text-align: center; }

/* ===== Encabezado de sección editorial (índice + título + descripción) ===== */
.sec-head {
  display: grid; grid-template-columns: auto 1fr minmax(0, 300px);
  gap: 1.6rem 2.5rem; align-items: end;
  padding-bottom: 1.5rem; margin-bottom: 3.2rem; border-bottom: 1px solid var(--line);
}
.sec-index {
  font-family: var(--head); font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 700;
  line-height: 0.72; letter-spacing: -2px; color: transparent;
  -webkit-text-stroke: 1.5px var(--red); align-self: end;
}
.sec-head-main .eyebrow { margin-bottom: 0.4rem; }
.sec-head-main h2 { font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -1.2px; }
.sec-head-desc { color: var(--muted); font-size: 0.98rem; }
@media (max-width: 820px) {
  .sec-head { grid-template-columns: 1fr; gap: 0.6rem; align-items: start; margin-bottom: 2.2rem; }
  .sec-index { font-size: 2.4rem; }
}

/* ===== Banda de garantía ===== */
.guarantee { background: linear-gradient(130deg, #e11d10 0%, #ff5a4d 100%); color: #fff; padding: 5.5rem 0; }
.guarantee-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.guarantee-lead .eyebrow { color: rgba(255, 255, 255, 0.85); }
.guarantee-lead h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); color: #fff; letter-spacing: -1.5px; margin-bottom: 1rem; }
.guarantee-lead p { color: rgba(255, 255, 255, 0.9); margin-bottom: 1.6rem; max-width: 440px; }
.btn-white { background: #fff; color: #e11d10; }
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22); }
.guarantee-badges { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.gbadge { display: flex; gap: 0.9rem; align-items: flex-start; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 16px; padding: 1.2rem; }
.gbadge-ic { font-size: 1.5rem; line-height: 1; }
.gbadge strong { display: block; font-size: 1rem; margin-bottom: 0.15rem; }
.gbadge small { color: rgba(255, 255, 255, 0.82); font-size: 0.85rem; }
@media (max-width: 820px) { .guarantee-inner { grid-template-columns: 1fr; gap: 2.2rem; } }
@media (max-width: 480px) { .guarantee-badges { grid-template-columns: 1fr; } }

/* ===== Testimonios ===== */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.8rem; display: flex; flex-direction: column; gap: 1rem; }
.review .stars { color: #ffb020; letter-spacing: 2px; font-size: 1rem; }
.review p { color: var(--text); font-size: 1.02rem; line-height: 1.55; flex: 1; }
.review footer { display: flex; flex-direction: column; gap: 0.15rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.review footer strong { font-family: var(--head); font-size: 1.05rem; }
.review footer span { color: var(--muted); font-size: 0.88rem; }
@media (max-width: 820px) { .reviews { grid-template-columns: 1fr; } }

/* ===== Footer ===== */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding-top: 4rem; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-logo { height: 58px; margin-bottom: 1.2rem; display: block; }
.footer-brand p { max-width: 320px; font-size: 0.95rem; color: var(--muted); }
.footer-col h4 { font-size: 1.05rem; margin-bottom: 1.1rem; letter-spacing: -0.3px; }
.footer-col ul { list-style: none; display: grid; gap: 0.7rem; }
.footer-col a { color: var(--muted); font-size: 0.95rem; }
.footer-col a:hover { color: var(--red-2); }
.footer-bottom { border-top: 1px solid var(--line); padding: 1.5rem 0; }
.footer-bottom p { font-size: 0.88rem; color: var(--muted-2); }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem 1.5rem; flex-wrap: wrap; }
.footer-credit strong { color: var(--red-2); font-weight: 600; }

/* ===== Barra fija de crédito (Nexus Q Tech) ===== */
.nexus-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  background: var(--header-bg); backdrop-filter: blur(10px) saturate(150%);
  border-top: 1px solid var(--line);
}
.nexus-bar-inner { display: flex; align-items: center; justify-content: flex-end; height: 46px; }
.nexus-credit { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: #f2903f; transition: opacity 0.2s; }
.nexus-credit .nexus-logo { height: 20px; width: auto; display: block; }
.nexus-credit strong { color: #ff7a1a; font-weight: 700; }
.nexus-credit:hover { opacity: 0.8; }

/* ===== WhatsApp flotante ===== */
.whats-float {
  position: fixed; bottom: 62px; right: 24px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5); transition: transform 0.2s;
}
.whats-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; box-shadow: 0 0 0 0 rgba(37,211,102,0.5); animation: ping 2s infinite; }
.whats-float:hover { transform: scale(1.1); }

/* ===== Modal de servicio ===== */
.card-link {
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: var(--body); display: inline-flex; align-items: center; gap: 0.4rem;
}
.card-link.js-more:hover { gap: 0.7rem; }

.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1.5rem; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(6px); animation: fade 0.25s ease; }
.modal-card {
  position: relative; z-index: 2; width: min(560px, 100%);
  max-height: 88vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius); padding: 2.5rem 2.2rem 2.2rem;
  box-shadow: var(--shadow); animation: pop 0.3s cubic-bezier(.2,.8,.2,1);
}
.modal-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  border-radius: var(--radius) var(--radius) 0 0; background: var(--red-grad);
}
.modal-close {
  position: absolute; top: 1rem; right: 1.1rem;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--tint); border: 1px solid var(--line);
  color: var(--text); font-size: 1.5rem; line-height: 1; cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.modal-close:hover { background: var(--tint-strong); transform: rotate(90deg); }
.modal-icon {
  width: 62px; height: 62px; display: grid; place-items: center; font-size: 1.9rem;
  border-radius: 16px; background: var(--tint-soft); border: 1px solid var(--line);
  margin-bottom: 1.2rem;
}
.modal-card h3 { font-size: 1.9rem; margin-bottom: 0.7rem; letter-spacing: -0.8px; }
.modal-desc, #modalDesc { color: var(--muted); margin-bottom: 1.5rem; }
.modal-sub { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 2px; color: var(--red-2); margin-bottom: 0.9rem; }
.modal-list { list-style: none; display: grid; gap: 0.7rem; margin-bottom: 1.8rem; }
.modal-list li { position: relative; padding-left: 1.9rem; color: var(--text); font-size: 0.97rem; }
.modal-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; display: grid; place-items: center;
  background: var(--red-grad); color: #fff; border-radius: 50%; font-size: 0.65rem; font-weight: 700;
}
.modal-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.modal-actions .btn { flex: 1; justify-content: center; white-space: nowrap; }
body.modal-open { overflow: hidden; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ===== Reveal on scroll ===== */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1); }
[data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .marquee-track, .pill-dot, .whats-float::after { animation: none; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-lg { grid-column: span 2; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about, .cta-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-list {
    position: fixed; inset: 78px 0 auto 0;
    flex-direction: column; gap: 0; background: var(--header-bg);
    backdrop-filter: blur(16px) saturate(150%); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height 0.35s ease;
  }
  .nav-list.open { max-height: 360px; padding: 0.5rem 0 1rem; }
  /* En el desplegable móvil los enlaces usan el color del tema (fondo propio) */
  .site-header:not(.scrolled) .nav-list a { color: var(--text); }
  .nav-list li { width: 100%; text-align: center; }
  .nav-list li a { display: block; padding: 1rem; }
  .bento, .steps { grid-template-columns: 1fr; }
  .bento-lg { grid-column: span 1; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-stats { gap: 1.8rem; }
  .section { padding: 4.5rem 0; }
}
