/* --- VARIABLES & DESIGN SYSTEM --- */
:root {
  --bg: #f8f9fa;
  --surface: #ffffff;
  --surface-strong: #fffbf0;
  --text: #1a202c;
  --muted: #596775;
  --line: rgba(23, 32, 39, 0.12);
  --brand: #106b72;
  --brand-strong: #07464b;
  --solar: #eab308;
  --solar-hover: #ca8a04;
  --leaf: #2e7d32;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 12px 32px rgba(15, 30, 40, 0.08);
  --radius: 12px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

:root[data-theme="dark"] {
  --bg: #121417;
  --surface: #1a1d21;
  --surface-strong: #24272c;
  --text: #f3f4f6;
  --muted: #9ca3af;
  --line: rgba(255, 255, 255, 0.08); 
  --brand: #64c8d0;
  --brand-strong: #172a2c;
  --solar: #facc15;         
  --solar-hover: #eab308;
  --leaf: #4ade80;          
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.6);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --- HEADER FLOTANTE SOBRE EL VÍDEO --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 3rem;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: background-color 0.3s ease, border-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

/* Estado al hacer SCROLL (Fondo Negro) */
.site-header.scrolled {
  background-color: #0b0f14;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.85rem 3rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #ffffff;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  background: #060606;
  padding: 4px;
}

.brand strong {
  display: block;
  font-size: 1.15rem;
  line-height: 1.2;
  color: #ffffff;
}

.brand small {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.75rem;
}

.main-nav {
  display: flex;
  gap: 1.75rem;
  font-weight: 600;
}

/* Enlaces sobre el vídeo: color AMARILLO */
.main-nav a {
  color: var(--solar) !important;
  transition: var(--transition);
}

.main-nav a:hover {
  color: #ffffff !important;
}

/* Enlaces con SCROLL (fondo negro): color BLANCO */
.site-header.scrolled .main-nav a {
  color: #ffffff !important;
}

.site-header.scrolled .main-nav a:hover {
  color: var(--solar) !important;
}

.site-header .theme-toggle {
  color: var(--solar);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
}

.site-header.scrolled .theme-toggle {
  color: #ffffff;
}

/* BOTÓN HAMBURGUESA */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger-bar {
  width: 100%;
  height: 3px;
  background-color: var(--solar);
  border-radius: 2px;
  transition: var(--transition);
}

.site-header.scrolled .hamburger-bar {
  background-color: #ffffff;
}

/* --- BOTONES --- */
.button, .theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.button.primary {
  background: var(--solar);
  color: #121417;
  box-shadow: 0 4px 14px rgba(234, 179, 8, 0.3);
}

.button.primary:hover {
  background: var(--solar-hover);
  transform: translateY(-1px);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

/* --- HERO CON VÍDEO (PANTALLA COMPLETA 100vh) --- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  padding: 8rem 3rem 5rem;
  overflow: hidden;
  background-color: #0b0f14;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 15, 20, 0.88) 0%, rgba(11, 15, 20, 0.55) 60%, rgba(11, 15, 20, 0.25) 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  color: #ffffff;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--solar);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-copy {
  margin: 1.25rem 0 0;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 650px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

/* --- TRUST STRIP --- */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.trust-strip div {
  padding: 1.75rem 2rem;
  border-right: 1px solid var(--line);
}

.trust-strip div:last-child {
  border-right: none;
}

.trust-strip strong {
  display: block;
  color: var(--brand);
  font-size: 1.1rem;
  font-weight: 700;
}

.trust-strip span {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* --- SECCIONES COMUNES --- */
.section {
  padding: 5rem 3rem;
  max-width: 1280px;
  margin: 0 auto;
}

.section-heading {
  margin-bottom: 3rem;
  max-width: 750px;
}

.section-heading h2, .about-copy h2, .contact-copy h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0.5rem 0 1rem;
}

.section-heading p, .about-copy p, .contact-copy p {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0;
}

.service-grid, .promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card, .promo-card {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.service-card:hover, .promo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand);
}

.service-card.accent {
  background: var(--surface-strong);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(100, 200, 208, 0.12);
  color: var(--brand);
  font-weight: 800;
  font-size: 0.9rem;
}

.service-card h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* --- CALCULADORA --- */
.calculator-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 2rem;
}

.range-display {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 0.5rem;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--solar);
  cursor: pointer;
}

.calc-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.calc-stat {
  padding: 1.5rem;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  text-align: center;
}

.calc-stat.highlight {
  background: rgba(234, 179, 8, 0.12);
  border-color: var(--solar);
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.calc-stat strong {
  font-size: 1.35rem;
  color: var(--text);
}

.calc-stat.highlight strong {
  color: var(--brand-strong);
}

/* --- FAQ ACCORDION --- */
.faq-accordion {
  display: grid;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-arrow {
  color: var(--brand);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item[open] .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.faq-answer p { margin: 0; }

/* --- ABOUT BAND --- */
.about-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 5rem 3rem;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.check-list {
  padding: 0;
  margin: 1.5rem 0 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
}

.check-icon {
  color: var(--leaf);
  flex-shrink: 0;
}

/* --- CONTACT SECTION --- */
.contact-wrapper {
  background: var(--brand-strong);
  color: #ffffff;
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 5rem 3rem;
  max-width: 1280px;
  margin: 0 auto;
}

.contact-copy p {
  color: rgba(255, 255, 255, 0.8);
}

.contact-list {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.contact-list a, .contact-list span {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #ffffff;
  font-weight: 500;
}

.contact-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.contact-form {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 1.25rem;
  color: var(--text);
  border: 1px solid var(--line);
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
}

.rgpd-layer {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
}

/* --- FOOTER LEGAL --- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 2.5rem 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.25rem;
  font-size: 0.88rem;
}

.footer-copy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy a {
  color: var(--brand);
  font-weight: 600;
}

.footer-copy a.back-to-top {
  color: var(--muted);
}

/* --- WHATSAPP & STICKY MOBILE --- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #25d366;
  color: #ffffff;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
  z-index: 999;
}

.whatsapp-float.desktop-only { display: flex; }

.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.75rem 1rem;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
  z-index: 998;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  border-top: 1px solid var(--line);
}

.sticky-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
}

.sticky-action.call { background: var(--brand); }
.sticky-action.whatsapp { background: #25d366; }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .site-header { padding: 1rem 1.5rem; }
  .site-header.scrolled { padding: 0.75rem 1.5rem; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0b0f14;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .hero { padding: 7rem 1.5rem 3rem; }
  .about-band, .contact-section {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 4rem 1.5rem;
  }
  .section { padding: 4rem 1.5rem; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
}

@media (max-width: 768px) {
  .whatsapp-float.desktop-only { display: none; }
  .mobile-sticky-bar { display: grid; }
  body { padding-bottom: 75px; }
}