:root {
  --primary: #2edf4b;
  --primary-dark: #1cb637;
  --primary-light: #7ef598;
  --secondary: #8a2be2;
  --accent: #00c6ff;
  --accent-dark: #0099cc;
  --dark: #0a0a1a;
  --darker: #050510;
  --dark-transparent: rgba(5, 5, 16, 0.9);
  --light: #f5f5f5;
  --gray: #8a8a9d;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.12);
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --transition-slow: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  }
  html,
  body {
    overflow-x: hidden;
    width: 100%;
  }
  
  html {
    scroll-behavior: smooth;
    font-size: 16px;
  }



body {
  background: linear-gradient(
    135deg,
    var(--darker) 0%,
    var(--dark) 50%,
    #151530 100%
  );
  color: var(--light);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation - CORREGIDO */
header {
  padding: 20px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: var(--transition-slow);
  transform: translateY(0);
}

header.hidden {
  transform: translateY(-100%);
}

header.scrolled {
  background: var(--dark-transparent);
  backdrop-filter: blur(15px);
  padding: 15px 0;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  z-index: 1001;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  color: var(--dark);
  box-shadow: 0 0 20px rgba(46, 223, 75, 0.5);
  animation: logoPulse 4s infinite alternate;
}

@keyframes logoPulse {
  0% {
    box-shadow: 0 0 20px rgba(46, 223, 75, 0.5);
  }
  100% {
    box-shadow: 0 0 30px rgba(46, 223, 75, 0.8), 0 0 40px rgba(46, 223, 75, 0.4);
  }
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.logo-text:after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: var(--transition);
}

.logo:hover .logo-text:after {
  width: 100%;
}

/* Logo con ícono y texto */
.nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 700;
  color: #333;
}

/* Imagen del logo */
.logo-img {
  height: 40px;
  width: auto;
  margin-right: 0.5rem;
  animation: premiumColorShift 8s ease-in-out infinite;
  
}

/* NAV-LINKS CORREGIDO - Visible en desktop */
.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--light);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: var(--transition);
  padding: 5px 0;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links a:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover:after {
  width: 100%;
}

/* BOTÓN HAMBURGUESA - SOLO EN MÓVIL */
.mobile-menu-btn {
  display: none; /* Oculto por defecto en desktop */
  background: none;
  border: none;
  color: var(--light);
  font-size: 24px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--glass);
  backdrop-filter: blur(10px);
  transition: var(--transition);
  z-index: 1001;
}

.mobile-menu-btn:hover {
  background: rgba(46, 223, 75, 0.2);
  transform: rotate(90deg);
}

/* MENÚ MÓVIL - SOLO VISIBLE EN MÓVIL */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  height: 100vh;
  background: var(--dark-transparent);
  backdrop-filter: blur(15px);
  z-index: 1001;
  transition: var(--transition-slow);
  padding: 100px 30px 30px;
  border-left: 1px solid var(--glass-border);
  display: none; /* Oculto por defecto */
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu .nav-links {
  display: flex;
  flex-direction: column;
  list-style: none;
  gap: 20px;
}

.mobile-menu .nav-links a {
  font-size: 1.2rem;
  padding: 10px 0;
  border-bottom: 1px solid var(--glass-border);
}

.close-menu {
  position: absolute;
  top: 30px;
  right: 30px;
  background: none;
  border: none;
  color: var(--light);
  font-size: 1.5rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--glass);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.close-menu:hover {
  background: rgba(46, 223, 75, 0.2);
  transform: rotate(90deg);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("img/03.jpg")
    no-repeat center center/cover;
  z-index: -3;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(5, 5, 16, 0.9) 0%,
    rgba(10, 10, 26, 0.85) 30%,
    rgba(21, 21, 48, 0.7) 70%,
    rgba(46, 223, 75, 0.1) 100%
  );
  z-index: -2;
}

