/* =============================
   GlobeXplore - Estilos Base
============================= */

/* =============================
   Fuentes y variables
============================= */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Oswald:wght@200..700&family=Poppins:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  --color-primario: #003B73;
  --color-primario-light: #0253a0;
  --color-secundario: #F97316;
  --color-secundario-light: #fb8c41;
  --color-terciario: #166534;
  --color-gris: #6B7280;
  --color-blanco: #F9FAFB;
  --color-texto: #333333;

  --sombra-suave: 0 5px 15px rgba(0, 0, 0, 0.1);
  --sombra-media: 0 8px 30px rgba(0, 0, 0, 0.12);
  --sombra-botones: 0 4px 6px rgba(0, 0, 0, 0.1);

  --fuente-titulos: 'Oswald', sans-serif;
  --fuente-ui: 'Poppins', sans-serif;
  --fuente-parrafos: 'Open Sans', sans-serif;

  --transicion-rapida: all 0.3s ease;
  --transicion-media: all 0.5s ease;
}

/* =============================
   Estilos globales
============================= */

body {
  font-family: var(--fuente-parrafos);
  color: var(--color-texto);
  overflow-x: hidden;
  background-color: var(--color-blanco);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--fuente-titulos);
  font-weight: 600;
}

/* Botones */

.btn {
  font-family: var(--fuente-ui);
  font-weight: 500;
  border-radius: 4px;
  padding: 0.6rem 1.2rem;
  transition: var(--transicion-rapida);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--sombra-botones);
}

.btn-primary {
  background-color: var(--color-secundario);
  border-color: var(--color-secundario);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--color-secundario-light);
  border-color: var(--color-secundario-light);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--color-primario);
  border-color: var(--color-primario);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: var(--color-primario-light);
  border-color: var(--color-primario-light);
  transform: translateY(-2px);
}

.btn-outline-light:hover {
  transform: translateY(-2px);
}

/* =============================
   Hero Section
============================= */

.hero {
  position: relative;
  height: 100vh;
  background: url('../img/header-bg.jpeg') center / cover no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 59, 115, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 1rem;
  color: var(--color-blanco);
  max-width: 650px;
}

.hero-badge {
  display: inline-block;
  background-color: var(--color-secundario);
  color: #fff;
  font-family: var(--fuente-ui);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 1rem;
  border-radius: 2rem;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--color-blanco);
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  opacity: 0.95;
}

.hero-buttons .btn {
  margin-top: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
}

/* =============================
   Navbar
============================= */

.navbar {
  background-color: #000000a6;
  transition: var(--transicion-rapida);
  padding: 1rem 0;  /* altura inicial */
  height: 10rem;    /* altura inicial */
  z-index: 10;
}

.navbar.scroll {
  background-color: #000000e5;
  padding: 0.5rem 0;
  box-shadow: var(--sombra-suave);
  height: 6rem; /* altura reducida */
  transition: var(--transicion-rapida);
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.navbar-brand img {
  transition: var(--transicion-rapida);
}

.navbar.scroll .navbar-brand img {
  transform: scale(0.6);
  transition: var(--transicion-rapida);
}

/* Aseguramos que los elementos dentro de la navbar se ajusten correctamente */
#mainNavbar .container {
  height: 100%;
  transition: var(--transicion-rapida);
}

/* Ajustamos la posición vertical de los elementos al cambiar la altura */
.navbar-nav {
  transition: var(--transicion-rapida);
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
  transition: var(--transicion-rapida);
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

.navbar-nav {
  align-items: center;
}

.navbar-nav .nav-link {
  font-family: var(--fuente-ui);
  font-weight: 500;
  color: var(--color-blanco);
  margin: 0 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: var(--transicion-rapida);
  position: relative;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--color-secundario);
  transition: var(--transicion-rapida);
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 80%;
}

.navbar-nav .nav-link:hover {
  transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
  color: var(--color-secundario);
  font-weight: 600;
}



/* =============================
   Section Styles
============================= */

section {
  padding: 5rem 0;
}

