/* ============================= */
/* VARIABLES GLOBALES DE COLORES */
/* ============================= */
:root {
    --rojo: #e74c3c;
    --amarillo: #f1c40f;
    --naranja: #e67e22;
    --verde: #2ecc71;
    --gris: #2c3e50;
    --blanco: #e0e5eb;
}

/* ============================= */
/* ESTILOS GENERALES */
/* ============================= */
body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f7f9fa;
}

/* ============================= */
/* NAVBAR Y MENÚ */
/* ============================= */
.navbar {
    background: linear-gradient(45deg, #023047, #0056b3, #56ccf2);
    color: white;
}

.navbar-brand,
.nav-link {
    color: rgb(238, 231, 228) !important;
    font-weight: 500;
}

/* Animación de entrada en los enlaces del menú */
@keyframes fadeSlide {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.navbar-nav .nav-link {
    animation: fadeSlide 0.5s ease-in-out forwards;
    transition: all 0.3s ease-in-out;
    color: rgb(152, 30, 30); /* Color predeterminado */
}

.navbar-nav .nav-link:hover {
    color: var(--blanco);
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    padding: 5px 10px;
}

/* ============================= */
/* ANIMACIONES GENERALES */
/* ============================= */
@keyframes vibracion-ligera {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* Animación de hover en enlaces */
.animated-link:hover {
    animation: vibracion-ligera 0.3s ease-in-out;
}

/* Animación en el botón de menú hamburguesa */
.animated-button {
    transition: all 0.3s ease-in-out;
}

.animated-button:hover {
    transform: rotate(90deg);
}

.animated-button:focus {
    transform: scale(1.2);
}

/* ============================= */
/* SECCIÓN HERO */
/* ============================= */
/* --- Hero Slider: Fondo animado --- */
.hero {
    position: relative;
    overflow: hidden;
  }
  
  .hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Para que el contenido quede sobre las imágenes */
  }
  
  .hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fade 12s linear infinite;
  }
  
  /* Ajustamos el retardo para cada slide */
  .hero-slide:nth-child(1) {
    animation-delay:   0s;
  }
  
  .hero-slide:nth-child(2) {
    animation-delay:   4s;
  }
  
  .hero-slide:nth-child(3) {
    animation-delay:   8s;
  }
  
  /* Keyframes para el efecto fade in/out */
  @keyframes fade {
    0%   { opacity: 0; }
    15%  { opacity: 1; }
    33%  { opacity: 1; }
    48%  { opacity: 0; }
    100% { opacity: 0; }
  }
  
/* ============================= */
/* SECCIONES GENERALES */
/* ============================= */
.section {
    padding: 60px 20px;
}

.card {
    border: none;
    border-radius: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.2);
}

/* ============================= */
/* ANIMACIONES Y EFECTOS EN ICONOS */
/* ============================= */
@keyframes latido {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.icono-seguridad,
.red-social {
    animation: latido 3s infinite alternate ease-in-out;
    transition: transform 0.3s, text-shadow 0.3s;
}

.icono-seguridad:hover,
.red-social:hover {
    transform: scale(1.2);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* ============================= */
/* ANIMACIONES DE IMÁGENES */
/* ============================= */
@keyframes desplazamiento {
    0% { transform: translateX(100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

.animar {
    animation: desplazamiento 2s ease-in-out;
}

.grayscale {
    filter: grayscale(100%);
    transition: transform 0.3s, filter 0.3s;
}

.grayscale:hover {
    transform: scale(1.2);
    filter: grayscale(0%);
}

/* ============================= */
/* FOOTER MEJORADO */
/* ============================= */
.footer {
    background: linear-gradient(45deg, #023047, #0056b3, #56ccf2);
    color: white;
    padding: 10px 10px;
    position: relative;
    overflow: hidden;
    align-items: center;
    
}

/* Animación de fondo del footer */
.footer::before,
.footer::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    z-index: 0;
    animation: floatingDiagonal 6s infinite alternate ease-in-out;
}

.footer::before {
    top: -100px;
    left: -100px;
}

.footer::after {
    bottom: -100px;
    right: -100px;
    animation-delay: 3s;
}

@keyframes floatingDiagonal {
    0%, 100% { transform: translate(-20px, -20px) scale(1); opacity: 0.5; }
    50% { transform: translate(20px, 20px) scale(1.2); opacity: 0.6; }
}

.footer-content {
    position: relative;
    z-index: 1;
    text-align: center;
    align-items: center;
}

.footer h2 {
    font-size: 24px;
    margin-bottom: 15px;
    text-transform: uppercase;
    animation: glow 2s infinite alternate;
}

.footer h5 {
    font-size: 20px;
    margin-bottom: 15px;
    text-transform: uppercase;
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 10px #56ccf2, 0 0 20px #ffffff, 0 0 30px #8ecae6; }
    to { text-shadow: 0 0 15px #ffffff, 0 0 30px #56ccf2, 0 0 40px #219ebc; }
}

/* Contenedor del Marquee */
.marquee-container {
    overflow: hidden;
    position: relative;
    width: 100%;
  }
  
  /* Contenido del Marquee: animación lineal continua */
  .marquee-content {
    display: flex;
    align-items: center;
    width: calc(200%); /* Debido a la duplicación del contenido */
    animation: marquee 30s linear infinite;
  }
  
  /* Efecto modernizado para las imágenes en el marquee */
  .marquee-item {
    flex: 0 0 auto;
    margin-right: 10px;
    cursor: pointer;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
  }
  
  /* Efecto hover: zoom, aumento de brillo y sombra */
  .marquee-item:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  }
  
  /* Pausar la animación cuando se pase el ratón sobre el contenedor */
  .marquee-container:hover .marquee-content {
    animation-play-state: paused;
  }
  
  /* Keyframes para la animación marquee */
  @keyframes marquee {
    from {
      transform: translateX(0);
    }
    to {
      transform: translateX(-50%);
    }
  }
  

   /* ubicacion */
  .ubicacion-destacada {
    margin-top: 30px;
    text-align: center;
    animation: pulse 2s infinite;
  }
  
  .ubicacion-destacada a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: bold;
    color: #1e3c72;
    background: #e0f2f1;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s;
  }
  
  .ubicacion-destacada a:hover {
    transform: scale(1.05);
  }
  
  .ubicacion-destacada i {
    font-size: 2rem;
    color: #e63946;
  }
  
  @keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
  }
  
  