/* ===========================================================
   RESET + SISTEMA BASE
=========================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #ffffff;
  color: #222;
  line-height: 1.6;
}

/* DARK MODE CORRECTO */
body.dark-mode {
  background: #0f0f0f;
  color: #e7e7e7;
}

/* ===========================================================
   CONTENEDOR GLOBAL
=========================================================== */
.container {
  max-width: 1250px;
  margin: auto;
  padding: 0 22px;
}

/* ===========================================================
   HEADER CORPORATIVO
=========================================================== */
.header {
  width: 100%;
  background: #ffffffee;
  backdrop-filter: blur(6px);
  border-bottom: 2px solid #eac81f;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9998;
}

body.dark-mode .header {
  background: #101010ee;
  border-bottom-color: #ffd84d;
}

.header-container {
  max-width: 1250px;
  margin: auto;
  padding: 14px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 55px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  font-weight: bold;
  color: #003f7a;
}

body.dark-mode .logo-text {
  color: #ffd84d;
}

/* HAMBURGER */
.hamburger {
  font-size: 32px;
  background: none;
  border: none;
  color: #003f7a;
  cursor: pointer;
}

body.dark-mode .hamburger {
  color: #ffd84d;
}

/* NAV MÓVIL */
.nav-menu-container {
  position: absolute;
  top: 80px;
  right: 0;
  width: 70%;
  height: 100vh;
  background: #fff;
  transform: translateX(100%);
  transition: 0.3s ease;
  box-shadow: -2px 0 15px rgba(0,0,0,0.18);
  z-index: 99999;
}

body.dark-mode .nav-menu-container {
  background: #111;
}

.nav-menu-container.active {
  transform: translateX(0);
}

.nav-menu {
  list-style: none;
  padding: 22px;
}

.nav-menu li {
  margin-bottom: 18px;
}

.nav-menu a {
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  color: #003f7a;
}

body.dark-mode .nav-menu a {
  color: #ffd84d;
}

/* NAV DESKTOP */
@media (min-width: 900px) {
  .hamburger {
    display: none;
  }

  .nav-menu-container {
    position: static;
    height: auto;
    width: auto;
    background: none;
    transform: none;
    box-shadow: none;
  }

  .nav-menu {
    display: flex;
    gap: 26px;
  }

  .nav-menu li {
    margin: 0;
  }

  .nav-menu a {
    font-size: 17px;
  }

  .nav-menu a:hover {
    color: #eac81f;
  }
}

/* OVERLAY */
.overlay {
  display: none;
}

.overlay.active {
  display: block;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 999;
}

/* ===========================================================
   HERO PROFESIONAL RECONSTRUIDO
=========================================================== */
.hero {
  margin-top: 95px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 35px;
  padding: 60px 22px;
  background: linear-gradient(45deg, #003f7a, #0056a6);
  color: white;
}

.hero-content {
  max-width: 650px;
}

.hero-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 16px;
}

.hero-btn {
  background: #eac81f;
  color: black;
  padding: 12px 26px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.2s;
}

.hero-btn:hover {
  transform: scale(1.05);
}

.hero-image img {
  width: 400px;
  border-radius: 14px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-image img {
    width: 90%;
  }
}
/* ===========================================================
   SECCIONES GENERALES
=========================================================== */

section {
  padding: 70px 22px;
  scroll-margin-top: 95px;
}

.section-title {
  font-size: 34px;
  font-weight: 700;
  text-align: center;
  color: #003f7a;
}

body.dark-mode .section-title {
  color: #ffd84d;
}

.section-description {
  text-align: center;
  max-width: 850px;
  margin: 10px auto 35px;
  font-size: 18px;
  color: #444;
}

body.dark-mode .section-description {
  color: #c9c9c9;
}