.section-title {
  font-family: var(--fuente-titulos);
  color: var(--color-primario);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--color-secundario);
}

.section-subtitle {
  font-family: var(--fuente-parrafos);
  color: var(--color-gris);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

/* =============================
   Responsive
============================= */

@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .navbar-collapse {
    background-color: var(--color-primario);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    margin: 0.25rem 0;
  }

  .navbar-nav .nav-link::after {
    display: none;
  }

  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    transform: none;
  }

  .navbar.scroll {
    height: 10rem; /* Altura inicial */
  }
  
  .navbar-brand img,
  .navbar.scroll .navbar-brand img {
    max-height: 5rem; /* Tamaño fijo del logo */
    transform: none; /* Eliminamos cualquier transformación */
    transition: none; /* Desactivamos las transiciones */
  }
  
  .navbar-brand {
    margin: 0; /* Centramos el logo */
  }
}

@media (max-width: 768px) {
  .hero-content {
    text-align: center;
    margin: 0 auto;
  }

  .hero-buttons .btn {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
  }
}

/* =============================
   Mejoras para menú hamburguesa 
============================= */

@media (max-width: 992px) {
  /* Mejoras visuales para el menú desplegado */
  .navbar-collapse {
    position: fixed;
    top: 0;
    right: -280px; /* Oculto inicialmente fuera de la pantalla */
    width: 280px;
    height: 100vh;
    background-color: var(--color-primario);
    padding: 2rem 1.5rem;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease;
    z-index: 1050;
    overflow-y: auto;
  }
  
  /* Cuando está abierto el menú */
  .navbar-collapse.show {
    right: 0;
  }
  
  /* Ajustes para elementos del menú */
  .navbar-nav {
    margin-top: 3rem;
  }
  
  .navbar-nav .nav-item {
    width: 100%;
    margin-bottom: 0.75rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    color: var(--color-blanco);
    font-size: 1.1rem;
    border-left: 3px solid transparent;
  }
  
  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 3px solid var(--color-secundario);
    transform: none;
  }
  
  /* Efecto overlay cuando el menú está abierto */
  .navbar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
  }
  
  .navbar-overlay.show {
    display: block;
  }
  
  /* Mejorar botón cerrar */
  .navbar-toggler.close-menu {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--color-blanco);
    font-size: 1.5rem;
    padding: 0.5rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: none;
  }
  
  .navbar-collapse.show .navbar-toggler.close-menu {
    display: block;
  }
  
  /* Añadir iconos a enlaces de móvil */
  .navbar-nav .nav-link i {
    display: inline-block !important;
    margin-right: 10px;
  }
  
  /* Ajustar botones de acción en móvil */
  .navbar-collapse .d-flex {
    flex-direction: column;
    width: 100%;
    margin-top: 2rem;
  }
  
  .navbar-collapse .d-flex a.btn {
    display: block !important;
    width: 100%;
    margin-bottom: 1rem;
    text-align: center;
  }
  
  .navbar-collapse .d-flex a.text-white {
    display: none !important;
  }
}

/* =============================
   Modal de Video 
============================= */

.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transicion-media);
}

.video-modal.active {
  opacity: 1;
  visibility: visible;
}

.video-container {
  position: relative;
  width: 80%;
  max-width: 1000px;
  background: #000;
  box-shadow: var(--sombra-media);
  border-radius: 8px;
  overflow: hidden;
}

.video-container video {
  width: 100%;
  display: block;
}

.close-video {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transicion-rapida);
  z-index: 10;
}

.close-video:hover {
  background-color: var(--color-secundario);
  transform: scale(1.1);
}

.play-pause {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-progress {
  flex-grow: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.3);
  margin: 0 15px;
  border-radius: 5px;
  cursor: pointer;
  overflow: hidden;
}

.progress-bar {
  background: var(--color-secundario);
  height: 100%;
  width: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .video-container {
    width: 95%;
  }
}
/* =============================
  Swiper Styles
============================= */