.hero-content {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease forwards 0.3s;
  background: linear-gradient(
    135deg,
    var(--light) 0%,
    var(--primary-light) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
  font-size: 1.8rem;
  font-weight: 300;
  margin-bottom: 2rem;
  color: var(--primary);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease forwards 0.6s;
  position: relative;
  display: inline-block;
}

.hero-subtitle:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.hero-description {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  /* color: var(--gray); */
  color: #dbeaf1;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease forwards 0.9s;
}

/* Contenedor de botones */
.btn-container {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* --- Botones base --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 36px;
  border-radius: 40px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(46, 223, 75, 0.35);
  color: var(--dark);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none;
}

/* Hover efecto elevación y saturación */
.btn:hover {
  transform: translateY(-2px);
  filter: saturate(110%);
  box-shadow: 0 16px 40px rgba(124, 111, 255, 0.35);
}

/* --- Botón outline --- */
.btn-outline {
  background: rgba(2, 2, 8, 0.7);
  color: var(--text);
  border: 1px solid var(--stroke);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* --- Gradiente animado para efecto glow --- */
@keyframes liquidGlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.btn-glow {
  background: linear-gradient(
    135deg,
    var(--brand),
    #bae9b8f6 40%,
    #4fc2f7cb 80%,
    #7ecdf2 120%
  );
  background-size: 300% 300%;
  animation: liquidGlow 6s ease-in-out infinite;
  color: #0b0f17;
}

/* --- Contenedor de botones --- */
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.hero-actions .btn {
  width: 95%;
  max-width: 400px;
  justify-content: center;
  text-align: center;
}

/* --- Botones base --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 36px;
  border-radius: 40px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  color: var(--dark);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none;
  box-shadow: 0 6px 20px rgba(46, 223, 75, 0.35);
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  filter: saturate(110%);
  box-shadow: 0 16px 40px rgba(124, 111, 255, 0.35);
}

/* --- Botón outline --- */
.btn-outline {
  background: rgba(
    2,
    2,
    8,
    0.9
  ); /* más opaco para evitar transparencia visible */
  color: var(--text);
  border: 1px solid var(--stroke);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* --- Contenedor de botones --- */
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.hero-actions .btn {
  width: 95%;
  max-width: 400px;
  justify-content: center;
  text-align: center;
}

/* --- Animación de entrada + pulsación --- */
.btn-pulse {
  animation: fadeInUp 0.8s ease-out forwards, pulseScale 2s infinite;
}

/* Entrada desde abajo */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pulsación de escala sin afectar fondo ni texto */
@keyframes pulseScale {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* --- Halo pulsante separado para resaltar el botón --- */
.btn-pulse::after {
  content: "";
  position: absolute;
  inset: 0; /* cubre todo el botón */
  border-radius: inherit;
  border: 2px solid rgba(126, 242, 198, 0.35);
  transform: scale(0.9);
  opacity: 0;
  pointer-events: none; /* evita interferencia con clics */
  animation: haloPulse 2.2s infinite ease-out;
  z-index: 0; /* detrás del contenido del botón */
}

@keyframes haloPulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.35);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

/* --- Responsive --- */
@media (max-width: 600px) {
  .btn {
    padding: 12px 24px;
    font-size: 14px;
  }
}

/* Floating Elements */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.floating-element {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(46, 223, 75, 0.1) 0%,
    transparent 70%
  );
  animation: float 20s infinite linear;
  filter: blur(1px);
}

.floating-element:nth-child(1) {
  width: 100px;
  height: 100px;
  top: 15%;
  left: 10%;
  animation-delay: 0s;
}

.floating-element:nth-child(2) {
  width: 150px;
  height: 150px;
  top: 65%;
  left: 85%;
  animation-delay: 3s;
  background: radial-gradient(
    circle,
    rgba(0, 198, 255, 0.1) 0%,
    transparent 70%
  );
}

.floating-element:nth-child(3) {
  width: 70px;
  height: 70px;
  top: 45%;
  left: 15%;
  animation-delay: 6s;
  background: radial-gradient(
    circle,
    rgba(138, 43, 226, 0.1) 0%,
    transparent 70%
  );
}

.floating-element:nth-child(4) {
  width: 120px;
  height: 120px;
  top: 25%;
  left: 75%;
  animation-delay: 9s;
}

/* Slider Section */
.slider-section {
  padding: 100px 0;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
}

.section-title:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.swiper {
  width: 100%;
  aspect-ratio: 16/9;      /* Mantiene la proporción */
  max-height: 600px;       /* Altura máxima en escritorio */
  border-radius: 20px;     /* Bordes redondeados */
  overflow: hidden;        /* Para que la imagen respete el borde */
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.swiper-slide {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 20px; /* asegura bordes redondeados en cada slide */
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* muestra toda la imagen sin recortar */
  border-radius: 20px;   /* borde aplicado también a la imagen */
  background: #000;      /* fondo negro si sobran espacios */
  transition: transform 0.5s ease;
}

.swiper-slide:hover img {
  transform: scale(1.05);
}

.image-container-wrapper img {
  margin-left: -2px;
  max-width: 100%;
  margin-bottom: 20px;
  border-radius: 20px;
}

.slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background: linear-gradient(transparent, rgba(5, 5, 16, 0.9));
  color: var(--light);
  z-index: 2;
  border-radius: 0 0 20px 20px; /* redondeo en parte inferior */
}

.slide-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--primary);
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--primary);
  background: var(--glass);
  backdrop-filter: blur(10px);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transition: var(--transition);
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 20px;
  font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: rgba(46, 223, 75, 0.2);
  transform: scale(1.1);
}

