:root {
  --bg: #07111f;
  --bg-soft: #0d1b2e;
  --card: #151f2e;
  --card-2: #1c293a;
  --text: #ffffff;
  --muted: #aebbd0;
  --line: rgba(255, 255, 255, 0.14);
  --primary: #1e9bff;
  --primary-2: #18d4f2;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --radius: 22px;
}

html[data-theme="light"],
body.light,
body.light-mode {
  --bg: #f4f8fc;
  --bg-soft: #ffffff;
  --card: #ffffff;
  --card-2: #eef5fb;
  --text: #0b1220;
  --muted: #475569;
  --line: rgba(15, 23, 42, 0.13);
  --primary: #0284c7;
  --primary-2: #06b6d4;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

html[data-theme="dark"],
body.dark,
body.dark-mode {
  --bg: #07111f;
  --bg-soft: #0d1b2e;
  --card: #151f2e;
  --card-2: #1c293a;
  --text: #ffffff;
  --muted: #aebbd0;
  --line: rgba(255, 255, 255, 0.14);
  --primary: #1e9bff;
  --primary-2: #18d4f2;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-container {
  min-height: 98px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
}

.brand-logo {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 50%;
  background: #ffffff;
  padding: 4px;
}

/* NAV */

.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 800;
}

.nav-menu a {
  color: var(--text);
  opacity: 0.92;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary);
  opacity: 1;
}

/* BOTONES */

.theme-toggle,
.nav-toggle {
  border: 1px solid var(--line);
  background: var(--card-2);
  color: var(--text);
  cursor: pointer;
}

.theme-toggle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 20px;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 900;
  transition: 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border: none;
}

.btn-soft {
  background: var(--card-2);
  color: var(--text);
}

.full-btn {
  width: 100%;
}

/* HERO */

.hero-section {
  min-height: 530px;
  display: flex;
  align-items: center;
  padding: 86px 0 76px;
  background:
    radial-gradient(circle at 20% 25%, rgba(30, 155, 255, 0.18), transparent 35%),
    linear-gradient(135deg, var(--bg-soft), var(--bg));
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  align-items: center;
  gap: 80px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card-2);
  font-weight: 900;
  color: var(--text);
}

.hero-content h1 {
  margin: 22px 0 14px;
  font-size: clamp(42px, 5vw, 58px);
  line-height: 1.05;
  color: var(--text);
}

.hero-content p {
  max-width: 720px;
  color: var(--text);
  font-size: 22px;
  line-height: 1.55;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

/* CARDS */

.hero-card,
.info-card,
.cta-band,
.service-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text);
}

.hero-card {
  padding: 28px;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.card-title strong {
  font-size: 18px;
}

.card-title p {
  margin: 5px 0 0;
  color: var(--muted);
}

.icon-pill {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: #0d3565;
  border: 1px solid rgba(30, 155, 255, 0.45);
  border-radius: 14px;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.mini-card {
  padding: 20px;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
}

.mini-card strong {
  display: block;
  margin-bottom: 7px;
  font-size: 18px;
}

.mini-card span {
  color: var(--muted);
}

/* SECTIONS */

.section {
  padding: 70px 0;
}

.section-header {
  margin-bottom: 28px;
}

.section-header h2 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 44px);
  color: var(--text);
}

.section-header p {
  margin: 0;
  font-size: 18px;
  color: var(--text);
}

/* GALERÍA */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.gallery-grid img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
}

/* SERVICIOS */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  padding: 26px;
  min-height: 230px;
}

.service-card h3 {
  margin: 20px 0 10px;
  font-size: 23px;
  color: var(--text);
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

/* WHY */

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.info-card,
.cta-band {
  padding: 38px;
}

.info-card h2,
.cta-band h2 {
  margin: 0 0 14px;
  font-size: 34px;
  color: var(--text);
}

.info-card p,
.cta-band p {
  font-size: 18px;
  margin-bottom: 26px;
  color: var(--muted);
}

.checklist {
  padding: 0;
  margin: 0;
  list-style: none;
}

.checklist li {
  margin-bottom: 11px;
  font-size: 18px;
  color: var(--text);
}

.checklist i {
  color: var(--primary);
  margin-right: 8px;
}

.cta-band {
  background:
    radial-gradient(circle at right top, rgba(24, 212, 242, 0.14), transparent 42%),
    var(--card);
}

/* FOOTER */

.site-footer {
  padding: 70px 0 30px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  color: var(--text);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 70px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 900;
  color: var(--text);
}

.footer-brand img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 50%;
  background: #ffffff;
  padding: 4px;
}