/* Asegurarse de que todas las tarjetas tengan la misma altura */
.mySwiper .card {
  display: flex;
  flex-direction: column;  /* Distribuir contenido de manera vertical */
  height: 100%;  /* Ocupa todo el espacio disponible */
  min-height: 350px;  /* Establece una altura mínima para todas las tarjetas */
  overflow: hidden;  /* Evita que el contenido se desborde */
}

/* Hacer que el contenido de la tarjeta crezca para ocupar el espacio restante */
.mySwiper .card-body {
  flex-grow: 1;  /* Hace que el contenido se estire para llenar el espacio restante */
  display: flex;
  flex-direction: column; /* Asegura que los elementos estén en columna */
  justify-content: space-between; /* Separa los elementos para aprovechar el espacio */
}

/* Controlar la altura de las imágenes para que todas tengan el mismo tamaño */
.mySwiper .card-img-top {
  height: 45vh;  /* Establece una altura fija para las imágenes */
  object-fit: cover;  /* Ajusta la imagen sin distorsionarla */
}

/* Asegurarse de que el texto de la tarjeta tenga el mismo comportamiento */
.mySwiper .card-text {
  flex-grow: 1;  /* Permite que el texto crezca pero no afecte el tamaño de la tarjeta */
  overflow: hidden;  /* Evita que el texto se desborde */
  text-overflow: ellipsis;  /* Muestra "..." si el texto es muy largo */
}

/* =============================
   Tu próxima historia Section
============================= */

.next-story-section {
  background-color: var(--color-primario);
  padding: 6rem 0;
  position: relative;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1); /* sombra sutil más visible con fondo oscuro */
}


.next-story-section .card {
  background-color: #ffffff;
  color: var(--color-texto);
}

/* Ajuste de títulos sobre fondo oscuro */
.next-story-section .section-title {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.next-story-section .section-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

/* Ajuste para el subrayado del h3 */
.next-story-section h3.fs-4::after {
  background-color: #ffffff;
}

/* Ajuste de enlaces */
.next-story-section .col-lg-4 a {
  color: #ffffff;
}

.next-story-section .col-lg-4 .row .col-12:nth-child(1) a:hover {
  color: var(--color-secundario) !important;
}

.next-story-section .col-lg-4 .row .col-12:nth-child(2) a:hover {
  color: var(--color-primario-light) !important;
}

/* Imagen grande: Fiordos Noruegos */
.next-story-section .col-lg-8 .position-relative img {
  border: 4px solid white; /* Borde más grueso */
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.6); /* Sombra más intensa */
  border-radius: 10px; /* Bordes redondeados */
}

/* Imagen de Tokio */
.next-story-section .col-lg-4 .row .col-12:nth-child(1) img {
  border: 4px solid white; /* Borde más grueso */
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.6); /* Sombra más intensa */
  border-radius: 10px; /* Bordes redondeados */
}

/* Imagen de Selva Amazónica */
.next-story-section .col-lg-4 .row .col-12:nth-child(2) img {
  border: 4px solid white; /* Borde más grueso */
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.6); /* Sombra más intensa */
  border-radius: 10px; /* Bordes redondeados */
}

.btn-glow {
  background-color: #ffffff;
  color: var(--color-primario);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  border: 2px solid transparent;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-glow:hover {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

/* =============================
   Lo Que Nos Hace Únicos Section
============================= */

.features-section {
  background-color: #f8f9fa;
  position: relative;
  overflow: hidden;
}

.feature-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: var(--sombra-suave);
  padding: 2rem;
  height: 100%;
  transition: var(--transicion-rapida);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sombra-media);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: var(--color-primario);
  color: white;
  border-radius: 50%;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 59, 115, 0.2);
}

