/* ===== GENERAL ===== */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding-top: 70px; /* deja espacio para el header fijo */
    background-color: #f8f9fa;
    scroll-behavior: smooth; /* scroll suave */
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center; /* centra el contenido */
    align-items: center;
    gap: 60px; /* separación entre logo y menú */
    padding: 18px 40px;
    background-color: #004a99;
    color: white;
    border-bottom: 4px solid #ffffff; /* línea decorativa blanca */
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease-in-out;
}

header.scrolled {
    background-color: #003b7d; /* tono más oscuro al hacer scroll */
    padding: 12px 35px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* Controla el ancho del contenido */
.container {
  max-width: 1140px; /* más elegante tipo diseño premium */
}
/* Logo */
.navbar-brand {
  font-weight: 700;
  font-size: 1.3rem;
}

/* Menú */
.navbar-nav {
  align-items: center;
}

/* ===== LOGO Y TEXTO ===== */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-container img {
    height: 55px;
    margin-right: 12px;
}

.logo-text {
    font-size: 1.6em;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 1px;
}

/* ===== MENÚ DE NAVEGACIÓN ===== */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 30px;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05em;
    position: relative;
    transition: all 0.3s ease-in-out;
}

/* Línea animada blanca debajo del enlace */
nav ul li a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    left: 0;
    bottom: -4px;
    background-color: #ffffff;
    transition: width 0.3s ease-in-out;
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a:hover {
    color: #ffffff;
    transform: scale(1.05);
}

/* ===== NAVBAR PRO ===== */

.navbar {
  background-color: #004a99;
  padding: 15px 0; /* 🔥 elimina padding lateral */
}
.navbar-nav .nav-link {
  position: relative;
  color: #ffffff !important;
  font-weight: 500;
  margin: 0 10px;
  padding: 8px 5px;
  transition: all 0.3s ease;
}

/* Línea animada */
.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: #ffffff;
  transition: width 0.3s ease;
}

/* Hover */
.navbar-nav .nav-link:hover::after {
  width: 100%;
}

.navbar-nav .nav-link:hover {
  transform: translateY(-2px);
  color: #ffffff !important;
}

/* ACTIVO (cuando estás en la sección) */
.navbar-nav .nav-link.active::after {
  width: 100%;
}

/* Efecto suave al pasar */
.navbar-nav .nav-link:focus {
  outline: none;
}

.navbar-nav .nav-link:hover {
  letter-spacing: 0.5px;
}









.services, .news {
    padding: 50px 20px;
    text-align: center;
}


footer {
    background-color: #004a99;
    color: white;
    text-align: center;
    padding: 20px;
}

.izquierda{
    text-align: left;
}

/* Estilos hover */


.div{ 
    transform: scale(1.05);
    transition: color 0.3s ease-in-out; /* Aumenta el tamaño en un 5% */
}

/* ===== EFECTO HOVER EN SERVICE-ITEM ===== */
.service-item {
    background-color: white;
    color: #18191a;
    transition: all 0.4s ease-in-out;
}




/* Estilos normales de la lista */
.valores-lista li {
    list-style: none;
    margin: 8px 0;
}

.valores-lista a {
    color: #004a99;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease-in-out;
}

/* ===== EFECTO DE ENTRADA DEL MODAL (fade + zoom) ===== */
.modal.fade .modal-dialog {
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.modal.fade.show .modal-dialog {
    transform: scale(1);
    opacity: 1;
}

/* ===== GALERÍA CARRUSEL ===== */
.galeria {
  background-color: #ffffff;
  padding: 70px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.galeria h2 {
  color: #004a99;
  font-size: 2.2em;
  font-weight: 700;
  margin-bottom: 10px;
}

.galeria h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: #004a99;
  margin: 10px auto 20px auto;
  border-radius: 2px;
}

.descripcion-galeria {
  color: #444;
  max-width: 700px;
  margin: 0 auto 50px auto;
  font-size: 1.1em;
  line-height: 1.6;
}

/* ===== GALERÍA CARRUSEL CORREGIDO ===== */
/* ===== GALERÍA MULTI-IMAGEN ===== */
.galeria {
  background-color: #ffffff;
  padding: 70px 20px;
  text-align: center;
}

.galeria h2 {
  color: #004a99;
  font-size: 2em;
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.galeria h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: #004a99;
  margin: 8px auto 20px auto;
  border-radius: 2px;
}

.descripcion-galeria {
  color: #444;
  max-width: 700px;
  margin: 0 auto 40px auto;
  font-size: 1.05em;
  line-height: 1.5;
}

/* Carrusel */
#carouselGaleria {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
  background-color: #f9f9f9;
}

.galeria-img {
  width: 250px;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 74, 153, 0.2);
}

.galeria-img:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(0, 74, 153, 0.35);
  cursor: pointer;
}