.swiper-pagination-bullet {
  background: var(--gray);
  opacity: 0.5;
  width: 12px;
  height: 12px;
  transition: var(--transition);
}

.swiper-pagination-bullet-active {
  background: var(--primary);
  opacity: 1;
  transform: scale(1.2);
}

/* Responsive */
@media (max-width: 768px) {
  .swiper {
    aspect-ratio: 16/9;
    max-height: 300px; /* más pequeño en móviles */
    border-radius: 15px;
  }

  .swiper-slide,
  .swiper-slide img {
    border-radius: 15px;
  }

  .slide-title {
    font-size: 1.2rem;
  }
}



/* Info Section */
.info-section {
  padding: 80px 0;
}

.info-grid {
  display: flex;
  flex-direction: column;
  gap: 25px;
  align-items: center;
}

.info-card {
  width: 100%;
  max-width: 480px; /* 🔹 Reducido de 600px a 480px */
  padding: 20px; /* 🔹 Menos padding para que sea más compacto */

  font-size: 0.95rem; /* 🔹 Texto ligeramente más pequeño */

  background: var(--glass);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

/* .info-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  border-color: rgba(46, 223, 75, 0.3);
  transition: 0.6s;
} */

.info-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  transition: 0.6s;
}

.info-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  border-color: rgba(46, 223, 75, 0.3);
}

.info-card:hover:before {
  left: 100%;
}

.info-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.info-icon:after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.info-card:hover .info-icon:after {
  width: 50px;
}

.info-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--light);
}

.info-description {
  color: var(--gray);
  margin-bottom: 20px;
}

.info-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
  position: relative;
}

.info-link:after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: var(--transition);
}

.info-link:hover {
  gap: 10px;
}

.info-link:hover:after {
  width: 100%;
}

.image-container-wrapper img {
  display: block;

  width: 100%;
  max-width: 470px; /* 🔹 Igual que las cards */
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

/* Benefits Section */
.benefits {
  padding: 100px 0;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.benefit-card {
  background: var(--glass);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.benefit-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  transition: 0.6s;
}

.benefit-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  border-color: rgba(46, 223, 75, 0.3);
}

.benefit-card:hover:before {
  left: 100%;
}

.benefit-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.benefit-icon:after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.benefit-card:hover .benefit-icon:after {
  width: 50px;
}

.benefit-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--light);
}

