﻿/* Variables globales */
:root {
  --color-primary: #035f68;
  --color-secondary: #54bbc9;
  --color-gray: #c6c6c6;
  --color-light-gray: #f5f5f5;
  --color-white: #ffffff;
  --color-black: #333333;
  --font-primary: 'Montserrat', sans-serif;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 16px rgba(0,0,0,0.1);
  --border-radius: 8px;
  --slide-title-bg-alpha: 0.82;       /* fondo verde title: 0 = transparente, 1 = sólido */
  --slide-title-bg-white-alpha: 0.82; /* fondo blanco title (invertido): 0 = transparente, 1 = sólido */
  --slide-text-bg-alpha: 0.75;        /* fondo verde text: 0 = transparente, 1 = sólido */
  --slide-text-bg-white-alpha: 0.75;  /* fondo blanco text (invertido): 0 = transparente, 1 = sólido */
}

/* Reset y estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--color-black);
  background-color: var(--color-white);
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
}

/* Contenedor principal */
.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header y NavegaciÃ³n */
header {
  background-color: var(--color-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 60px;
  width: auto;
}

.menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.menu a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.menu a:hover {
  color: var(--color-secondary);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* SecciÃ³n de ContrataciÃ³n Online */
.contratacion-online {
  padding: 8rem 1rem 2rem 1rem;
}

.page-home .contratacion-online {
  padding: 2rem 1rem 2rem 1rem;
  background-color: var(--color-light-gray);
  overflow: hidden;
}

.contratacion-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: url('family.jpg') center/cover;
  border-radius: var(--border-radius);
  padding: 3rem 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

/* Overlay claro */
.contratacion-grid::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.5); /* Overlay blanco semi-transparente */
  border-radius: var(--border-radius);
  z-index: 1;
}

/* Asegurar que el contenido estÃ© por encima del overlay */
.contratacion-grid > * {
  position: relative;
  z-index: 2;
}

/* Grid para página institucional (sin background de imagen) */
.caja-contenido-neutro-grid,
.caja-contenido-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem 2rem;
  border-radius: var(--border-radius);
}