/* ===========================================================
   SERVICIOS PROFESIONALES
=========================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background: white;
  padding: 26px;
  border-radius: 14px;
  box-shadow: 0 10px 32px rgba(0,0,0,0.08);
  transition: 0.25s ease;
}

body.dark-mode .service-card {
  background: #161616;
  box-shadow: 0 10px 32px rgba(255,255,255,0.05);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.12);
}

.service-title {
  font-size: 22px;
  font-weight: 700;
  color: #003f7a;
  margin-bottom: 10px;
}

body.dark-mode .service-title {
  color: #ffd84d;
}

.service-description {
  font-size: 15px;
  opacity: 0.9;
  margin-bottom: 12px;
}

.btn-saber-mas {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  background: #0056a6;
  color: white;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.2s ease;
}

.btn-saber-mas:hover {
  filter: brightness(1.2);
}

/* ===========================================================
   ASESORÍAS PROFESIONALES
=========================================================== */

.asesorias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.asesoria-card {
  background: white;
  padding: 26px;
  border-radius: 14px;
  box-shadow: 0 10px 32px rgba(0,0,0,0.08);
  transition: 0.25s ease;
}

body.dark-mode .asesoria-card {
  background: #161616;
  box-shadow: 0 10px 32px rgba(255,255,255,0.05);
}

.asesoria-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.12);
}

.asesoria-title {
  font-size: 22px;
  font-weight: 700;
  color: #003f7a;
  margin-bottom: 10px;
}

body.dark-mode .asesoria-title {
  color: #ffd84d;
}

.asesoria-precio {
  margin-top: 12px;
  font-size: 18px;
  font-weight: 600;
  color: #0056a6;
}

body.dark-mode .asesoria-precio {
  color: #ffd84d;
}

/* ===========================================================
   PLANES – CARRUSEL HORIZONTAL PREMIUM
=========================================================== */

.planes-grid {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 26px;
  padding: 10px 4px;
  scroll-snap-type: x mandatory;
}

.planes-grid::-webkit-scrollbar {
  height: 10px;
}

.planes-grid::-webkit-scrollbar-thumb {
  background: #eac81f;
  border-radius: 10px;
}

.planes-grid::-webkit-scrollbar-track {
  background: #fff6cd;
}

/* -------- Tarjetas -------- */

.plan-card {
  flex: 0 0 330px;
  background: white;
  padding: 28px;
  border-radius: 18px;
  scroll-snap-align: start;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  transition: 0.25s ease;
  border: 2px solid transparent;
}

.plan-card:hover {
  transform: translateY(-6px);
  border-color: #eac81f;
  box-shadow: 0 14px 52px rgba(0,0,0,0.12);
}

body.dark-mode .plan-card {
  background: #161616;
  box-shadow: 0 10px 32px rgba(255,255,255,0.06);
}

body.dark-mode .plan-card:hover {
  border-color: #ffd84d;
}

/* -------- Títulos y textos -------- */

.plan-title {
  font-size: 24px;
  color: #003f7a;
  font-weight: 700;
  margin-bottom: 6px;
}

body.dark-mode .plan-title {
  color: #ffd84d;
}

.plan-description {
  opacity: 0.85;
  margin-bottom: 12px;
}

.plan-price {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #0056a6;
}

body.dark-mode .plan-price {
  color: #ffd84d;
}

/* -------- Métodos de pago -------- */

.pago-metodos {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 12px 0;
}

/* QR */
.qr-box {
  text-align: center;
}

.qr-img {
  width: 90px;
  border-radius: 10px;
  box-shadow: 0 5px 12px rgba(0,0,0,0.12);
}

.qr-label {
  font-size: 14px;
  font-weight: 600;
  margin-top: 4px;
}

/* PayPal */
.paypal-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0070ba;
  color: white;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s ease;
}

.paypal-button:hover {
  filter: brightness(1.15);
}

/* -------- AVAL -------- */

.info-bancaria {
  background: #fff1a8;
  padding: 10px;
  border-radius: 8px;
  font-weight: 600;
  margin-top: 10px;
  text-align: center;
  border-left: 4px solid #eac81f;
}

body.dark-mode .info-bancaria {
  background: #2a2a2a;
  color: #ffd84d;
  border-left-color: #ffd84d;
}

/* -------- GLOBALPLAY -------- */

.globalplay-box {
  margin-top: 12px;
  background: #ffe2b6;
  padding: 10px;
  border-radius: 8px;
  font-weight: 700;
  border-left: 4px solid #eac81f;
  color: #b57200;
  text-align: center;
}

