/* =========================================
           VARIABLES Y RESET
        ========================================= */
:root {
  /* Paleta de Colores Alcance */
  --c-dark: #0b132b;
  --c-main: #1c2541;
  --c-light: #3a506b;
  --c-cyan: #00b4d8;
  --c-cyan-light: #e0fbfc;
  --c-white: #ffffff;
  --c-accent: #ff7e67;
  --c-accent-hover: #ff654a;
  --c-gray-bg: #f4f6f9;
  --c-gray-text: #555555;

  /* Tipografía */
  --font-title: "Montserrat", sans-serif;
  --font-body: "Open Sans", sans-serif;

  /* Utilidades */
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 40px rgba(11, 19, 43, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--c-main);
  background-color: var(--c-gray-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-title);
  font-weight: 800;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================
           NAVEGACIÓN (STICKY)
        ========================================= */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(11, 19, 43, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  transition: var(--transition);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header.scrolled {
  padding: 10px 0;
  background: rgba(11, 19, 43, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  color: var(--c-white);
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.logo span {
  color: var(--c-cyan);
}

.logo-img {
  max-height: 50px;
  width: auto;
  display: block;
  transition: var(--transition);
}

.logo-img:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--c-white);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  opacity: 0.8;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
  color: var(--c-cyan);
}

.btn-nav {
  background: var(--c-accent);
  color: var(--c-white) !important;
  padding: 10px 24px;
  border-radius: 30px;
  opacity: 1 !important;
  box-shadow: 0 4px 15px rgba(255, 126, 103, 0.4);
}

.btn-nav:hover {
  background: var(--c-accent-hover);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  color: var(--c-white);
  font-size: 1.8rem;
  cursor: pointer;
}

/* =========================================
           CTA FLOTANTE
        ========================================= */
.floating-cta {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--c-accent);
  color: var(--c-white);
  padding: 15px 25px;
  border-radius: 50px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 10px 25px rgba(255, 126, 103, 0.5);
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  border: 2px solid transparent;
}

.floating-cta:hover {
  transform: translateY(-5px) scale(1.05);
  /* Cambiamos el fondo al azul oscuro corporativo al hacer hover */
  background: var(--c-main);
  color: var(--c-white);
  border-color: var(--c-main);
  box-shadow: 0 10px 25px rgba(28, 37, 65, 0.6);
}

/* =========================================
           HERO SECTION
        ========================================= */
.hero {
  min-height: 100vh;
  background: linear-gradient(145deg, var(--c-dark) 0%, var(--c-main) 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 90px;
  padding-bottom: 100px;
}

/* Formas geométricas de fondo */
.hero::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -5%;
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(0, 180, 216, 0.15) 0%,
    transparent 60%
  );
  border-radius: 50%;
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(58, 80, 107, 0.4) 0%,
    transparent 60%
  );
  border-radius: 50%;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.hero-badge {
  display: inline-block;
  background: rgba(0, 180, 216, 0.1);
  color: var(--c-cyan);
  padding: 8px 16px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 20px;
  border: 1px solid rgba(0, 180, 216, 0.3);
  letter-spacing: 1px;
}