/* Controles */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0, 74, 153, 0.8);
  padding: 15px;
  border-radius: 50%;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
  background-color: #004a99;
}

/* Responsivo */
@media (max-width: 992px) {
  .galeria-img {
    width: 200px;
    height: 140px;
  }
}

@media (max-width: 768px) {
  .galeria-img {
    width: 160px;
    height: 120px;
  }
}

@media (max-width: 576px) {
  .galeria-img {
    width: 90%;
    height: 200px;
  }
}
/* ===== UBICACIÓN GRANDE ===== */
.ubicacion {
  background-color: #f9f9f9;
  padding: 100px 20px;
  text-align: center;
}

.ubicacion h2 {
  color: #004a99;
  font-size: 2.4em;
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.ubicacion h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  background-color: #004a99;
  margin: 10px auto 25px auto;
  border-radius: 2px;
}

.descripcion-ubicacion {
  color: #444;
  max-width: 800px;
  margin: 0 auto 50px auto;
  font-size: 1.15em;
  line-height: 1.6;
}

/* Contenedor del mapa - ancho completo */
.mapa-container {
  position: relative;
  width: 95%;          /* ocupa casi todo el ancho visible */
  max-width: 1400px;   /* límite en pantallas grandes */
  margin: 0 auto;
  border: 5px solid #004a99;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Mapa más alto y vistoso */
.mapa-container iframe {
  width: 100%;
  height: 650px;       /* antes 550px */
  border: none;
}

/* Responsivo */
@media (max-width: 992px) {
  .mapa-container iframe {
    height: 500px;
  }
}

@media (max-width: 768px) {
  .mapa-container iframe {
    height: 400px;
  }
}
/* ===== COLORES CORPORATIVOS ===== */
:root {
  --azul: #004a99;
  --azul-oscuro: #00366e;
  --blanco: #ffffff;
  --gris-claro: #f4f6fb;
}

/* ===== NUESTROS ALIADOS ===== */
#aliados {
  background-color: var(--blanco);
  padding: 80px 20px;
}

#aliados h2 {
  color: var(--azul);
  font-size: 2.3em;
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

#aliados h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  background-color: var(--azul);
  margin: 10px auto 25px auto;
  border-radius: 2px;
}

#aliados p {
  color: #555;
  max-width: 750px;
  margin: 0 auto 40px auto;
  font-size: 1.1em;
}

/* Tarjetas Aliados */
.aliado-card {
  width: 150px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gris-claro);
  border-radius: 10px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.aliado-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(0, 74, 153, 0.18);
  background: linear-gradient(180deg, #ffffff, #e6f0ff);
}
.aliado-logo {
  max-width: 120px;
  max-height: 70px;
  object-fit: contain;
}

/* Botón */
.btn-aliado {
  background-color: var(--azul);
  border: none;
  color: var(--blanco);
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}
.btn-aliado:hover {
  background-color: var(--azul-oscuro);
  transform: translateY(-3px);
}

/* ===== INFORMACIÓN / ESTADÍSTICAS ===== */
#info {
  background: linear-gradient(180deg, var(--gris-claro), var(--blanco));
  padding: 80px 20px;
  text-align: center;
}

#info h2 {
  color: var(--azul);
  font-weight: 700;
  font-size: 2.3em;
  margin-bottom: 20px;
}

.info-card {
  border-radius: 12px;
  background: var(--blanco);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.info-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 74, 153, 0.18);
}

.info-icon {
  font-size: 32px;
  color: var(--azul);
  margin-bottom: 10px;
}

.info-number {
  color: var(--azul);
  font-weight: 800;
  font-size: 2.4em;
}

.info-text {
  color: #444;
  font-weight: 600;
}

/* ===== BOTONES Y TEXTOS BOOTSTRAP ===== */
.text-primary { color: var(--azul) !important; }

.btn-primary {
  background-color: var(--azul) !important;
  border-color: var(--azul) !important;
}
.btn-primary:hover {
  background-color: var(--azul-oscuro) !important;
  border-color: var(--azul-oscuro) !important;
}

/* ===== FONDOS ===== */
.bg-light {
  background-color: var(--gris-claro) !important;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 575px) {
  .aliado-card { width: 120px; height: 80px; }
  .aliado-logo { max-width: 100px; max-height: 56px; }
  .info-number { font-size: 2em; }
}

/* ===== SERVICIOS ===== */
#servicios {
  background: #f4f6fb;
}

#servicios h2 {
  color: #004a99;
  font-weight: 700;
  position: relative;
}

#servicios h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  background-color: #004a99;
  margin: 10px auto 25px auto;
  border-radius: 2px;
}

/* ===== SERVICIOS PRO ===== */
.service-card {
  background-color: #ffffff;
  border-radius: 15px;
  transition: all 0.35s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* Hover elegante */
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 74, 153, 0.2);
  background-color: #004a99;
}