.feature-card h3 {
  font-family: var(--fuente-titulos);
  font-weight: 600;
  color: var(--color-primario);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.feature-card p {
  font-family: var(--fuente-parrafos);
  color: var(--color-texto);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Valores */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.value-item {
  background-color: rgba(0, 59, 115, 0.05);
  padding: 1rem;
  border-radius: 6px;
  transition: var(--transicion-rapida);
}

.value-item:hover {
  background-color: rgba(0, 59, 115, 0.1);
}

.value-badge {
  display: inline-block;
  font-family: var(--fuente-ui);
  font-weight: 600;
  color: var(--color-primario);
  border-bottom: 2px solid var(--color-secundario);
  padding-bottom: 0.25rem;
  margin-bottom: 0.5rem;
}

.value-item p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Garantía */
.guarantee-items.new-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.guarantee-item {
  background-color: #f8f9fa;
  border-radius: 12px;
  padding: 1.2rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.guarantee-item:hover {
  background-color: rgba(0, 59, 115, 0.1);
}

.guarantee-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.guarantee-header i {
  font-size: 1.5rem;
  color: var(--color-secundario-light);
}

.guarantee-header span {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-texto);
  font-family: var(--fuente-ui);
}

.guarantee-item p {
  font-size: 0.95rem;
  color: #555;
  margin: 0;
}

/* Equipo */
.team-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.5rem 0;
}

.team-stat {
  text-align: center;
  flex: 1;
  min-width: 80px;
}

.stat-number {
  display: block;
  font-family: var(--fuente-titulos);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--color-secundario);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  display: block;
  font-family: var(--fuente-ui);
  font-size: 0.85rem;
  color: var(--color-gris);
}

/* Experiencia */
.experience-counter {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.counter-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px dashed rgba(0, 59, 115, 0.2);
}

.counter-item:last-child {
  border-bottom: none;
}

.counter-number {
  font-family: var(--fuente-titulos);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--color-primario);
  margin-right: 1rem;
  min-width: 70px;
}

.counter-label {
  font-family: var(--fuente-parrafos);
  color: var(--color-texto);
}

/* Testimonios */
.testimonial-card {
  background: linear-gradient(135deg, var(--color-primario) 0%, var(--color-primario-light) 100%);
  color: white;
}

.testimonial-card h3,
.testimonial-card a {
  color: white;
}

.testimonial-text {
  font-family: var(--fuente-parrafos);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1rem;
  border-left: 3px solid var(--color-secundario);
  color: var(--color-blanco)!important;
}

.author-rating {
  margin-bottom: 0.5rem;
  color: var(--color-secundario);
}

.author-name {
  font-family: var(--fuente-ui);
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--color-blanco) !important;
}

.author-trip {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-bottom: 0;
  color: var(--color-blanco) !important;
}

/* Banner de prensa */
.press-banner {
  background-color: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: var(--sombra-suave);
}

.press-banner p {
  font-family: var(--fuente-ui);
  font-weight: 500;
  color: var(--color-gris);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.press-logos {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.press-logo {
  height: 40px;
  opacity: 0.7;
  transition: var(--transicion-rapida);
  filter: grayscale(100%);
}

.press-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* Estilo para los feature cards con diferentes colores de acento */
.team-card .feature-icon {
  background-color: var(--color-terciario);
}

.experience-card .feature-icon {
  background-color: var(--color-secundario);
}

.testimonial-card .feature-icon {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--color-secundario);
}

/* Media queries */
@media (max-width: 992px) {
  .values-grid,
  .guarantee-items {
    grid-template-columns: 1fr;
  }
  
  .team-stats {
    justify-content: center;
  }
  
  .press-logos {
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .feature-card {
    padding: 1.5rem;
  }
  
  .feature-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }
  
  .feature-card h3 {
    font-size: 1.25rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .counter-number {
    font-size: 1.2rem;
    min-width: 60px;
  }
  
  .press-logo {
    height: 30px;
  }
}

/* =============================
   Footer
============================= */
.footer {
  font-family: var(--fuente-parrafos);
  background: linear-gradient(135deg, rgba(0, 59, 115, 0.9) 0%, rgba(0, 0, 0, 0.8) 100%);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--color-secundario);
}

.footer-logo {
  font-family: var(--fuente-titulos);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--color-secundario);
  transition: var(--transicion-rapida);
}