body.dark-mode .globalplay-box {
  background: #352400;
  color: #ffd884;
  border-left-color: #ffd84d;
}

/* -------- Móvil -------- */

@media (max-width: 480px) {
  .plan-card {
    flex: 0 0 88%;
  }
}
/* ===========================================================
   TESTIMONIOS PROFESIONALES + REVEAL
=========================================================== */

/* ===========================================================
   TESTIMONIOS – DISEÑO PROFESIONAL CORPORATIVO
=========================================================== */

.testimonios-carousel {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 20px;
}

.testimonio-card {
  flex: 0 0 300px;
  background: #ffffff;
  padding: 26px;
  border-radius: 18px;
  scroll-snap-align: start;
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* BARRA LATERAL CORPORATIVA */
.testimonio-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 6px;
  background: #eac81f;
  border-radius: 6px 0 0 6px;
}

body.dark-mode .testimonio-card {
  background: #161616;
  box-shadow: 0 12px 32px rgba(255,255,255,0.06);
}

/* HEADER DEL TESTIMONIO */
.testimonio-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* FOTO DEL CLIENTE */
.testimonio-foto {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #eac81f;
}

body.dark-mode .testimonio-foto {
  border-color: #ffd84d;
}

/* NOMBRE DEL CLIENTE */
.testimonio-nombre {
  font-weight: 700;
  color: #003f7a;
  font-size: 17px;
}

body.dark-mode .testimonio-nombre {
  color: #ffd84d;
}

/* TEXTO DEL TESTIMONIO */
.testimonio-texto {
  font-size: 15px;
  color: #444;
  line-height: 1.5;
}

body.dark-mode .testimonio-texto {
  color: #d6d6d6;
}

/* ÍCONO DE COMILLAS */
.comillas {
  font-size: 38px;
  line-height: 0;
  color: #eac81f;
  opacity: 0.6;
}

body.dark-mode .comillas {
  color: #ffd84d;
}

/* ANIMACIÓN PREMIUM */
.testimonio-card {
  opacity: 0;
  transform: translateY(25px);
}
.testimonio-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* MODO ESCRITORIO → REJILLA PROFESIONAL */
@media (min-width: 1024px) {
  .testimonios-carousel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 1250px;
    margin: 0 auto;
    gap: 32px;
    overflow: visible;
  }

  .testimonio-card {
    flex: none;
    width: 100%;
    max-width: 360px;
  }
}


/* ===========================================================
   MODAL DE BIENVENIDA PREMIUM
=========================================================== */

.welcome-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.modal-content {
  background: white;
  padding: 32px;
  border-radius: 12px;
  text-align: center;
  width: 90%;
  max-width: 360px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
  animation: fadeInScale 0.35s ease forwards;
}

@keyframes fadeInScale {
  0%   { opacity: 0; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1); }
}

.modal-content input {
  width: 100%;
  padding: 12px;
  margin-top: 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.modal-content button {
  background: #003f7a;
  color: white;
  padding: 10px 22px;
  border-radius: 8px;
  border: none;
  margin-top: 16px;
  cursor: pointer;
  font-weight: 600;
}

.modal-content button:hover {
  opacity: 0.9;
}

body.dark-mode .modal-content {
  background: #161616;
  color: white;
  border: 1px solid #333;
}

/* SALUDO */
.saludo-usuario {
  position: fixed;
  top: 110px;
  right: 20px;
  background: #003f7a;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: 0.3s ease;
  z-index: 99999;
}

.saludo-usuario.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

body.dark-mode .saludo-usuario {
  background: #ffd84d;
  color: #000;
}

/* ===========================================================
   BOTÓN VOLVER ARRIBA
=========================================================== */

.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 30px;
  background: #003f7a;
  color: white;
  padding: 12px 16px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: none;
  font-size: 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  transition: 0.2s ease;
  z-index: 99998;
}

.scroll-top:hover {
  transform: scale(1.12);
}

body.dark-mode .scroll-top {
  background: #ffd84d;
  color: #000;
}

/* ===========================================================
   FORMULARIO DE CONTACTO PROFESIONAL
=========================================================== */

