/* ================================================================
   BENERGY LANDING — Design System (Isoflow style)
   Colores oficiales (extraídos del brochure):
     - Rojo Benergy:   #E30613
     - Negro:          #000000 / #1a1a1a
     - Blanco:         #FFFFFF
   Tipografía:
     - Inter (sans-serif) — bold gigante para títulos
     - JetBrains Mono — monospace para línea superior tipo typewriter
   ================================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --benergy-red: #E30613;
  --benergy-red-dark: #b8050f;
  --benergy-red-light: rgba(227, 6, 19, 0.08);
  --black: #1a1a1a;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --container-max: 1280px;
  --transition: all 0.25s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
}

/* ================================================================
   NAVBAR — tema oscuro
   ================================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 18, 18, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 10px 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.navbar-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.navbar-logo .logo-img {
  height: 30px;
  width: auto;
  display: block;
}

/* Footer logo */
.footer .navbar-logo .logo-img {
  height: 36px;
}

.navbar-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

.navbar-nosotros {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  padding: 6px 4px;
  margin-right: 16px;
  transition: color 0.2s;
}
.navbar-nosotros:hover { color: #fff; }

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  font-size: 22px;
  color: rgba(255, 255, 255, 0.8);
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 22px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--benergy-red);
  color: var(--white);
  border-color: var(--benergy-red);
}

.btn-primary:hover {
  background: var(--benergy-red-dark);
  border-color: var(--benergy-red-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 15px;
}

.btn-block { width: 100%; }

/* ================================================================
   HERO — tema oscuro
   Paleta: negro (#1a1a1a) · rojo (#E30613) · blanco
   ================================================================ */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 70% 80% at 78% 45%, rgba(227, 6, 19, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 55% 60% at 15% 70%, rgba(160, 0, 0, 0.10) 0%, transparent 50%),
    radial-gradient(ellipse 90% 50% at 50% 110%, rgba(80, 0, 0, 0.14) 0%, transparent 55%),
    #0a0a0a;
  padding-top: 40px;
  padding-bottom: 80px;
  overflow: hidden;
}

/* Puntitos finos dispersos */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.28) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: 0 0;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 90% 85% at 65% 45%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 85% at 65% 45%, black 20%, transparent 80%);
}

/* Sin línea vertical de acento */
.hero::after { display: none; }

.hero .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* ────────────────────────────────────────────────────────────
   SLIDE SPLIT (texto izquierda + video mockup derecha)
   ──────────────────────────────────────────────────────────── */
.slide-split {
  display: grid !important;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
  text-align: left !important;
  padding: 20px 0;
}

.slide-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.slide-split .hero-title-line1 {
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  text-align: left;
}

.slide-split .hero-title-line2 {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  letter-spacing: -2.5px;
  text-align: left;
  margin-bottom: 28px;
}

.slide-split .hero-desc {
  text-align: left;
  margin: 0 0 36px 0;
  font-size: 1.075rem;
}

.slide-split .hero-ctas {
  justify-content: flex-start;
}

@media (max-width: 1024px) {
  .slide-split {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center !important;
  }
  .slide-text {
    align-items: center;
    text-align: center;
  }
  .slide-split .hero-title-line1,
  .slide-split .hero-title-line2,
  .slide-split .hero-desc {
    text-align: center;
  }
  .slide-split .hero-ctas { justify-content: center; }
  .screen-frame-wrap { transform: rotateY(-3deg) rotateX(1deg) translateZ(0); }
  .screen-frame-wrap:hover { transform: rotateY(-1deg) rotateX(0.5deg) translateZ(0); }
}

/* Título: línea 1 monospace, línea 2 bold gigante */
.hero-title-line1 {
  display: block;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -1px;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 8px;
  line-height: 1.2;
}

.hero-title-line2 {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 900;
  letter-spacing: -3px;
  line-height: 1;
  color: #ffffff;
  margin-bottom: 36px;
}

.hero-title-line2 .accent {
  color: var(--benergy-red);
}

.hero-desc {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto 44px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ================================================================
   QUIÉNES SOMOS — Layout dos columnas
   ================================================================ */
.qs-section {
  background-color: var(--gray-50);
  background-image: radial-gradient(circle, rgba(0,0,0,0.25) 1px, transparent 1px);
  background-size: 28px 28px;
  padding: 96px 0;
}

.qs-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}

/* Columna izquierda */
.qs-left {
  position: sticky;
  top: 100px;
}

.qs-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--benergy-red);
  margin-bottom: 16px;
}

.qs-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.1;
  color: var(--black);
  margin: 0 0 24px;
}

.qs-title .qs-accent {
  color: var(--benergy-red);
}