/* Columna izquierda - Hero y contenido */
.c-izq {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Columna derecha - Formulario */
.c-der {
  position: relative;
}

/* Contenido del hero */
.hero-content {
  position: relative;
}

.hero-subtitle {
  color: var(--color-black);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  line-height: 1.4;
  font-weight: 500;
}

.hero-title {
  color: var(--color-primary);
  font-size: 2.5rem;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.hero-title .highlight {
  color: var(--color-secondary);
  display: inline;
  font-weight: 600;
}

.pasos-container {
  background: rgba(3, 95, 104, 0.7); /* Color primario semi-transparente */
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  color: var(--color-white);
}

.pasos {
  list-style-position: outside;
  margin: 0 0 1.5rem 1.2rem;
}

.pasos li {
  margin-bottom: 1rem;
  color: var(--color-white);
  padding-left: 0.5rem;
  line-height: 1.4;
}

.pasos strong {
  color: var(--color-white);
  font-weight: 600;
}

.nota {
  font-size: 0.95rem;
  color: var(--color-white);
  opacity: 0.9;
  margin: 0;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.2);
}

/* Estilos responsive mejorados */
@media (max-width: 1024px) {
  .contratacion-grid,
  .caja-contenido-neutro-grid,
  .caja-contenido-grid {
    gap: 2rem;
    padding: 2rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  /* Reset de paddings para aprovechar todo el ancho */
  .contratacion-online {
    padding: 0;
    padding-top: 3rem; /* Espacio suficiente para que no tape el header sticky */
  }

  .container {
    padding: 0;
  }

  .contratacion-grid,
  .caja-contenido-neutro-grid,
  .caja-contenido-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    padding: 2rem 0;
    background-position: center bottom;
    border-radius: 0;
    box-shadow: none;
  }

  .hero-content {
    padding: 0 1rem;
    padding-top: 2rem; /* Padding adicional arriba para evitar que el menú tape el texto */
    max-width: 100%;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  .hero-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }

  .pasos-container {
    padding: 1.5rem;
    margin: 1rem;
    max-width: none;
    border-radius: var(--border-radius);
    background: rgba(3, 95, 104, 0.7); /* Color primario semi-transparente */
  }

  .pasos {
    text-align: left;
    margin-left: 1.5rem;
  }

  .pasos li {
    font-size: 0.95rem;
  }

  /* Ajustes para el CTA en mobile */
  .contacto-cta {
    padding: 1.5rem 1rem;
  }

  .contacto-cta h4 {
    font-size: 1.1rem;
  }

  .cta-btn {
    padding: 0.9rem 1.2rem;
    font-size: 0.95rem;
  }

  /* Ajustes para el formulario en mobile */
  .formulario-modern {
    padding: 1.5rem 1rem;
    border-radius: 0;
    box-shadow: none;
  }

  .form-row,
  .form-row:has(.fg-wide) {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .form-footer-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .recaptcha {
    transform: scale(0.82);
    transform-origin: left center;
  }
}

@media (max-width: 480px) {
  .contratacion-grid,
  .caja-contenido-neutro-grid,
  .caja-contenido-grid {
    padding: 1.5rem 0;
  }

  .hero-content {
    padding: 0 0.8rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .pasos-container {
    padding: 1.2rem 0.8rem;
  }

  /* Ajustes adicionales para pantallas muy pequeÃ±as */
  .pasos {
    margin-left: 1.2rem;
  }

  .form-group {
    margin-bottom: 1rem;
  }
}

/* Tabla de Servicios - Mejorada para mobile */
.tabla-servicios {
  padding: 2rem 0;
  background-color: var(--color-light-gray);
  overflow-x: hidden;
}

.tabla-servicios h2 {
  text-align: center;
  color: var(--color-primary);
  margin-bottom: 2rem;
  font-size: 2rem;
  padding: 0 1rem;
}

.tabla {
  background-color: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  margin: 0 auto;
  max-width: 1200px;
  width: 95%;
}

/* Estilo base para todas las filas */
.fila {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  border-bottom: 1px solid var(--color-gray);
  transition: background-color 0.3s ease;
}

/* Cabecera de la tabla */
.cabecera {
  background-color: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 1;
}

.cabecera .columna {
  text-align: center;
  padding: 1rem;
  font-weight: 600;
}

/* Columnas */
.columna {
  flex: 1;
  padding: 1rem;
  text-align: center;
  min-width: 120px;
}

.col-servicio {
  flex: 2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary);
  font-weight: 500;
  text-align: left;
}

.col-servicio i {
  color: var(--color-secondary);
  font-size: 1.2rem;
  min-width: 24px;
}

/* Estilos alternados para filas */
.fila:nth-child(even) {
  background-color: rgba(84, 187, 201, 0.05);
}

.fila:hover {
  background-color: rgba(84, 187, 201, 0.1);
}

/* Indicadores visuales */
.columna i.fa-check {
  color: var(--color-secondary);
  font-size: 1.2rem;
}

.columna p {
  margin: 0;
  font-size: 0.9rem;
}

/* Leyenda de la tabla */
.tabla-leyenda {
  margin-top: 1rem;
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-black);
}

/* Formulario */
.formulario-modern {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 1.5rem;
  background-color: rgba(3, 95, 104, 0.7); /* Color primario semi-transparente */
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

/* Estilos para la cartelera */
.cartelera-wrapper {
  margin-top: 2rem;
}

.cartel-card {
  background: rgba(3, 95, 104, 0.7);
  border-radius: var(--border-radius);
  padding: 1.5rem;
}

.cartel-content {
  color: var(--color-white);
}

.cartel-title {
  color: var(--color-white);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.cartel-text {
  color: var(--color-white);
  margin-bottom: 0.8rem;
  line-height: 1.5;
}

.cartel-contact {
  color: var(--color-white);
  font-size: 0.95rem;
}

.cartel-link {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.cartel-link:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.cartel-link-whatsapp {
  font-weight: 500;
}

/* CTA Afiliate — botón pulsante */
.cta-afiliate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  width: fit-content;
  max-width: 400px;
  margin: 1.2rem auto 0;
}

.cta-afiliate-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 2.4rem;
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  color: var(--color-white);
  font-size: 1.15rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  letter-spacing: 0.03em;
  box-shadow: 0 6px 24px rgba(3, 95, 104, 0.45);
  animation: cta-heartbeat 2.4s ease-in-out infinite;
  z-index: 1;
  transition: box-shadow 0.3s ease;
}

.cta-afiliate-btn i {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Dos anillos sonar que se expanden hacia afuera */
.cta-afiliate-btn::before,
.cta-afiliate-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50px;
  border: 2px solid var(--color-secondary);
  animation: cta-sonar 2.4s ease-out infinite;
  pointer-events: none;
}

.cta-afiliate-btn::after {
  animation-delay: 1.2s;
}

.cta-afiliate-btn:hover {
  text-decoration: none;
  color: var(--color-white);
  box-shadow: 0 10px 32px rgba(3, 95, 104, 0.6);
  animation-play-state: paused;
}

.cta-afiliate-btn:hover::before,
.cta-afiliate-btn:hover::after {
  animation-play-state: paused;
}

.cta-afiliate-sub {
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0;
  padding-left: 0.4rem;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.6);
  white-space: normal;
  max-width: 100%;
  overflow-wrap: break-word;
}

@keyframes cta-heartbeat {
  0%, 100% { transform: scale(1); }
  12%       { transform: scale(1.05); }
  24%       { transform: scale(1.02); }
  36%       { transform: scale(1.07); }
  55%       { transform: scale(1); }
}

@keyframes cta-sonar {
  0%   { transform: scale(1);    opacity: 0.65; }
  100% { transform: scale(1.7);  opacity: 0; }
}

/* --- Grid de filas del formulario --- */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1rem;
  margin-bottom: 0.5rem;
}