.benefit-list {
  list-style: none;
  text-align: left;
}

.benefit-list li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
  color: var(--gray);
  transition: var(--transition);
}

.benefit-list li:hover {
  color: var(--light);
  transform: translateX(5px);
}

.benefit-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
  transition: var(--transition);
}

.benefit-list li:hover:before {
  transform: scale(1.2);
}

/* CTA Section */
.cta {
  text-align: center;
  padding: 80px 0;
  background: linear-gradient(
    135deg,
    rgba(46, 223, 75, 0.1) 0%,
    rgba(138, 43, 226, 0.1) 100%
  );
  position: relative;
  overflow: hidden;
}

.cta:before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(46, 223, 75, 0.1) 0%,
    transparent 70%
  );
  animation: pulse 10s infinite linear;
  z-index: -1;
}

.cta-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.cta-description {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  color: var(--gray);
}


/* 
/////////////////////////////PDF////////////// */
/* === PDF Modal Styles === */

/* === PDF Modal Styles === */

/* === Control de gestos === */
.pdf-container, 
#pdfCanvas {
  touch-action: pinch-zoom pan-x pan-y; /* permite zoom y scroll solo dentro del visor */
}



body.modal-open {
  overflow: hidden;   /* bloquea scroll en móviles */
}


/* === Botón PDF === */
.btn-pdf {
  background: #68d391;
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 25px;
  font-size: 18px;
  cursor: pointer;
  margin: 20px 0;
  width: 100%;
  transition: background 0.3s ease;
}

.btn-pdf:hover {
  background: #48bb78;
}

/* === Modal principal === */
.pdf-modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: black;
  z-index: 1000;
  touch-action: none; /* bloquea gestos globales en el fondo */
}

/* === Encabezado modal === */
.modal-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  background: rgba(0,0,0,0.9);
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1001;
  color: #68d391;
}

.close-btn {
  font-size: 37px;
  font-weight: bold;
  background: none;
  border: none;
  color: #61dd0f;
  cursor: pointer;
}

/* === Contenedor del PDF === */
.pdf-container {
  margin-top: 60px;
  padding: 10px;
  height: calc(100vh - 120px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  text-align: center;
  touch-action: pinch-zoom pan-x pan-y; /* ✅ permite pinch-zoom y scroll */
}



#pdfCanvas {
  display: block;
  background: white;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  border-radius: 8px; /* bordes redondeados */
  touch-action: pinch-zoom; /* ✅ habilita zoom nativo en el canvas */
  touch-action: none;  /* evita que el navegador haga zoom global */
}


