:root {
  --primary: #facc15;
  --primary-hover: #eab308;
  --bg-color: #f8fafc;
  /* section-soft */
  --surface: #ffffff;
  /* section-light */
  --text-main: #0f172a;
  --text-muted: #64748b;
  --success: #10b981;
  --info: #3b82f6;
  --warning: #f97316;
  --danger: #ef4444;
  --radius: 12px;
  --shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 10px 15px -3px rgba(250, 204, 21, 0.2);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", system-ui, sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}

/* --- Layout & Backgrounds --- */
section {
  padding: 100px 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-light {
  background-color: #ffffff;
}

.section-soft {
  background-color: #f8fafc;
}

.section-dark {
  background-color: #0f172a;
  color: #ffffff;
}

.section-dark .text-muted {
  color: #94a3b8;
}

.text-center {
  text-align: center;
}

.mb-1 {
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mb-3 {
  margin-bottom: 3rem;
}

.mt-2 {
  margin-top: 1.5rem;
}

.text-muted {
  color: var(--text-muted);
}

.max-w-600 {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary);
  color: #0f172a;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--surface);
  color: var(--text-main);
  border: 1px solid #cbd5e1;
}

.btn-secondary:hover {
  background-color: #f1f5f9;
}

/* --- Header --- */
header {
  background-color: var(--surface);
  box-shadow: var(--shadow);
  padding: 16px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #e2e8f0;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 80px;
  width: auto;
  display: block;
}

/* --- Hero General --- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 120px 20px 80px;
  overflow: hidden;
  /* Overlay usando tu --text-main (#0F172A) al 85% y 75% de opacidad + tu imagen */
  background: url("https://www.bananabyte.click/wp-content/uploads/2026/08/banana-bytes.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 24px;
  max-width: 800px;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-main);
  max-width: 600px;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Hero Layout & Video Mockup Effects --- */
.hero-image-wrapper {
  position: relative;
  max-width: 800px;
  /* Controla qué tan grande se ve el video */
  margin-left: auto;
  margin-right: auto;
  z-index: 1;
}

/* Brillo amarillo suave que resalta la interfaz */
.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90%;
  height: 80%;
  background: var(--primary);
  filter: blur(120px);
  opacity: 0.25;
  transform: translate(-50%, -50%);
  z-index: -1;
}

/* Estilo del video con aspecto de aplicación premium */
.hero-mockup {
  width: 100%;
  display: block;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background-color: var(--surface);
  /* Fondo por si tarda en cargar */
  box-shadow:
    0 25px 50px -12px rgba(15, 23, 42, 0.25),
    0 0 0 1px rgba(15, 23, 42, 0.05);
  transform: rotateX(4deg) translateY(0);
  transition:
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.6s ease;
}

/* Ajuste responsive para móviles */
@media (max-width: 768px) {
  .hero {
    padding: 100px 20px 60px;
  }

  .hero-image-wrapper {
    margin-top: 40px;
  }

  .hero-mockup {
    transform: rotateX(0deg);
    /* Desactiva el 3D en pantallas pequeñas */
    border-radius: 8px;
  }
}

/* --- Problem/Solution Cards --- */
.comparison-box {
  background: var(--danger);
  color: white;
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.solution-box {
  background: var(--success);
  color: white;
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* --- Animated Flow --- */
.flow-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-top: 40px;
}

.flow-step {
  background: var(--surface);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  flex: 1;
  border: 2px solid transparent;
  transition: var(--transition);
  width: 100%;
}

.flow-step:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.flow-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
  display: block;
}

.flow-arrow {
  font-size: 24px;
  color: var(--primary);
  font-weight: bold;
  animation: pulseArrowY 1s infinite alternate ease-in-out;
}

@media (min-width: 900px) {
  .flow-wrapper {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .flow-arrow {
    animation: pulseArrowX 1s infinite alternate ease-in-out;
    transform: rotate(0deg);
  }
}

@keyframes pulseArrowX {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(8px);
  }
}

@keyframes pulseArrowY {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(8px);
  }
}

/* --- Tabs Roles --- */
.tabs-header {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.tab-btn {
  background: #f1f5f9;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
  border: 2px solid transparent;
}

.tab-btn:hover {
  border-color: var(--primary-hover);
}

.tab-btn.active {
  background: var(--primary);
  color: #0f172a;
}

.tab-content {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
  text-align: center;
  padding: 60px 40px;
  background: #f1f5f9;
  border-radius: var(--radius);
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Conoce Banana Byte (Cards) --- */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.module-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
}

.module-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}

.module-img-wrapper {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #e2e8f0;
  position: relative;
}

.module-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.module-card:hover .module-img-wrapper img {
  transform: scale(1.08);
}