/* ICONO */
.service-card:hover .service-icon {
  transform: scale(1.2);
  color: #ffffff;
}

/* TITULO */
.service-card:hover h5 {
  color: #ffffff !important;
}

/* TEXTO */
.service-card:hover p {
  color: #e0e0e0 !important;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.05);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover::before {
  opacity: 1;
}

@media (max-width: 768px) {
  .service-icon {
    font-size: 2rem;
  }

  .service-card {
    padding: 10px;
  }
}

/* Icono base */
.service-icon {
  font-size: 2.5rem;
  color: #004a99;
  transition: all 0.3s ease;
}

.service-icon {
  font-size: 2.5rem;
  color: #004a99;
}
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  border-radius: 50%;
  width: 65px;
  height: 65px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float img {
  width: 38px;
  height: 38px;
}



@media (max-width: 576px) {
  .d-flex.gap-3 {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .btn-hero {
    padding: 10px 20px;
  }
}

/* ===== NOTICIAS MEJORADO ===== */
.news {
    padding: 80px 20px;
    text-align: center;
    background-color: #ffffff;
}

.news h2 {
    color: #004a99;
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 40px; /* 🔥 más espacio debajo del título */
    position: relative;
    display: inline-block;
}

/* Línea decorativa */
.news h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: #004a99;
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Contenedor */
.news-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px; /* 🔥 separación entre tarjetas */
}

/* Tarjetas */
.news-item {
    flex: 1 1 300px;
    max-width: 350px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 74, 153, 0.15);
}

/* Imagen */
.news-item img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* Título */
.news-item h3 {
    color: #004a99;
    font-size: 1.3em;
    margin-bottom: 10px;
}

/* Texto */
.news-item p {
    color: #555;
    font-size: 0.95em;
}

.titulo-seccion {
  color: #004a99;
  font-size: 2.2em;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.titulo-seccion::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: #004a99;
  margin: 10px auto 0;
  border-radius: 2px;
}

/* ===== NOSOTROS ===== */
.nosotros-card {
  border-radius: 15px;
  background: #ffffff;
  transition: all 0.35s ease;
  cursor: pointer;
  border: none;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.nosotros-card:hover {
  transform: translateY(-10px);
  background-color: #004a99;
  box-shadow: 0 20px 40px rgba(0, 74, 153, 0.2);
}

/* Icono */
.icono {
  font-size: 2.5rem;
  color: #004a99;
  transition: all 0.3s ease;
}

/* Hover efectos */
.nosotros-card:hover .icono {
  color: #ffffff;
  transform: scale(1.2);
}

.nosotros-card:hover h4 {
  color: #ffffff;
}

.nosotros-card:hover p {
  color: #e0e0e0 !important;
}

/* ===== VALORES ===== */
.valores-lista li {
  list-style: none;
  margin: 8px 0;
}

.valores-lista a {
  color: #004a99;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.valores-lista a:hover {
  color: #C1272D;
  text-decoration: underline;
}

/* Mantener visibles en hover */
.nosotros-card:hover .valores-lista a {
  color: #ffffff;
}

/* ===== LISTA DOCUMENTOS ===== */
.lista-documentos {
  list-style: none;
  padding: 0;
}

.lista-documentos li {
  margin: 10px 0;
}

/* Links estilo interactivo */
.lista-documentos a {
  display: block;
  padding: 12px 15px;
  border-radius: 8px;
  background-color: #f4f6fb;
  color: #004a99;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Hover tipo nosotros */
.lista-documentos a:hover {
  background-color: #004a99;
  color: #ffffff;
  transform: translateX(5px);
}

/* ===== HERO NIVEL DIOS ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;

  background: url('https://rtvc-informativo.s3.amazonaws.com/assets/public/migrados/Diferencias_eps_1.jpg') no-repeat center center/cover;
}

/* OVERLAY CON GRADIENTE PRO */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(0, 74, 153, 0.75),
    rgba(0, 74, 153, 0.55)
  );
  z-index: 1;
}

/* CONTENIDO */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 20px;
  animation: fadeUp 1s ease forwards;
}

/* TITULO */
.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
  animation: fadeUp 1s ease forwards;
}

/* TEXTO */
.hero p {
  font-size: 1.3rem;
  color: #e0e0e0;
  margin-bottom: 25px;
  animation: fadeUp 1.2s ease forwards;
}

/* BOTON PRO */
.btn-hero {
  display: inline-block;
  padding: 12px 30px;
  background: #C1272D;
  color: white;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  animation: fadeUp 1.4s ease forwards;
}

.btn-hero:hover {
  background: #a61e24;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(193, 39, 45, 0.4);
}

/* ANIMACIÓN */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  background-attachment: fixed;
}

.btn-hero {
  box-shadow: 0 0 0 rgba(193, 39, 45, 0.7);
}

.btn-hero:hover {
  box-shadow: 0 0 20px rgba(193, 39, 45, 0.6);
}