/* --- CUSTOM THEMATIC CSS VARIABLES --- */
:root {
  --vis-fondo-principal: #f4f7f6;
  --vis-superficie-brillante: #ffffff;
  --vis-gradiente-marca: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
  --vis-gradiente-acento: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  --vis-color-acento-solido: #11998e;
  --vis-texto-oscuro: #1c2d37;
  --vis-texto-tenue: #546e7a;
  --vis-texto-claro: #ffffff;
  --vis-borde-suave: 20px;
  --vis-sombra-profunda: 0 15px 35px rgba(15, 32, 39, 0.12);
  --vis-sombra-hover: 0 20px 40px rgba(17, 153, 142, 0.25);
  
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Poppins', sans-serif;
}

/* --- BASE & TYPOGRAPHY --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--vis-fondo-principal);
  color: var(--vis-texto-oscuro);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* --- SCROLL-DRIVEN PROGRESS BAR --- */
.vis-barra-progreso {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: var(--vis-gradiente-acento);
  width: 0;
  z-index: 10000;
  animation: vis-crecer-progreso linear;
  animation-timeline: scroll();
}

@keyframes vis-crecer-progreso {
  to { width: 100%; }
}

/* --- HEADER --- */
.vis-cabecera-navegacion {
  background: var(--vis-gradiente-marca);
  color: var(--vis-texto-claro);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.vis-contenedor-cabecera {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
}

.vis-enlace-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--vis-texto-claro);
}

.vis-icono-svg {
  width: 35px;
  height: 35px;
  fill: none;
  stroke: url(#vis-gradiente-svg);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vis-menu-lista {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.vis-enlace-menu {
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

.vis-enlace-menu::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--vis-gradiente-acento);
  transition: width 0.3s ease;
}

.vis-enlace-menu:hover::after,
.vis-enlace-menu.vis-activo::after {
  width: 100%;
}

/* HAMBURGER FOR MOBILE */
.vis-toggle-menu {
  display: none;
}

.vis-etiqueta-burguer {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.vis-etiqueta-burguer span {
  width: 25px;
  height: 3px;
  background-color: var(--vis-texto-claro);
  transition: all 0.3s ease;
}

/* --- HERO INDEX --- */
.vis-seccion-hero {
  position: relative;
  background-image: linear-gradient(rgba(15, 32, 39, 0.85), rgba(44, 83, 100, 0.85)), url('img/bg.webp');
  background-size: cover;
  background-position: center;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--vis-texto-claro);
  padding: 6rem 2rem 4rem;
}

.vis-contenido-hero {
  max-width: 800px;
  margin: 0 auto;
}