.module-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.module-btn {
  margin-top: auto;
  padding-top: 16px;
  font-weight: 600;
  color: var(--info);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.module-card:hover .module-btn {
  color: var(--primary-hover);
}

/* --- Modal Galería --- */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: var(--surface);
  border-radius: var(--radius);
  max-width: 900px;
  width: 100%;
  overflow: hidden;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal.show .modal-content {
  transform: scale(1);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-modal {
  font-size: 28px;
  font-weight: bold;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.close-modal:hover {
  color: var(--danger);
}

.modal-body {
  padding: 24px;
}

.modal-img {
  width: 100%;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px #e2e8f0;
}

/* --- Beneficios --- */
.benefit-card {
  background: var(--surface);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid #e2e8f0;
  text-align: left;
  transition: var(--transition);
}

.benefit-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

/* --- Inversión --- */
#inversion {
  position: relative;
  overflow: hidden;
  /* Evita que aparezca una barra de scroll si las imágenes son muy grandes */
}

.pricing-card {
  background-color: var(--surface);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%; /* Iguala la altura de todas las tarjetas */
}

.basic-card {
  border: 1px solid #e2e8f0;
}

.featured-card {
  border: 2px solid var(--primary);
  position: relative;
}

.price-regular {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 1.2rem;
}

.price-final {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 10px 0;
}

.price-details {
  display: flex;
  justify-content: space-between;
  background: var(--bg-color);
  padding: 16px;
  border-radius: var(--radius);
  margin: 24px 0;
  border: 1px solid #e2e8f0;
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* --- Add-ons --- */
.addons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.addon-item {
  background: var(--surface);
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: var(--text-main);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.addon-item:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.addon-icon {
  color: var(--primary-hover);
  font-size: 1.2rem;
  line-height: 1;
}

.addons-note {
  background-color: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius);
  padding: 16px;
  max-width: 800px;
  margin: 0 auto;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- FAQ --- */
.faq-item {
  background: var(--surface);
  margin-bottom: 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  height: max-content;
}

.faq-question {
  padding: 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease-out;
  color: var(--text-muted);
}

.faq-item.active .faq-answer {
  padding: 0 20px 20px 20px;
  max-height: 200px;
}

.faq-item.active .faq-question {
  color: var(--primary-hover);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: start; /* Evita que las tarjetas se estiren de forma desigual al abrirse una */
}

/* En pantallas más grandes (tablets y monitores), se divide en 2 columnas */
@media (min-width: 768px) {
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}
/* --- CTA Final & Decoraciones --- */
#cta-final {
  position: relative;
  overflow: hidden;
  /* Evita que aparezca una barra de scroll si las imágenes son muy grandes */
}

/* Asegura que el contenido y los botones estén por encima de las imágenes flotantes */
.cta-content {
  position: relative;
  z-index: 2;
}

/* Estilos base para las imágenes decorativas */
.cta-decoration {
  position: absolute;
  top: 50%;
  width: 180px;
  /* Tamaño del icono, ajústalo según necesites */
  opacity: 0.15;
  /* Lo hacemos sutil como marca de agua para no competir con el texto */
  z-index: 1;
  pointer-events: none;
  /* Evita que el usuario haga click en las imágenes por error */
  animation: floatDecor 6s ease-in-out infinite;
  /* Animación de flotación */
}

/* Posición del icono izquierdo */
.cta-decor-left {
  left: -20px;
  /* Lo pegamos al borde izquierdo */
  transform: translateY(-50%) rotate(-15deg);
  /* Centrado vertical y leve rotación */
}

/* Posición del icono derecho */
.cta-decor-right {
  right: -20px;
  /* Lo pegamos al borde derecho */
  transform: translateY(-50%) rotate(15deg);
  animation-delay: -3s;
  /* Hacemos que flote asincrónico respecto al izquierdo */
}

/* Keyframes para el efecto flotante */
@keyframes floatDecor {
  0%,
  100% {
    margin-top: 0;
  }

  50% {
    margin-top: -25px;
    /* Sube ligeramente */
  }
}

/* Control responsive: En móviles es mejor ocultarlos u opacarlos mucho para que no estorben la lectura */
@media (max-width: 900px) {
  .cta-decoration {
    opacity: 0.05;
    /* Casi invisible en tablets/móviles pequeños */
    width: 120px;
    /* Más pequeños */
  }
}

@media (max-width: 600px) {
  .cta-decoration {
    display: none;
    /* Se ocultan en celulares para dar prioridad total a los botones */
  }
}

/* --- Footer --- */
footer {
  padding: 40px 20px;
  background: var(--primary);
  border-top: 1px solid #e2e8f0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-content {
  text-align: center;
  /* Esto permite que el texto ocupe el espacio central disponible */
  flex: 1;
}

.footer-logo img {
  height: 80px; /* Controla la altura de los logos */
  width: auto;
  display: block;
  opacity: 0.85;
  transition: var(--transition);
}

.footer-logo img:hover {
  opacity: 1;
}

/* Ajuste responsive: En móviles apilamos los elementos uno debajo del otro */
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    gap: 32px;
  }

  /* Opcional: Reordenar en móvil para que los logos queden juntos arriba o abajo */
  .footer-logo {
    order: 2; /* Movemos los logos abajo en celulares */
  }
  .footer-content {
    order: 1; /* Mantenemos el texto arriba en celulares */
  }
}

/* --- Estilos del Menú de Navegación (Centro) --- */
.nav-links {
  display: flex;
  list-style: none;
  gap: 32px; /* Espacio entre cada enlace del menú */
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary-hover);
}

/* 
  Ajuste Responsive Básico: 
  Oculta el menú en pantallas pequeñas para evitar que el header colapse 
  y se superponga con el logo o el botón.
*/
@media (max-width: 900px) {
  nav {
    display: none;
  }
}

@media (min-width: 900px) {
  .featured-card {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: var(--shadow-hover);
  }
}