/* Nombre: ocupa 3 partes; Edad: 1 parte */
.form-row:has(.fg-wide) {
  grid-template-columns: 3fr 1fr;
}

.form-group {
  margin-bottom: 0;
}

.form-group label,
.form-group legend {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--color-white);
  font-weight: 500;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.38rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-black);
  transition: border-color 0.2s, box-shadow 0.2s;
}

/* Edad: limita ancho visual pero acepta cualquier longitud */
.fg-narrow input {
  max-width: 100%;
}

.form-group select option {
  background-color: var(--color-white);
  color: var(--color-black);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 2px rgba(84, 187, 201, 0.25);
  background: rgba(255, 255, 255, 0.98);
}

/* Grupo Familiar compacto */
fieldset.form-group.fg-familiar {
  border: none;
  padding: 0;
  margin: 0;
}

fieldset.form-group.fg-familiar legend {
  float: none;
  width: auto;
  padding: 0;
  margin-bottom: 0.2rem;
}

.familiar-inline {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.1rem;
  padding: 0.38rem 0.55rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
}

.familiar-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.familiar-inline label {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  color: var(--color-white);
  font-size: 0.88rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  margin: 0;
}

.familiar-label {
  color: rgba(255,255,255,0.75);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}


/* Fila inferior: reCAPTCHA + botón */
.form-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.recaptcha {
  filter: grayscale(0.2) brightness(0.9);
  transform: scale(0.88);
  transform-origin: left center;
}

.btn-enviar {
  background-color: var(--color-white);
  color: var(--color-primary);
  padding: 0.6rem 1.6rem;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-enviar:hover {
  background-color: var(--color-secondary);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(84, 187, 201, 0.4);
}

/* Footer */
footer {
  background-color: transparent;
  color: var(--color-white);
  padding: 0;
  text-align: left;
}

footer .footer-logo img {
  height: 50px;
  margin-bottom: 1.5rem;
  filter: brightness(0) invert(1);
}

footer p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 0.9rem;
  opacity: 0.9;
}

footer a {
  color: var(--color-white);
  text-decoration: underline;
}

/* Animaciones */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .tabla {
    width: 100%;
    margin: 0;
    border-radius: 0;
  }

  .columna {
    padding: 0.8rem;
  }
}