.vis-hero-titulo {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.vis-hero-subtitulo {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  margin-bottom: 2.5rem;
  color: #cfd8dc;
  font-weight: 300;
}

.vis-boton-accion {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: var(--vis-borde-suave);
  background: var(--vis-gradiente-acento);
  color: var(--vis-texto-oscuro);
  box-shadow: var(--vis-sombra-hover);
  transform: translateY(0);
}

.vis-boton-accion:hover {
  transform: translateY(-3px);
  box-shadow: 0 25px 50px rgba(56, 239, 125, 0.4);
}

/* STATS BAR UNDER HERO */
.vis-barra-estadisticas {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 4rem;
  width: 100%;
  max-width: 1000px;
}

.vis-tarjeta-stat {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 1.5rem 2.5rem;
  border-radius: var(--vis-borde-suave);
  flex: 1;
  min-width: 200px;
}

.vis-stat-numero {
  font-size: 2.5rem;
  font-weight: 800;
  display: block;
  color: #38ef7d;
}

.vis-stat-etiqueta {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* TRUST LOGOS BAR */
.vis-barra-confianza {
  width: 100%;
  background: rgba(15, 32, 39, 0.9);
  padding: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 3rem;
  align-items: center;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.vis-marca-confianza {
  color: rgba(255,255,255,0.4);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
}

/* --- INDEX CONTENT: ROTATIVE TRACK / MOBILE SCROLLER --- */
.vis-seccion-scroller {
  padding: 8dvh 2rem;
  background-image: linear-gradient(rgba(244, 247, 246, 0.95), rgba(244, 247, 246, 0.95)), url('img/bg2.webp');
  background-size: cover;
  background-position: center;
}

.vis-contenedor-scroller {
  max-width: 1200px;
  margin: 0 auto;
}

.vis-scroller-titulo {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 3rem;
  color: var(--vis-texto-oscuro);
}

.vis-pista-deslizante {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.vis-tarjeta-deslizante {
  background: var(--vis-superficie-brillante);
  padding: 2.5rem;
  border-radius: var(--vis-borde-suave);
  box-shadow: var(--vis-sombra-profunda);
  transition: all 0.3s ease;
}

.vis-tarjeta-deslizante:hover {
  transform: translateY(-5px);
}

.vis-tarjeta-deslizante-svg {
  width: 50px;
  height: 50px;
  margin-bottom: 1.5rem;
  fill: none;
  stroke: var(--vis-color-acento-solido);
  stroke-width: 2;
}

.vis-tarjeta-deslizante-titulo {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--vis-texto-oscuro);
}

/* --- FEATURES GRID GAME (COLOR FLIP) --- */
.vis-seccion-caracteristicas {
  padding: 10dvh 2rem;
  background: var(--vis-superficie-brillante);
}

.vis-contenedor-caracteristicas {
  max-width: 1200px;
  margin: 0 auto;
}

.vis-titulo-caracteristicas {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 4rem;
}

.vis-rejilla-caracteristicas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.vis-tarjeta-caracteristica {
  background: var(--vis-fondo-principal);
  padding: 2.5rem;
  border-radius: var(--vis-borde-suave);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.vis-tarjeta-caracteristica::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--vis-gradiente-marca);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.vis-carac-circulo-svg {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--vis-superficie-brillante);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.vis-carac-svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--vis-color-acento-solido);
  stroke-width: 2;
}

.vis-carac-titulo {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  transition: color 0.4s ease;
}

.vis-carac-desc {
  font-size: 0.95rem;
  color: var(--vis-texto-tenue);
  transition: color 0.4s ease;
}

.vis-tarjeta-caracteristica:hover {
  transform: scale(1.03);
  box-shadow: var(--vis-sombra-hover);
}

.vis-tarjeta-caracteristica:hover::before {
  opacity: 1;
}

.vis-tarjeta-caracteristica:hover .vis-carac-titulo {
  color: var(--vis-texto-claro);
}

.vis-tarjeta-caracteristica:hover .vis-carac-desc {
  color: rgba(255,255,255,0.8);
}

/* --- HOW IT WORKS (HORIZONTAL TIMELINE) --- */
.vis-seccion-procesos {
  padding: 10dvh 2rem;
  background: var(--vis-fondo-principal);
}

.vis-contenedor-procesos {
  max-width: 1200px;
  margin: 0 auto;
}

.vis-procesos-titulo {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 5rem;
}

.vis-linea-procesos {
  display: flex;
  justify-content: space-between;
  position: relative;
  gap: 2rem;
}

.vis-linea-procesos::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 5%;
  right: 5%;
  height: 4px;
  background: var(--vis-color-acento-solido);
  z-index: 1;
}

.vis-paso-proceso {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 2;
}

.vis-circulo-proceso {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--vis-gradiente-marca);
  color: var(--vis-texto-claro);
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  border: 5px solid var(--vis-fondo-principal);
  box-shadow: var(--vis-sombra-profunda);
}

.vis-paso-titulo {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.vis-paso-desc {
  font-size: 0.9rem;
  color: var(--vis-texto-tenue);
  max-width: 250px;
  margin: 0 auto;
}

/* --- CTA STRIP --- */
.vis-franja-cta {
  background: var(--vis-gradiente-marca);
  color: var(--vis-texto-claro);
  padding: 5rem 2rem;
}

.vis-contenedor-cta {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
}

.vis-cta-texto h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.vis-cta-texto p {
  color: #cfd8dc;
  max-width: 600px;
}

/* --- EXPERT PAGE SPECIFICS --- */
.vis-expert-intro {
  padding: 10dvh 2rem;
  background: var(--vis-superficie-brillante);
}

.vis-expert-rejilla {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4rem;
}

.vis-expert-imagen-bloque {
  flex: 4;
}

.vis-expert-img {
  width: 100%;
  border-radius: var(--vis-borde-suave);
  box-shadow: var(--vis-sombra-profunda);
  object-fit: cover;
  display: block;
}

.vis-expert-info {
  flex: 6;
}

.vis-expert-info h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--vis-texto-oscuro);
}