.hero h1 {
  color: var(--c-white);
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero h1 span {
  color: var(--c-cyan);
  display: block;
}

.hero p {
  color: var(--c-cyan-light);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 40px;
  opacity: 0.9;
}

/* Progresión Visual en el Hero */
.hero-tiers {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.tier-pill {
  color: var(--c-white);
  font-size: 0.85rem;
  font-weight: 800;
  font-family: var(--font-title);
  opacity: 0.6;
  display: flex;
  align-items: center;
  gap: 15px;
}

.tier-pill:not(:last-child)::after {
  content: "→";
  color: var(--c-cyan);
  opacity: 0.5;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn {
  padding: 16px 36px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.95rem;
  font-family: var(--font-title);
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-primary {
  background: var(--c-accent);
  color: var(--c-white);
  box-shadow: 0 10px 30px rgba(255, 126, 103, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(255, 126, 103, 0.6);
}

.btn-outline {
  background: transparent;
  color: var(--c-white);
  border: 2px solid var(--c-cyan);
}

.btn-outline:hover {
  background: var(--c-cyan);
  color: var(--c-dark);
}

/* =========================================
           SELECTOR INTERACTIVO DE PLANES
        ========================================= */
.planes-section {
  padding: 120px 0;
  background: var(--c-white);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 3rem;
  color: var(--c-dark);
  line-height: 1.2;
}

.section-header h2 span {
  color: var(--c-cyan);
}

/* Tabs de Navegación */
.plan-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
  background: var(--c-gray-bg);
  padding: 10px;
  border-radius: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.tab-btn {
  padding: 14px 28px;
  border-radius: 40px;
  border: none;
  background: transparent;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--c-light);
  cursor: pointer;
  /* Reducimos el tiempo de transición para que se sienta más responsivo */
  transition: all 0.15s ease-in-out;
  text-transform: uppercase;
}

.tab-btn:hover {
  /* Usamos el color celeste para el hover normal */
  color: var(--c-main);
  background: rgba(
    0,
    180,
    216,
    0.05
  ); /* Leve fondo para indicar interactividad */
}

.tab-btn:focus {
  outline: none; /* Quita el borde por defecto del navegador al hacer clic */
}

.tab-btn.active {
  /* Estado activo: Fondo azul oscuro corporativo, texto blanco */
  background: var(--c-dark) !important;
  color: var(--c-white) !important;
  box-shadow: var(--shadow-md);
}

.tab-btn.active:hover {
  /* Si ya está activo, no cambiamos el color al pasar el mouse encima */
  color: var(--c-white) !important;
  background: var(--c-main) !important;
}

/* Contenedor del Plan Activo */
.plan-content-wrapper {
  position: relative;
  min-height: 600px;
}

.plan-pane {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.plan-pane.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Tarjeta del Plan */
.plan-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--c-white);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Mitad Izquierda: Info Comercial */
.plan-details {
  padding: 60px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--c-white) 0%, var(--c-gray-bg) 100%);
}

.plan-badge {
  display: inline-block;
  background: var(--c-cyan-light);
  color: var(--c-cyan);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  align-self: flex-start;
  margin-bottom: 20px;
}

.plan-title {
  font-size: 3rem;
  color: var(--c-dark);
  line-height: 1;
  margin-bottom: 5px;
}

.plan-subtitle {
  font-size: 1.2rem;
  color: var(--c-light);
  margin-bottom: 30px;
  font-weight: 600;
}

/* Bloque "Ideal Para" basado en BM */
.plan-ideal {
  background: rgba(0, 180, 216, 0.05);
  border-left: 4px solid var(--c-cyan);
  padding: 20px;
  border-radius: 0 10px 10px 0;
  margin-bottom: 30px;
}

.plan-ideal strong {
  display: block;
  font-family: var(--font-title);
  color: var(--c-dark);
  margin-bottom: 5px;
  font-size: 0.9rem;
}

.plan-ideal p {
  font-size: 0.95rem;
  color: var(--c-gray-text);
  line-height: 1.5;
}

.plan-price-block {
  margin-bottom: 40px;
}

.plan-price {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--c-dark);
  line-height: 1;
  font-family: var(--font-title);
}

.plan-legal {
  font-size: 0.8rem;
  color: var(--c-light);
  margin-top: 5px;
}

/* Mitad Derecha: Visual y Features */
.plan-visuals {
  background: linear-gradient(135deg, var(--c-main) 0%, var(--c-dark) 100%);
  padding: 60px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Mockup de Navegador CSS */
.browser-mockup {
  background: var(--c-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  margin-bottom: 40px;
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: var(--transition);
}

.plan-visuals:hover .browser-mockup {
  transform: perspective(1000px) rotateY(0) rotateX(0);
}

.browser-header {
  background: #e5e7eb;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.r {
  background: #ff5f56;
}

.dot.y {
  background: #ffbd2e;
}

.dot.g {
  background: #27c93f;
}

.browser-url {
  background: var(--c-white);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 0.7rem;
  color: var(--c-light);
  flex-grow: 1;
  text-align: center;
  margin-left: 10px;
  font-family: monospace;
}

.browser-body {
  max-height: 250px;
  background: linear-gradient(
    135deg,
    var(--c-cyan-light) 0%,
    var(--c-white) 100%
  );
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

/* Elementos abstractos dentro del mockup */
.mockup-hero {
  height: 40%;
  background: var(--c-cyan);
  border-radius: 6px;
  margin-bottom: 15px;
  opacity: 0.8;
}

.mockup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  height: 30%;
}

.mockup-box {
  background: var(--c-light);
  border-radius: 4px;
  opacity: 0.2;
}

/* Lista de características (Features) */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: auto;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--c-white);
  font-size: 0.9rem;
  font-weight: 600;
}

.feature-icon {
  width: 32px;
  height: 32px;
  background: rgba(0, 180, 216, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-cyan);
}

.feature-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* =========================================
           ¿CUÁL ES PARA MÍ? (INTERACTIVO)
        ========================================= */
.needs-section {
  padding: 100px 0;
  background: var(--c-dark);
  color: var(--c-white);
}

.needs-section .section-header h2 {
  color: var(--c-white);
}

.needs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.need-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 20px;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.need-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--c-cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.need-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

.need-card:hover::before {
  transform: scaleX(1);
}

.need-card h3 {
  color: var(--c-cyan);
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.need-list li {
  margin-bottom: 12px;
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  opacity: 0.9;
}

.need-list li svg {
  width: 18px;
  height: 18px;
  fill: var(--c-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

/* =========================================
           BENEFICIOS
        ========================================= */
.benefits-section {
  padding: 100px 0;
  background: var(--c-gray-bg);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.benefit-card {
  background: var(--c-white);
  padding: 40px 30px;
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
  border-bottom: 4px solid transparent;
}

.benefit-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--c-cyan);
}

.b-icon {
  width: 70px;
  height: 70px;
  background: var(--c-cyan-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--c-cyan);
}

.b-icon svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.benefit-card h3 {
  color: var(--c-dark);
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.benefit-card p {
  color: var(--c-gray-text);
  font-size: 0.95rem;
}

/* =========================================
           TABLA COMPARATIVA
        ========================================= */
.table-section {
  padding: 100px 0;
  background: var(--c-white);
}

.table-container {
  overflow-x: auto;
  background: var(--c-white);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

th,
td {
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
}

th {
  background: var(--c-gray-bg);
  font-family: var(--font-title);
  font-size: 1.1rem;
  color: var(--c-dark);
  position: sticky;
  top: 0;
}

th small {
  display: block;
  color: var(--c-cyan);
  font-size: 0.85rem;
}

td:first-child,
th:first-child {
  text-align: left;
  font-weight: 700;
  color: var(--c-main);
  position: sticky;
  left: 0;
  background: var(--c-white);
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.02);
}

th:first-child {
  background: var(--c-gray-bg);
}

.price-row {
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--c-accent);
  background: rgba(0, 180, 216, 0.02);
}

.check {
  color: var(--c-cyan);
  font-weight: bold;
}

.cross {
  color: #ccc;
}

/* =========================================
           TÉRMINOS Y CONTACTO
        ========================================= */
.footer-wrap {
  background: var(--c-dark);
  color: var(--c-white);
  padding: 80px 0 0 0;
  position: relative;
  overflow: hidden;
}

.terms-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 80px;
}

.terms-box h3 {
  margin-bottom: 20px;
  color: var(--c-cyan);
}

.terms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
}

.terms-grid li {
  font-size: 0.85rem;
  opacity: 0.8;
  display: flex;
  gap: 10px;
}

.terms-grid li::before {
  content: "•";
  color: var(--c-accent);
}

.contact-cta {
  text-align: center;
  padding-bottom: 80px;
}

.contact-cta h2 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.1;
}