@media (max-width: 768px) {
  .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    flex-direction: column;
    text-align: center;
  }

  .menu.show {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .contratacion-grid,
  .caja-contenido-neutro-grid,
  .caja-contenido-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .c-izq h2, .c-der h2 {
    font-size: 2rem;
  }

  /* Estilos responsive para la tabla */
  .tabla-servicios {
    padding: 1rem 0;
  }

  .tabla {
    box-shadow: none;
  }

  .fila {
    position: relative;
    padding: 1rem 0;
    border-bottom: 2px solid var(--color-gray);
  }

  .cabecera {
    display: none; /* Ocultamos la cabecera en mÃ³vil */
  }

  .columna {
    flex: 100%;
    padding: 0.5rem 1rem;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .columna::before {
    content: attr(data-title);
    font-weight: 600;
    color: var(--color-primary);
    padding-right: 1rem;
  }

  .col-servicio {
    background-color: rgba(84, 187, 201, 0.1);
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: var(--border-radius);
  }

  .col-servicio::before {
    display: none;
  }

  .columna i.fa-check {
    margin-left: auto;
  }

  .checkbox-group {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .tabla-servicios h2 {
    font-size: 1.5rem;
  }

  .col-servicio {
    font-size: 0.9rem;
  }

  .columna {
    font-size: 0.85rem;
  }

  .columna::before {
    min-width: 120px;
  }
}

/* WhatsApp Button */
.button {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.button:hover {
  background-color: var(--color-secondary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.button img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

/* SecciÃ³n de Contacto */
.contacto-section {
  background: var(--color-light-gray);
  padding: 4rem 0;
}

.contacto-content {
  max-width: 1000px;
  margin: 0 auto;
}

.contacto-header {
  text-align: center;
  margin-bottom: 3rem;
}

.contacto-header h2 {
  color: var(--color-primary);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contacto-descripcion {
  font-size: 1.2rem;
  color: var(--color-black);
  opacity: 0.8;
}

.contacto-opciones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 0 1rem;
}

.contacto-card {
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contacto-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.contacto-card i {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.contacto-card h3 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.contacto-card p {
  color: var(--color-black);
  opacity: 0.8;
  margin-bottom: 1rem;
}

.contacto-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.contacto-link:hover {
  color: var(--color-secondary);
}

.whatsapp-button {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background-color: #25D366;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.whatsapp-button:hover {
  background-color: #128C7E;
  transform: translateY(-2px);
}

.whatsapp-button img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* =================================
   Footer - Diseño moderno y elegante
   ================================= */
.footer {
  background: linear-gradient(180deg, var(--color-primary) 0%, #024650 100%);
  color: var(--color-white);
  padding: 0;
}

/* Footer Top - Información de contacto y enlaces */
.footer-top {
  padding: 4rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-top .row {
  padding: 0 2rem;
}

.footer-top h6 {
  color: var(--color-secondary);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
  position: relative;
  display: inline-block;
}

.footer-top h6::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-secondary), transparent);
}

/* Contenedor del mapa */
.map-container {
  max-width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  border: 3px solid rgba(84, 187, 201, 0.3);
  transition: all 0.3s ease;
}

.map-container:hover {
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.35);
  border-color: rgba(84, 187, 201, 0.6);
  transform: translateY(-2px);
}

/* Mapa con estilo moderno */
.footer-top iframe {
  display: block;
  width: 100%;
}

/* Información de contacto del footer */
.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-contact-info p {
  margin-bottom: 0;
  color: var(--color-white);
  font-size: 0.95rem;
  line-height: 1.6;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-contact-info p i {
  color: var(--color-secondary);
  font-size: 1rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.footer-contact-info p a {
  color: var(--color-white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact-info p a:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}

/* Columna de contacto */
.footer-top p {
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  line-height: 1.6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.footer-top p i {
  color: var(--color-secondary);
  font-size: 1.1rem;
  min-width: 20px;
}

.footer-top p strong {
  color: var(--color-secondary);
  font-size: 1rem;
  display: block;
  margin-top: 0.5rem;
  letter-spacing: 0.3px;
}

.footer-top a {
  color: var(--color-white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-top a:hover {
  color: var(--color-secondary);
}

/* Footer Bottom - Logo y superintendencia */
.footer-bottom {
  padding: 2.5rem 2rem;
  background: rgba(0, 0, 0, 0.2);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  align-items: center;
  padding: 0 2rem;
}

.footer-brand {
  text-align: center;
}

.footer-logo {
  margin-bottom: 1.2rem;
}

.footer-logo img {
  height: 70px;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}

.footer-logo img:hover {
  transform: scale(1.05);
}

.footer-copyright {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.98);
  opacity: 1;
  margin: 0;
}

/* Enlaces útiles */
.footer .usefull-link ul { 
  padding: 0; 
  margin: 0; 
  list-style: none; 
  column-count: 2; /* distribuir en 2 columnas */
  column-gap: 1.5rem;
}

.footer .usefull-link ul li { 
  margin-bottom: 0.7rem; 
  break-inside: avoid; /* evita que un item se parta entre columnas */
}

.footer .usefull-link ul li a { 
  color: var(--color-white); 
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer .usefull-link ul li a i {
  color: var(--color-secondary);
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.footer .usefull-link ul li a:hover { 
  color: var(--color-secondary); 
  transform: translateX(5px);
}

.footer .usefull-link ul li a:hover i {
  transform: translateX(3px);
}

/* Responsive: una columna en pantallas pequeñas */
@media (max-width: 767px) {
  .footer .usefull-link ul {
    column-count: 1;
    column-gap: 0;
  }
}

.footer-info {
  text-align: center;
}

.superintendencia-info {
  max-width: 500px;
  margin: 0 auto;
}

.superintendencia-info p {	
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.96);
  opacity: 1;
}

.contacto-super {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.contacto-super span,
.contacto-super a {
  color: rgba(255,255,255,0.97);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 0.98rem;
  font-weight: 500;
  transition: all 0.18s ease;
}

.contacto-super i {
  color: var(--color-secondary);
  font-size: 1.1rem;
}

.contacto-super a:hover {
  color: var(--color-secondary);
  transform: translateX(3px);
}

/* Forzar mayor contraste en la sección de Superintendencia */
.footer-bottom .superintendencia-info,
.footer-bottom .superintendencia-info p,
.footer-bottom .superintendencia-info p strong {
  color: rgba(255,255,255,0.98) !important;
}

.footer-bottom .superintendencia-info p strong {
  font-weight: 700;
  letter-spacing: 0.2px;
}

/* =================================
   CTA Empresas - Botón de Cotización
   ================================= */
.cta-empresas-container {
  margin: 4rem auto 2rem auto;
  text-align: center;
  max-width: 800px;
}

.btn-cta-empresas {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.2rem 2.5rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: var(--color-white);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  box-shadow: 0 6px 25px rgba(3, 95, 104, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-cta-empresas::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.btn-cta-empresas:hover::before {
  left: 100%;
}

.btn-cta-empresas:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(3, 95, 104, 0.45);
  color: var(--color-white);
}

.btn-cta-empresas i:first-child {
  font-size: 1.3rem;
}

.btn-cta-empresas i:last-child {
  font-size: 1rem;
  transition: transform 0.4s ease;
}

.btn-cta-empresas:hover i:last-child {
  transform: translateX(5px);
}

.btn-cta-empresas:active {
  transform: translateY(-1px);
  box-shadow: 0 5px 20px rgba(3, 95, 104, 0.3);
}

/* Tarjetas informativas (Marco Normativo) */
.hero-cta .card-policy {
  background: linear-gradient(135deg, rgba(5,90,95,0.95), rgba(10,120,125,0.95));
  color: var(--color-white);
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(3,95,104,0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.policy-card { text-decoration: none; }

.card-policy .policy-icon { font-size: 2.2rem; margin-bottom: 0.6rem; color: var(--color-secondary); }
.card-policy .policy-title { font-size: 1.15rem; margin-bottom: 0.45rem; color: rgba(255,255,255,0.98); }
.card-policy .policy-desc { font-size: 0.9rem; color: rgba(255,255,255,0.92); }

.policy-card:focus, .policy-card:hover { transform: translateY(-6px); }

@media (max-width: 991px) { .hero-cta .card-policy { padding: 1.6rem; } }
@media (max-width: 767px) { .hero-cta .card-policy { padding: 1.2rem; } }

/* Responsive adjustments */
@media (max-width: 768px) {
  .contacto-section {
    padding: 3rem 0;
  }

  .contacto-header h2 {
    font-size: 2rem;
  }

  .contacto-descripcion {
    font-size: 1.1rem;
  }

  .contacto-opciones {
    gap: 1.5rem;
  }

  .contacto-card {
    padding: 1.5rem;
  }

  .btn-cta-empresas {
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  .footer-top {
    padding: 3rem 1.5rem;
  }

  .footer-top .row {
    padding: 0 1rem;
  }

  .footer-top h6::after {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 60px;
  }

  .footer-bottom {
    padding: 2rem 1.5rem;
  }

  .footer-content {
    gap: 2.5rem;
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .footer-brand {
    text-align: center;
  }

  .superintendencia-info {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .contacto-header h2 {
    font-size: 1.8rem;
  }

  .contacto-card {
    padding: 1.2rem;
  }

  .whatsapp-button {
    width: 100%;
    justify-content: center;
  }

  .btn-cta-empresas {
    padding: 0.9rem 1.5rem;
    font-size: 0.95rem;
    gap: 0.7rem;
  }

  .btn-cta-empresas span {
    font-size: 0.9rem;
  }

  .footer-top {
    padding: 2.5rem 1rem;
  }

  .footer-top .row {
    padding: 0 0.5rem;
  }

  .footer-top h6 {
    font-size: 1rem;
  }

  .footer-top p {
    font-size: 0.9rem;
  }

  .footer-bottom {
    padding: 1.5rem 1rem;
  }

  .footer-content {
    padding: 0 0.5rem;
  }

  .footer-logo img {
    height: 55px;
  }

  .footer-copyright {
    font-size: 0.85rem;
  }

  .superintendencia-info p {
    font-size: 0.85rem;
  }

  .contacto-super {
    gap: 0.6rem;
  }

  .contacto-super span,
  .contacto-super a {
    font-size: 0.85rem;
  }
}

/* =======================================================
   Timeline - Layout y estilos completos (responsive)
   RestauraciÃ³n: aÃ±ade maquetado de chips, lÃ­nea central
   y alternancia desktop + comportamiento de acordeÃ³n
   ======================================================= */
.timeline-section {
  padding: 2.25rem 1rem;
  max-width: 1100px;
  margin: 0 auto 2.5rem auto;
}

.timeline {
  position: relative;
  display: block;
  margin-top: 1rem;
}

/* Vertical line for desktop will be centered via transform */
.timeline-line {
  position: absolute;
  left: 44px; /* mobile position */
  top: 0;
  bottom: 0;
  width: 4px;
  background: rgba(84,187,201,0.15);
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  padding-left: 140px; /* space for chip/dot on mobile - increased for longer text */
  margin-bottom: 2.25rem;
}

.timeline-chip {
  position: absolute;
  left: 0;
  top: 0.1rem;
  background: var(--color-white);
  color: var(--color-primary);
  border: 1px solid rgba(3,95,104,0.08);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.3;
  min-width: 80px;
  display: inline-block;
}

.timeline-dot {
  position: absolute;
  left: 60px; /* centered relative to chip */
  top: 1.05rem;
  width: 14px;
  height: 14px;
  background: var(--color-secondary);
  border: 3px solid var(--color-white);
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.timeline-content {
  background: transparent;
}

.timeline-title {
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.timeline-desc {
  color: var(--color-black);
  opacity: 0.95;
  margin: 0 0 0.5rem 0;
}

/* Toggle button styles - Botones de la línea de tiempo */
.timeline-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  margin-top: 1rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: var(--color-white);
  border: none;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 15px rgba(3, 95, 104, 0.25);
}

.timeline-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(3, 95, 104, 0.35);
  background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
}

.timeline-toggle:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(3, 95, 104, 0.2);
}

.timeline-toggle .toggle-label {
  font-weight: 600;
  letter-spacing: 0.3px;
}

.timeline-toggle .toggle-icon {
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.timeline-toggle .toggle-icon svg {
  width: 14px;
  height: 14px;
}

.timeline-toggle[aria-expanded="true"] .toggle-icon {
  transform: rotate(180deg);
}

/* Desktop: center line and alternate sides */
@media (min-width: 900px) {
  .timeline {
    padding: 1.5rem 0;
  }

  .timeline-line {
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    background: rgba(3,95,104,0.08);
  }

  .timeline-item {
    display: grid;
    grid-template-columns: 1fr 130px 1fr;
    align-items: start;
    padding: 0;
    margin-bottom: 2.75rem;
  }

  .timeline-chip { top: 0; }

  /* position chip & dot in the central column */
  .timeline-chip,
  .timeline-dot {
    position: static;
    left: auto;
    grid-column: 2;
    justify-self: center;
    align-self: start;
  }

  /* Place content left or right depending on odd/even */
  .timeline-item:nth-child(odd) .timeline-content { grid-column: 1; text-align: right; padding-right: 2rem; }
  .timeline-item:nth-child(odd) .timeline-title { text-align: right; }

  .timeline-item:nth-child(even) .timeline-content { grid-column: 3; text-align: left; padding-left: 2rem; }

  /* Place the chip pill centered in the middle column */
  .timeline-chip { 
    display: inline-block; 
    transform: none; 
    margin-top: 0.15rem;
    min-width: 100px;
    max-width: 130px;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
  }
}

/* Small improvement for very narrow screens */
@media (max-width: 420px) {
  .timeline-chip { 
    font-size: 0.75rem; 
    padding: 0.3rem 0.5rem;
    min-width: 90px;
    max-width: 110px;
  }
  .timeline-dot { left: 55px; }
  .timeline-item {
    padding-left: 120px;
  }
  
  .timeline-toggle {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
}

/* Ensure accordion transitions remain smooth */
.timeline-desc {
  max-height: 5.8rem; /* compact preview (~4 lines) */
  overflow: hidden;
  transition: max-height 420ms cubic-bezier(.2,.9,.3,1);
}

.timeline-content.expanded .timeline-desc {
  max-height: 2000px;
}

/* =================================
   Botón flotante de WhatsApp
   ================================= */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  text-decoration: none;
  animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Botón circular principal */
.btn-wsp {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  transition: all 0.3s ease;
  position: relative;
  animation: pulse 2s infinite;
}

/* Animación de pulso sutil */
@keyframes pulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35), 0 0 0 0 rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35), 0 0 0 12px rgba(37, 211, 102, 0);
  }
}

.btn-wsp i {
  font-size: 32px;
  color: #fff;
}

/* Etiqueta de texto - posicionada arriba del botón */
.whatsapp-float p {
  position: absolute;
  bottom: 70px;
  right: 0;
  margin: 0;
  padding: 8px 14px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 20px;
  box-shadow: 0 3px 12px rgba(3, 95, 104, 0.25);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s ease;
  pointer-events: none;
}

/* Mostrar etiqueta en hover */
.whatsapp-float:hover p {
  opacity: 1;
  transform: translateY(0);
}

/* Hover del botón */
.whatsapp-float:hover .btn-wsp {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.45);
  animation: none; /* Detener pulso en hover */
}

/* Botón Back to Top */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 110px;
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
}

#back-to-top a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: var(--color-white);
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(3, 95, 104, 0.25);
  transition: all 0.3s ease;
}

#back-to-top a i {
  font-size: 20px;
}

#back-to-top a span {
  font-size: 0.65rem;
  font-weight: 600;
  margin-top: -2px;
}

#back-to-top a:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 5px 20px rgba(3, 95, 104, 0.35);
}

/* Responsive para botones flotantes */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    gap: 8px;
  }

  .btn-wsp {
    width: 55px;
    height: 55px;
  }

  .btn-wsp i {
    font-size: 28px;
  }

  .whatsapp-float p {
    font-size: 0.85rem;
    padding: 8px 12px;
  }

  #back-to-top {
    bottom: 90px;
    right: 20px;
  }

  #back-to-top a {
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 480px) {
  /* En pantallas muy pequeñas, ocultar etiqueta por defecto */
  .whatsapp-float p {
    display: none;
  }

  .whatsapp-float {
    bottom: 15px;
    right: 15px;
  }

  .btn-wsp {
    width: 50px;
    height: 50px;
  }

  .btn-wsp i {
    font-size: 26px;
  }

  #back-to-top {
    bottom: 80px;
    right: 15px;
  }

  #back-to-top a {
    width: 42px;
    height: 42px;
  }

  #back-to-top a i {
    font-size: 18px;
  }

  #back-to-top a span {
    font-size: 0.6rem;
  }
}

/* ── Topbar slim ──────────────────────────────────────────── */
:root { --topbar-height: 24px; }

.topbar-slim {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  background-color: #f0f2f3;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-bottom: 1px solid #e0e3e5;
}
.topbar-slim-inner {
  padding-right: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.topbar-slim-link {
  background-color: #ffffff;
  color: var(--color-primary);
  font-family: var(--font-primary);
  font-size: 0.7rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.04em;
  padding: 3px 12px;
  border-radius: 3px;
  transition: background-color 0.2s, color 0.2s;
}
.topbar-slim-link:hover {
  background-color: var(--color-primary);
  color: #ffffff;
  text-decoration: none;
}

/* ══════════════════════════════════════════════════════════════
   Hero Slider
   ══════════════════════════════════════════════════════════════ */

/* Full-bleed: cancela el padding: 0.9rem del body */
.hero-slider {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 520px;
  margin-top: -0.9rem;
  margin-left: -0.9rem;
  overflow: hidden;
  z-index: 1;
}

/* ── Track y slides ── */
.slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slider .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}

.hero-slider .slide.active {
  opacity: 1;
  pointer-events: auto;
}

/* Imagen de fondo con leve zoom al activarse */
.hero-slider .slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.06);
  transition: transform 7s ease;
}