.footer h5 {
  font-family: var(--fuente-titulos);
  color: var(--color-secundario);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
}

.footer h5::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 40px;
  height: 2px;
  background-color: var(--color-secundario-light);
}

.footer-links li {
  padding: 5px 0;
}

.footer a.footer-link {
  color: var(--color-blanco);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.5rem;
  transition: var(--transicion-rapida);
  font-size: 0.95rem;
  position: relative;
}

.footer a.footer-link:hover {
  color: var(--color-secundario-light);
  transform: translateX(5px);
}

.footer-icon {
  color: var(--color-blanco);
  font-size: 1rem;
  transition: var(--transicion-media);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
}

.footer-icon:hover {
  color: var(--color-blanco);
  background-color: var(--color-secundario);
  transform: translateY(-3px);
  box-shadow: var(--sombra-botones);
}

.footer-newsletter .form-control {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-blanco);
}

.footer-newsletter .form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.footer-newsletter .form-control:focus {
  box-shadow: none;
  border-color: var(--color-secundario-light);
}

.footer-newsletter .btn-secondary {
  background-color: var(--color-secundario);
  border-color: var(--color-secundario);
  font-family: var(--fuente-ui);
  font-weight: 500;
  transition: var(--transicion-rapida);
}

.footer-newsletter .btn-secondary:hover {
  background-color: var(--color-secundario-light);
  border-color: var(--color-secundario-light);
  transform: translateY(-2px);
}

.footer hr {
  opacity: 0.2;
}

.footer-legal a {
  margin-right: 1.5rem;
  font-size: 0.85rem;
}

.footer-legal a:last-child {
  margin-right: 0;
}

@media (max-width: 767px) {
  .footer h5::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-links li {
    text-align: center;
  }
  
  .social-icons {
    justify-content: center;
  }
  
  .footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  
  .footer-legal a {
    margin-right: 0;
    margin-bottom: 5px;
  }
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  width: 3.75rem;
  height: 3.75rem;
  bottom: 1.875rem;
  right: 1.875rem;
  background-color: #25d366;
  color: var(--color-blanco);
  border-radius: 50%;
  text-align: center;
  font-size: 1.875rem;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: var(--sombra-botones);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Botón de scroll hacia arriba */
.scroll-top-btn {
  position: fixed;
  bottom: 1.875rem;
  left: 1.875rem;
  width: 2.8125rem;
  height: 2.8125rem;
  border-radius: 50%;
  background-color: var(--color-primario);
  color: var(--color-blanco);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  z-index: 99;
  box-shadow: var(--sombra-botones);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Animación de aparición/desaparición */
.whatsapp-float,
.scroll-top-btn {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.show-btn {
  opacity: 1;
  visibility: visible;
}

.whatsapp-float.show-btn,
.scroll-top-btn.show-btn {
  opacity: 1;
  visibility: visible;
}

/* Responsive para móviles */
@media (max-width: 767.98px) {
  .whatsapp-float {
    width: 3.125rem;
    height: 3.125rem;
    right: 1.25rem;
    bottom: 1.25rem;
    font-size: 1.5rem;
  }

  .scroll-top-btn {
    left: 1.25rem;
    bottom: 1.25rem;
    width: 2.5rem;
    height: 2.5rem;
  }
}

/* Animación pulse para WhatsApp */
@keyframes pulse-whatsapp {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Animación pulse para scroll-top (color primario) */
@keyframes pulse-scroll {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 var(--color-secundario);
  }
  70% {
    transform: scale(1.08);
    box-shadow: 0 0 0 12px rgba(0, 59, 115, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 59, 115, 0);
  }
}

/* WhatsApp Button con animaciones */
.whatsapp-float {
  animation: pulse-whatsapp 2.5s infinite, fadeInUp 1s ease forwards;
  animation-delay: 0s, 0.5s;
}

/* Scroll to Top Button con animaciones */
.scroll-top-btn {
  animation: pulse-scroll 3s infinite, fadeInUp 1s ease forwards;
  animation-delay: 0s, 0.5s;
}