.contacto-form {
  max-width: 650px;
  margin: auto;
  background: white;
  padding: 35px;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

body.dark-mode .contacto-form {
  background: #161616;
  box-shadow: 0 10px 32px rgba(255,255,255,0.05);
}

.contacto-form .form-group {
  margin-bottom: 16px;
}

.contacto-form label {
  font-weight: 600;
}

.contacto-form input,
.contacto-form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-top: 6px;
  font-size: 15px;
}

body.dark-mode .contacto-form input,
body.dark-mode .contacto-form textarea {
  background: #222;
  border-color: #444;
  color: #fff;
}

/* ===========================================================
   FOOTER CORPORATIVO
=========================================================== */

.footer-main {
  background: #003f7a;
  color: white;
  padding: 40px 22px;
  text-align: center;
  margin-top: 50px;
}

body.dark-mode .footer-main {
  background: #000;
  color: #ffd84d;
}

/* ===========================================================
   MICROINTERACCIONES + DETALLES PRO
=========================================================== */

a, button {
  transition: 0.25s ease;
}

a:hover, button:hover {
  opacity: 0.85;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp 0.5s ease forwards;
}

::selection {
  background: #eac81f;
  color: #000;
}

body.dark-mode ::selection {
  background: #ffd84d;
  color: #000;
}

/* Fix imágenes */
img {
  max-width: 100%;
  display: block;
}

/* Ajuste global final */
body.dark-mode .qr-label,
body.dark-mode .plan-description,
body.dark-mode .service-description {
  color: #dbdbdb;
}
/* ===========================================================
   CORRECCIÓN PRO TARJETAS DESCUDRADAS EN PANTALLA GRANDE
=========================================================== */

/* Contenedor centrado y ancho real controlado */
.services-grid,
.asesorias-grid {
  max-width: 1200px;
  margin: 0 auto;
  justify-items: center;
  align-items: stretch;
}

/* Tarjetas con altura mínima unificada */
.service-card,
.asesoria-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Alinear texto y botones perfectamente */
.service-card a,
.asesoria-card a {
  margin-top: auto; /* botón siempre abajo */
}

/* Redondear simetría de sombras para no empujar */
.service-card,
.asesoria-card {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.09);
}

/* PANTALLA COMPLETA: centrar columnas exactas */
@media (min-width: 1400px) {
  .services-grid,
  .asesorias-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

/* ---- TARJETAS DE PLANES ---- */

/* Centrar carrusel en pantallas grandes */
.planes-grid {
  justify-content: center;
  padding-left: 40px;
  padding-right: 40px;
}

/* Tarjetas equilibradas */
.plan-card {
  width: 350px;
  min-height: 360px;
}

/* Evitar desbalance en modo oscuro */
body.dark-mode .plan-card {
  box-shadow: 0 10px 30px rgba(255,255,255,0.05);
}

/* CENTRAR PRO TAGS */
.plan-title,
.plan-description,
.plan-price {
  text-align: center;
}

/* Uniformidad visual */
.globalplay-box,
.info-bancaria {
  text-align: center;
}
/* ===========================================================
   CORRECCIÓN PRO DE TESTIMONIOS EN PANTALLA COMPLETA
=========================================================== */

/* MODO ESCRITORIO → Grilla armonizada */
@media (min-width: 1024px) {
  .testimonios-carousel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    overflow: visible;        /* elimina scroll horizontal */
    padding-bottom: 0;
    justify-items: center;    /* centra tarjetas */
    max-width: 1250px;
    margin: 0 auto;           /* centra todo el bloque */
  }

  .testimonio-card {
    width: 100%;              /* que ocupe el ancho de la columna */
    max-width: 360px;         /* ancho ideal corporativo */
    min-height: 220px;        /* todas parejas */
    opacity: 1;               /* que no dependan del scroll reveal */
    transform: translateY(0); /* neutralizamos la animación fuera de móvil */
  }
}

/* MODO MÓVIL → conserva scroll horizontal */
@media (max-width: 1023px) {
  .testimonios-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .testimonio-card {
    flex: 0 0 80%;
    scroll-snap-align: start;
  }
}