.hero-slider .slide.active .slide-bg {
  transform: scale(1);
}

/* Overlay eliminado — imagen en color natural */
.slide-overlay {
  display: none;
}

/* ── Contenido del slide ── */
.slide-content {
  position: absolute;
  bottom: 14%;
  left: 7%;
  max-width: 560px;
  color: #fff;
  z-index: 2;
}

.slide-box {
  display: inline-flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.4rem 1.8rem;
  border-radius: 14px;
  max-width: 100%;
}

.slide-box.verde {
  background-color: rgba(3, 95, 104, var(--slide-title-bg-alpha));
  color: #fff;
}

.slide-box.invertido {
  background-color: rgba(255, 255, 255, var(--slide-title-bg-white-alpha));
  color: var(--color-primary);
}

.slide-pretitle {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}

.slide-pretitle:empty {
  display: none;
}

.slide-title {
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-secondary);
}

.slide-text {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.6;
  opacity: 0.9;
}

.slide-legal {
  font-size: clamp(0.65rem, 1vw, 0.75rem);
  line-height: 1.4;
  opacity: 0.7;
}

.slide-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.slide-btn {
  display: inline-block;
  padding: 0.7rem 1.8rem;
  border-radius: 50px;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  background-color: var(--color-secondary);
  color: #fff;
  border: 2px solid var(--color-secondary);
}