.vis-parrafo-resalta {
  font-size: 1.1rem;
  color: var(--vis-color-acento-solido);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.vis-expert-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 4rem auto 0;
  padding: 0 2rem;
}

.vis-expert-stat-card {
  background: var(--vis-superficie-brillante);
  padding: 2rem;
  border-radius: var(--vis-borde-suave);
  box-shadow: var(--vis-sombra-profunda);
  border-left: 5px solid var(--vis-color-acento-solido);
}

.vis-expert-stat-card h4 {
  font-size: 1.2rem;
  margin-top: 0.5rem;
  color: var(--vis-texto-oscuro);
}

/* --- RESERVE / BOOKING PAGE SPECIFICS --- */
.vis-seccion-reserva {
  padding: 8dvh 2rem;
  background: var(--vis-fondo-principal);
}

.vis-contenedor-reserva {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 4rem;
}

.vis-reserva-info {
  position: sticky;
  top: 120px;
  height: max-content;
}

.vis-decoracion-reserva h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.vis-puntos-lista {
  margin-top: 2rem;
  list-style: none;
}

.vis-pto-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 1.5rem;
}

.vis-pto-num {
  background: var(--vis-gradiente-acento);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.vis-bloque-formulario {
  background: var(--vis-superficie-brillante);
  padding: 3rem;
  border-radius: var(--vis-borde-suave);
  box-shadow: var(--vis-sombra-profunda);
}

.vis-formularios-titulo {
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.vis-grupo-entrada {
  margin-bottom: 1.5rem;
}

.vis-grupo-entrada label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.vis-entrada-control {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.vis-entrada-control:focus {
  outline: none;
  border-color: var(--vis-color-acento-solido);
}

.vis-checkbox-politica {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 1.5rem 0;
}

.vis-checkbox-politica input {
  margin-top: 4px;
}

.vis-boton-submit {
  width: 100%;
  padding: 1rem;
  background: var(--vis-gradiente-acento);
  border: none;
  border-radius: var(--vis-borde-suave);
  color: var(--vis-texto-oscuro);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--vis-sombra-hover);
  transition: transform 0.3s ease;
}

.vis-boton-submit:hover {
  transform: translateY(-2px);
}

.vis-enlace-correo {
  display: block;
  text-align: center;
  margin-top: 1.5rem;
  color: var(--vis-color-acento-solido);
  font-weight: 500;
}

/* FAQ SECTION ACCORDION */
.vis-seccion-faq {
  max-width: 900px;
  margin: 6rem auto 0;
  padding: 0 2rem;
}

.vis-faq-item {
  background: var(--vis-superficie-brillante);
  margin-bottom: 1rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.vis-faq-titulo {
  padding: 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  background-color: #fafbfb;
  border-bottom: 1px solid #f0f0f0;
}

.vis-faq-contenido {
  padding: 1.5rem;
  color: var(--vis-texto-tenue);
  font-size: 0.95rem;
}

/* --- LEGAL PAGES SPECIFICS --- */
.vis-pagina-legal {
  padding: 8dvh 2rem;
  background: var(--vis-superficie-brillante);
  min-height: 80vh;
}

.vis-contenedor-legal {
  max-width: 800px;
  margin: 0 auto;
}

.vis-legal-titulo {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.vis-legal-subtitulo {
  font-size: 1.5rem;
  margin: 1.5rem 0 1rem;
}

.vis-legal-texto {
  color: var(--vis-texto-tenue);
  margin-bottom: 1.5rem;
}

/* --- THANK YOU PAGE SPECIFICS --- */
.vis-gracias-cuerpo {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  background-image: linear-gradient(rgba(15, 32, 39, 0.9), rgba(44, 83, 100, 0.9)), url('img/bg3.webp');
  background-size: cover;
  background-position: center;
  color: var(--vis-texto-claro);
  text-align: center;
}

.vis-caja-gracias {
  max-width: 600px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  padding: 4rem 3rem;
  border-radius: var(--vis-borde-suave);
  border: 1px solid rgba(255,255,255,0.2);
}

.vis-caja-gracias svg {
  width: 80px;
  height: 80px;
  margin-bottom: 2rem;
  fill: none;
  stroke: #38ef7d;
  stroke-width: 2;
}

.vis-gracias-titulo {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.vis-gracias-texto {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  color: #cfd8dc;
}

/* --- FOOTER --- */
.vis-pie-pagina {
  background: #0f2027;
  color: rgba(255,255,255,0.7);
  padding: 4rem 2rem 2rem;
}

.vis-contenedor-pie {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.vis-pie-superior {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 2rem;
}

.vis-pie-enlaces {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.vis-pie-enlaces a:hover {
  color: var(--vis-color-acento-solido);
}

.vis-disclaimer-pie {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.5;
}

.vis-copy-pie {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.3);
}

/* --- COOKIE BANNER --- */
.vis-banner-galletas {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--vis-texto-oscuro);
  color: var(--vis-texto-claro);
  padding: 1.5rem 2rem;
  z-index: 9999;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.2);
  display: none;
}

.vis-banner-interior {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.vis-banner-interior p {
  font-size: 0.9rem;
}

.vis-banner-interior p a {
  color: var(--vis-color-acento-solido);
  text-decoration: underline;
}

.vis-banner-botones {
  display: flex;
  gap: 1rem;
}

.vis-btn-cookies {
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-family: var(--font-display);
  border: none;
  cursor: pointer;
}

.vis-btn-cookies-aceptar {
  background: var(--vis-gradiente-acento);
  color: var(--vis-texto-oscuro);
}

.vis-btn-cookies-declinar {
  background: transparent;
  color: var(--vis-texto-claro);
  border: 1px solid rgba(255,255,255,0.3);
}

/* --- VIEWPORT ENTRY SCROLL ANIMATION --- */
.vis-animar-entrada {
  animation: vis-deslizar-arriba 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) both;
  animation-timeline: view();
  animation-range: entry 10% entry 40%;
}

@keyframes vis-deslizar-arriba {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- MEDIA QUERIES --- */
@media (max-width: 992px) {
  .vis-pista-deslizante {
    grid-template-columns: 1fr;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    display: flex;
    padding-bottom: 1rem;
  }
  
  .vis-tarjeta-deslizante {
    scroll-snap-align: center;
    min-width: 85vw;
  }
  
  .vis-rejilla-caracteristicas {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .vis-linea-procesos {
    flex-direction: column;
    gap: 3rem;
  }
  
  .vis-linea-procesos::before {
    display: none;
  }
  
  .vis-expert-rejilla {
    flex-direction: column;
  }
  
  .vis-contenedor-reserva {
    grid-template-columns: 1fr;
  }
  
  .vis-reserva-info {
    position: static;
  }
}

@media (max-width: 768px) {
  .vis-etiqueta-burguer {
    display: flex;
  }
  
  .vis-menu-lista {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0f2027;
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  }
  
  .vis-toggle-menu:checked ~ .vis-menu-lista {
    display: flex;
  }
  
  .vis-toggle-menu:checked ~ .vis-etiqueta-burguer span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .vis-toggle-menu:checked ~ .vis-etiqueta-burguer span:nth-child(2) {
    opacity: 0;
  }
  
  .vis-toggle-menu:checked ~ .vis-etiqueta-burguer span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
  
  .vis-rejilla-caracteristicas {
    grid-template-columns: 1fr;
  }
  
  .vis-contenedor-cta {
    flex-direction: column;
    text-align: center;
  }
  
  .vis-expert-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .vis-banner-interior {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
}