/* === Footer con controles === */
.modal-footer {
  position: fixed;
  bottom: 0; left: 0;
  width: 100%;
  background: rgba(0,0,0,0.9);
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.modal-footer button {
  background: #4a5568;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  min-width: 44px;
  font-size: 18px;
}

.page-info { 
  color: white; 
  margin: 0 10px; 
}

.zoom-info { 
  color: #68d391; 
  margin: 0 10px; 
}

/* === Loader === */
.loader {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #68d391;
}

.spinner {
  border: 3px solid rgba(255,255,255,0.3);
  border-top: 3px solid #68d391;
  border-radius: 50%;
  width: 30px; height: 30px;
  animation: spin 1s linear infinite;
  margin: 0 auto 10px;
}

@keyframes spin { 
  to { transform: rotate(360deg); } 
}

/* === Scroll Lock solo en escritorio === */
@media (min-width: 768px) {
  .body-scroll-lock {
    overflow: hidden; /* previene movimiento del fondo */
  }
}

/* === Responsive para móviles === */
@media (max-width: 767px) {
  /* Ocultar controles de zoom en móviles */
  #zoomIn, 
  #zoomOut, 
  .zoom-info {
    display: none !important;
  }

  .pdf-container {
    height: calc(100vh - 0px); /* más espacio en móvil */
    padding: 7px;
  }

  #pdfCanvas {
    max-width: 100%;
    width: 100% !important; /* ocupa todo el ancho */
    height: auto !important; 
  }

  .modal-footer {
    padding: 65px;
    gap: 15px;
  }

  .modal-footer button {
    font-size: 20px;
    padding: 10px 14px;
  }
}


    /* === Footer con controles === */
    .modal-footer {
      position: fixed;
      bottom: 0; left: 0;
      width: 100%;
      background: rgba(0,0,0,0.9);
      padding: 10px;
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 10px;
    }

    .modal-footer button {
      background: #4a5568;
      color: white;
      border: none;
      padding: 8px 12px;
      border-radius: 5px;
      cursor: pointer;
      min-width: 44px;
      font-size: 18px;
    }

    .page-info { 
      color: white; 
      margin: 0 10px; 
    }

    .zoom-info { 
      color: #68d391; 
      margin: 0 10px; 
    }

    /* === Loader === */
    .loader {
      position: absolute;
      top: 50%; left: 50%;
      transform: translate(-50%, -50%);
      text-align: center;
      color: #68d391;
    }

    .spinner {
      border: 3px solid rgba(255,255,255,0.3);
      border-top: 3px solid #68d391;
      border-radius: 50%;
      width: 30px; height: 30px;
      animation: spin 1s linear infinite;
      margin: 0 auto 10px;
    }

    @keyframes spin { 
      to { transform: rotate(360deg); } 
    }

    /* === Scroll Lock solo en escritorio === */
    @media (min-width: 768px) {
      .body-scroll-lock {
        overflow: hidden; /* previene movimiento del fondo */
      }
    }

    /* === Responsive para móviles === */
    @media (max-width: 767px) {
      /* Ocultar controles de zoom en móviles */
      #zoomIn, 
      #zoomOut, 
      .zoom-info {
        display: none !important;
      }

      .pdf-container {
        height: calc(100vh - 0px); /* más espacio en móvil */
        padding: 7px;
      }

      #pdfCanvas {
        max-width: 100%;
        width: 100% !important; /* ocupa todo el ancho */
        height: auto !important; 
      }

      .modal-footer {
        padding: 65px;
        gap: 15px;
      }

      .modal-footer button {
        font-size: 20px;
        padding: 10px 14px;
      }
    }

/* Footer */
.footer {
  background: rgba(5, 5, 16, 0.95);
  padding: 60px 0 30px;
  border-top: 1px solid var(--glass-border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column {
  flex: 1;
  min-width: 250px;
}

.footer-logo {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo .logo-icon {
  width: 35px;
  height: 35px;
  font-size: 16px;
}

.footer-logo .logo-text {
  font-size: 20px;
}

.footer-description {
  margin-bottom: 20px;
  color: var(--gray);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--glass);
  border-radius: 50%;
  color: var(--light);
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary);
  color: var(--dark);
  transform: translateY(-3px);
}

.footer-title {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
}

.footer-title:after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--gray);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.contact-info {
  list-style: none;
}

.contact-info li {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  color: var(--gray);
}

.contact-info i {
  margin-right: 10px;
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--glass-border);
  color: var(--gray);
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
  100% {
    transform: translateY(0) rotate(360deg);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
}

/* RESPONSIVE CORREGIDO */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.8rem;
  }

  /* NAV-LINKS SOLO OCULTOS EN MÓVIL */
  .nav-links {
    display: none;
  }

  /* BOTÓN HAMBURGUESA SOLO VISIBLE EN MÓVIL */
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* MENÚ MÓVIL SOLO VISIBLE EN MÓVIL */
  .mobile-menu {
    display: block;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.4rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .btn-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .btn-outline {
    margin-left: 0;
  }

  .swiper {
    height: 300px;
  }
}