.slide-btn:hover {
  background-color: #fff;
  color: var(--color-primary);
  border-color: #fff;
  transform: translateY(-2px);
}

.slide-btn-outline {
  background-color: transparent;
  border-color: rgba(255,255,255,0.8);
  color: #fff;
}

.slide-btn-outline:hover {
  background-color: #fff;
  color: var(--color-primary);
  border-color: #fff;
}

/* ── Flechas ── */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

.slider-prev { left: 1.5%; }
.slider-next { right: 1.5%; }

.slider-arrow:hover {
  opacity: 0.75;
}

/* ── Dots ── */
.slider-dots {
  position: absolute;
  right: 2%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 10;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.7);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  background: #fff;
  border-color: #fff;
  transform: scale(1.25);
}

/* ── Navbar semi-transparente sobre el hero ── */
.navbar {
  transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.navbar--over-hero {
  background-color: rgba(255, 255, 255, 0.40) !important;
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  box-shadow: none !important;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-slider {
    height: 88vh;
    min-height: 420px;
  }

  .slide-content {
    left: 5%;
    right: 5%;
    bottom: 12%;
    max-width: none;
  }

  .slide-box {
    padding: 1rem 1.2rem;
    gap: 0.6rem;
  }

  .slide-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .slider-arrow {
    display: none; /* navegación por swipe en mobile */
  }
}

/* ══════════════════════════════════════════════════════════════
   Planes Cards — acceso rápido a los 4 planes
   ══════════════════════════════════════════════════════════════ */

.planes-cards-section {
  position: relative;
  z-index: 2;
  margin-top: -4rem;
  padding: 0 1rem 3rem;
}

.planes-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  max-width: 1160px;
  margin: 0 auto;
}