.site-footer h3 {
  color: var(--text);
}

.site-footer p {
  color: var(--muted);
  font-size: 17px;
}

.social-link {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card-2);
  color: var(--text);
}

.footer-bottom {
  width: min(1180px, calc(100% - 40px));
  margin: 34px auto 0;
  padding-top: 28px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--line);
}

/* WHATSAPP */

.wa-float {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 22px;
  color: #ffffff !important;
  font-weight: 900;
  background: linear-gradient(135deg, #22c55e, #16a34a) !important;
  border-radius: 999px;
  box-shadow: 0 18px 45px rgba(22, 163, 74, 0.35);
}

.wa-float i,
.wa-float span {
  color: #ffffff !important;
}

/* ANIMACIÓN */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: 0.6s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-menu {
    position: absolute;
    top: 98px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
  }

  .nav-menu.open {
    display: flex;
  }

  .hero-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .header-container {
    min-height: 86px;
  }

  .brand-logo {
    width: 64px;
    height: 64px;
  }

  .brand {
    font-size: 18px;
  }

  .hero-section {
    padding: 52px 0;
  }

  .hero-actions,
  .cta-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .mini-grid,
  .services-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid img {
    height: 230px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .wa-float span {
    display: none;
  }
}

/* =========================================================
   FIX FINAL: ESTO FUERZA EL MODO CLARO EN HEADER Y FOOTER
   ========================================================= */

html[data-theme="light"] .site-header,
body.light .site-header,
body.light-mode .site-header {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.14) !important;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .brand,
html[data-theme="light"] .brand *,
html[data-theme="light"] .nav-menu a,
body.light .brand,
body.light .brand *,
body.light .nav-menu a,
body.light-mode .brand,
body.light-mode .brand *,
body.light-mode .nav-menu a {
  color: #0b1220 !important;
}

html[data-theme="light"] .nav-menu a:hover,
html[data-theme="light"] .nav-menu a.active,
body.light .nav-menu a:hover,
body.light .nav-menu a.active,
body.light-mode .nav-menu a:hover,
body.light-mode .nav-menu a.active {
  color: #0284c7 !important;
}

html[data-theme="light"] .theme-toggle,
html[data-theme="light"] .nav-toggle,
body.light .theme-toggle,
body.light .nav-toggle,
body.light-mode .theme-toggle,
body.light-mode .nav-toggle {
  background: #ffffff !important;
  color: #0b1220 !important;
  border-color: rgba(15, 23, 42, 0.14) !important;
}

html[data-theme="light"] .site-footer,
body.light .site-footer,
body.light-mode .site-footer {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #0b1220 !important;
  border-top: 1px solid rgba(15, 23, 42, 0.14) !important;
}

html[data-theme="light"] .site-footer *,
body.light .site-footer *,
body.light-mode .site-footer * {
  color: #0b1220 !important;
}

html[data-theme="light"] .footer-bottom,
body.light .footer-bottom,
body.light-mode .footer-bottom {
  border-top: 1px solid rgba(15, 23, 42, 0.14) !important;
  color: #475569 !important;
}

/* Modo oscuro forzado */

html[data-theme="dark"] .site-header,
body.dark .site-header,
body.dark-mode .site-header {
  background: #07111f !important;
  background-color: #07111f !important;
}

html[data-theme="dark"] .brand,
html[data-theme="dark"] .brand *,
html[data-theme="dark"] .nav-menu a,
body.dark .brand,
body.dark .brand *,
body.dark .nav-menu a,
body.dark-mode .brand,
body.dark-mode .brand *,
body.dark-mode .nav-menu a {
  color: #ffffff !important;
}

html[data-theme="dark"] .site-footer,
body.dark .site-footer,
body.dark-mode .site-footer {
  background: #07111f !important;
  background-color: #07111f !important;
}