.contact-cta h2 span {
  color: var(--c-cyan);
}

.contact-methods {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin: 40px 0;
}

.c-method {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.05);
  padding: 15px 25px;
  border-radius: 50px;
  transition: var(--transition);
}

.c-method:hover {
  background: var(--c-cyan);
  color: var(--c-dark);
  transform: translateY(-3px);
}

.c-method svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.c-method span {
  font-weight: 600;
  font-family: var(--font-title);
}

.copyright {
  text-align: center;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  opacity: 0.5;
}

/* =========================================
           RESPONSIVE
        ========================================= */
@media (max-width: 1024px) {
  .plan-card {
    grid-template-columns: 1fr;
  }

  .plan-visuals {
    padding: 40px;
  }

  .hero h1 {
    font-size: 3.5rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--c-dark);
    flex-direction: column;
    justify-content: center;
    transition: var(--transition);
  }

  .nav-links.active {
    left: 0;
  }

  .menu-toggle {
    display: block;
  }

  .btn-nav {
    margin-top: 20px;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero-buttons {
    flex-direction: column;
    padding: 0 20px;
  }

  .tab-btn {
    padding: 10px 20px;
    font-size: 0.85rem;
    width: 45%;
    flex-grow: 1;
    text-align: center;
  }

  .plan-details {
    padding: 30px 20px;
  }

  .plan-title {
    font-size: 2.5rem;
  }

  .plan-price {
    font-size: 2.8rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .contact-cta h2 {
    font-size: 2.5rem;
  }

  .floating-cta {
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-tiers {
    display: none;
  }

  /* Ocultar progresión visual en móvil muy pequeño */
  .plan-tabs {
    flex-direction: column;
  }

  .tab-btn {
    width: 100%;
  }
}

/* Utilidades de animación scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