.plan-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: #fff;
  border-radius: 14px;
  padding: 2.2rem 1.4rem 1.8rem;
  text-decoration: none;
  color: var(--color-black);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.10);
  border: 1px solid rgba(3, 95, 104, 0.08);
  transition: box-shadow 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
}

.plan-card:hover,
.plan-card:focus {
  box-shadow: 0 10px 36px rgba(3, 95, 104, 0.22);
  border-color: rgba(84, 187, 201, 0.45);
  color: var(--color-primary);
  text-decoration: none;
  animation: plan-heartbeat 0.75s ease forwards;
}

.plan-card-icon {
  font-size: 2.6rem;
  color: var(--color-secondary);
  margin-bottom: 1rem;
  line-height: 1;
  transition: color 0.3s ease;
}

.plan-card:hover .plan-card-icon,
.plan-card:focus .plan-card-icon {
  color: var(--color-primary);
}

.plan-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 0.35rem;
  line-height: 1.3;
  color: inherit;
}

.plan-card-sub {
  font-size: 0.82rem;
  color: #999;
  text-align: center;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.plan-card:hover .plan-card-sub,
.plan-card:focus .plan-card-sub {
  color: var(--color-secondary);
}

/* Latido: doble pulso al hacer hover */
@keyframes plan-heartbeat {
  0%   { transform: scale(1); }
  15%  { transform: scale(1.04); }
  30%  { transform: scale(1.01); }
  45%  { transform: scale(1.07); }
  70%  { transform: scale(0.99); }
  100% { transform: scale(1); }
}

@media (max-width: 992px) {
  .planes-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }
}