.qs-line {
  width: 48px;
  height: 4px;
  background: var(--benergy-red);
  border-radius: 2px;
}

/* Columna derecha */
.qs-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.qs-lead {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.65;
  color: var(--gray-900);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-200);
  margin: 0;
}

.qs-lead strong {
  color: var(--benergy-red);
}

.qs-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--gray-600);
  margin: 0;
}

@media (max-width: 960px) {
  .navbar .container { gap: 16px; }
  .navbar-toggle { display: inline-flex; }
  .qs-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .qs-left { position: static; }
  .qs-section { padding: 64px 0; }
}

@media (max-width: 600px) {
  .hero { padding: 60px 0 80px; min-height: auto; }
  .container { padding: 0 20px; }
  .qs-section { padding: 48px 0; }
  .qs-title { font-size: 2rem; }
  .screen-frame-wrap,
  .screen-frame-wrap:hover { transform: none; }
  .modal-card { padding: 28px 24px; }
  .hero-ctas .btn { width: 100%; }
  .hero-ctas { flex-direction: column; max-width: 320px; margin: 0 auto; }
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: var(--black);
  color: var(--gray-400);
  padding: 40px 0 24px;
}

/* Fila única: logo — socials — contacto */
.footer-slim {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.footer-socials {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 14px;
  transition: background 0.2s, color 0.2s;
}

.footer-socials a:hover {
  background: var(--benergy-red);
  color: var(--white);
}

.footer-contact-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
}

.footer-contact-label {
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
}

.footer-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-500);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-wa i { color: var(--white); font-size: 17px; }
.footer-wa:hover { color: var(--gray-300); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--gray-500);
  font-size: 13px;
}

@media (max-width: 600px) {
  .footer-slim { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-contact-block { text-align: left; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ================================================================
   MODAL INSCRIPCIÓN
   ================================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-overlay.activo { display: flex; }

.modal-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--gray-100);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  color: var(--gray-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--gray-200);
  color: var(--benergy-red);
}

.modal-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 8px;
}

.modal-card .modal-subtitle {
  color: var(--gray-600);
  margin-bottom: 24px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.banco-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 12px;
  position: relative;
}

.banco-card .banco-name {
  font-weight: 800;
  color: var(--black);
  font-size: 1rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.banco-card .banco-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.banco-card .banco-row .label {
  color: var(--gray-500);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.banco-card .banco-row .value {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  color: var(--black);
  font-weight: 700;
  font-size: 0.95rem;
}

.banco-card .banco-titular {
  color: var(--gray-600);
  font-size: 0.85rem;
  margin-top: 10px;
  border-top: 1px solid var(--gray-200);
  padding-top: 10px;
}

.modal-divider {
  text-align: center;
  margin: 24px 0;
  position: relative;
  color: var(--gray-500);
  font-size: 13px;
}

.modal-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gray-200);
  z-index: 0;
}

.modal-divider span {
  background: var(--white);
  padding: 0 12px;
  position: relative;
  z-index: 1;
}

.btn-whatsapp {
  background: #25D366;
  color: var(--white) !important;
  border-color: #25D366;
}

.btn-whatsapp:hover {
  background: #1DA855;
  border-color: #1DA855;
}

/* ================================================================
   WHATSAPP FLOATING BUTTON
   ================================================================ */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25D366;
  color: var(--white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
  z-index: 99;
  transition: var(--transition);
}

.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.6);
}

/* ================================================================
   SCREEN FRAME — video mockup con perspectiva 3D
   ================================================================ */
.slide-mockup {
  position: relative;
  perspective: 1400px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

/* Wrapper con borde gradiente via padding */
.screen-frame-wrap {
  flex: 0 1 100%;
  line-height: 0;
  font-size: 0;
  padding: 3px;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    rgba(227, 6, 19, 0.9) 0%,
    rgba(227, 6, 19, 0.4) 30%,
    rgba(255, 255, 255, 0.08) 60%,
    transparent 100%
  );
  transform: rotateY(-6deg) rotateX(2deg) translateZ(0);
  transform-origin: center center;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.7),
    0 10px 40px rgba(227, 6, 19, 0.18);
}

.screen-frame-wrap:hover {
  transform: rotateY(-2deg) rotateX(1deg) translateZ(0);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.75),
    0 14px 50px rgba(227, 6, 19, 0.28);
}

/* Frame inner — clipping de esquinas para el video */
.screen-frame {
  display: block;
  line-height: 0;
  font-size: 0;
  border-radius: 12px;
  overflow: hidden;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
}

.screen-frame::before { display: none; }
.screen-frame::after  { display: none; }

/* El video llena el frame sin gaps */
.screen-video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}