@media (max-width: 576px) {
  .planes-cards-section {
    margin-top: -2.5rem;
    padding-bottom: 2rem;
  }
  .planes-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
  }
  .plan-card {
    padding: 1.6rem 0.9rem 1.3rem;
  }
  .plan-card-icon {
    font-size: 2rem;
  }
  .plan-card-title {
    font-size: 0.95rem;
  }
}

/* ══════════════════════════════════════════════════════════════
   Planes Page — sección principal en planes.html
   ══════════════════════════════════════════════════════════════ */

.planes-page-section {
  padding: 5rem 1rem 4rem;
  background: var(--color-light-gray);
}

.planes-page-header {
  text-align: center;
  margin-bottom: 2.8rem;
}

.planes-page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.planes-page-header p {
  font-size: 1rem;
  color: #777;
}

/* Cards con descripción + CTA */
.plan-card--page {
  padding: 2.4rem 1.6rem 2rem;
}

.plan-card-desc {
  font-size: 0.88rem;
  color: #777;
  text-align: center;
  line-height: 1.55;
  margin: 0.5rem 0 1.4rem;
  flex-grow: 1;
  transition: color 0.3s ease;
}

.plan-card:hover .plan-card-desc,
.plan-card:focus .plan-card-desc {
  color: #555;
}

.plan-card-cta {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.plan-card:hover .plan-card-cta,
.plan-card:focus .plan-card-cta {
  background: var(--color-secondary);
  box-shadow: 0 4px 12px rgba(84, 187, 201, 0.35);
}
