/* Tipografía principal */
* {
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}
a{
  text-decoration: none;
}
/* ===== HERO BANNER ===== */
.hero-banner {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 480px;
  background: url('../IMG/banner-carga.jpg') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Overlay con degradado azul oscuro */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(44,62,80,0.6) 0%, rgba(44,62,80,0.9) 100%);
  z-index: 1;
}

/* Contenido centrado */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
  padding: 0 20px;
  animation: fadeInUp 1s ease forwards;
}

/* Fondo detrás del texto */
.hero-text-bg {
  background-color: rgba(44,62,80,0.7);
  padding: 30px 25px;
  border-radius: 12px;
  display: inline-block;
}

/* Título principal */
.hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: #6288ba; /* Azul institucional */
  text-shadow: 0 6px 15px rgba(0,0,0,0.5);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Subtítulo */
.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 2rem;
}

/* Botón principal */
.btn-hero {
  background-color: #6288ba; /* Azul institucional */
  color: #ffffff;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}
.btn-hero:hover {
  background-color: #9bb7d9; /* Azul grisáceo suave */
  color: #2c3e50; /* Azul oscuro */
  border-color: #2c3e50;
  transform: translateY(-2px);
}

/* Ancla decorativa */
.hero-anchor {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 80px;
  opacity: 0.7;
  transition: transform 0.3s ease;
}
.hero-anchor:hover {
  transform: scale(1.1) rotate(-10deg);
}

/* Ola decorativa inferior */
.wave-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.wave-divider svg {
  display: block;
  width: 100%;
  height: 100px;
}

/* Animación de entrada */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE HERO ===== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .btn-hero {
    padding: 10px 22px;
    font-size: 0.9rem;
  }
}


/* === COLORES BASE === */
    :root {
      --principal: #6288ba;       /* Azul institucional */
      --oscuro: #2c3e50;          /* Azul oscuro / gris marino */
      --claro: #9bb7d9;           /* Azul grisáceo suave */
      --blanco: #ffffff;
      --negro: #000000;
      --gris: #e0e0e0;
    }

    body {
      
      background-color: var(--blanco);
      color: var(--negro);
    }





/* === FONDO CON DOS COLORES: TITULO Y CONTENIDO DE NOTICIAS === */
.fondo2colores { 
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  padding: 2rem;
  background: linear-gradient(180deg, var(--claro) 0%, var(--blanco) 100%);
}





/* === TITULO DOBLE: NOTICIAS === */

.titulo-doble {
  position: relative;
  text-align: center;
  margin: 40px 0 0px/*60*/ 0;
}

.titulo-doble .back-text {
  display: block;
  font-size: 5rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.07);
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: -35px;
}

.titulo-doble .front-text {
  font-size: 3rem;
  font-weight: 900;
  text-transform: uppercase;
  margin: 0;
  position: relative;
  z-index: 2;
  background: linear-gradient(90deg, #003f8c, #3ac6ff);
  -webkit-background-clip: text;
  color: transparent;
}


.news-bar {
  position: relative;
  width: 100%;
  height: 48px; /* altura fija de la barra */
  background: linear-gradient(90deg, #1F2B3A, #2c3e50);
  overflow: hidden;
  border-top: 3px solid #528ED4;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

/* TÍTULO */
.news-label {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;           /* ocupa todo el alto */
  padding: 0 18px;
  background: #528ED4;
  display: flex;
  align-items: center;
  z-index: 2;             /* queda por encima */
}

.news-label-text {
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* TRACK */
.news-track {
  position: relative;
  top: 0;
  left: 0;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 50px;
  padding-left: 200px; /* deja espacio para el título */
  animation: scroll 25s linear infinite;
}

.news-bar:hover .news-track {
  animation-play-state: paused;
}

/* ITEMS */
.news-item {
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.news-item a {
  color: #fff;
  text-decoration: none;
}

.news-item a:hover {
  color: #ffd700;
  text-decoration: underline;
}

/* CATEGORÍAS */
.category {
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.cat-politica { background: #003f8c; }
.cat-deportes { background: #2c6cbf; }
.cat-tecno    { background: #3A6BBF; }
.cat-cultura  { background: #6a8fd4; }

/* ANIMACIÓN */
@keyframes scroll {
  from { transform: translateX(100%); }
  to   { transform: translateX(-100%); }
}




          /*CARUSEL */

/* Contenedor del carrusel */
.novedades {
  width: 100%;
  height: 400px;       /* altura deseada */
  border-radius: 12px;
}

/* Contenedor del carrusel */
/* Carrusel interno */
.carousel {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* Cada slide */
.carousel .noticia-link {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  /* transition: opacity 0.5s ease; */
  pointer-events: none;
}

.carousel .noticia-link.active {
  opacity: 1;
  position: relative;
  pointer-events: auto; /* así se puede hacer clic */
}

/* .carousel .noticia-link {
  position: absolute;
  width: 100%;
  height: 100%;        
  opacity: 0;
  transition: opacity 1.2s ease;
}

.carousel .noticia-link.active {
  opacity: 1;
  position: absolute;
} */

 /* Card del slide */
.noticia-cardd {
  width: 100%;
  height: 100%;        /* ⬅ ahora hereda la altura del contenedor */
}

/* Imagen ocupa toda la card */
.noticia-cardd img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.noticia-cardd::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.25),
    rgba(0,0,0,0.6)
  );
} 


.card-title,
.card p small {
    color: white;
    margin-left: 5rem;
    /* text-shadow: 0 0 6px rgba(255, 255, 255, 0.9);  */
    
}
.card-title{
  margin-top: 10px;
  font-size: 3rem;
}
/* Botones laterales */
.carousel .prev,
.carousel .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  /* background-color: none; */
  
  background: none;
  color: #fff;
  opacity: 0.7;
  border: none;
  font-size: 24px;
  padding: 8px 12px;
  cursor: pointer;
  /* border-radius: 50%;*/
  z-index: 10; 
}
.carousel .prev { left: 10px; }
.carousel .next { right: 10px; }

/* Puntitos */
.dots-container {
  position: absolute;
  bottom: 10px;
  width: 100%;
  text-align: center;
}
.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 5px;
  background-color: rgba(255,255,255,0.5);
  border-radius: 50%;
  cursor: pointer;
}
.dot.active {
  background-color: white;
}
/* Card overlay solo para posicionamiento */
.card-img-overlay {
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* texto arriba */
  padding: 1rem;
  
}

/* Texto pequeño debajo */
.card p small {
  color: white;
  margin-top: 4px;
  display: block;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.6); /* contorno sutil */
}
.categoria {
    position: absolute;
    top: 0;
    left: 0;
    padding: 5px 10px;
    background-color: rgba(0,0,0,0.6);
    color: white;
    font-size: 0.8rem;
    border-bottom-right-radius: 6px;
    
}


/* CAJA DESCRIPTIVA */
.noticias-info {
  padding: 2rem;
  border-radius: 12px;
  background: rgba(82, 142, 212, 0.15); /* azul transparente */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(82, 142, 212, 0.3);
}

/* Texto */
.noticias-info h4 {
  color: #1F2B3A;
  font-size: 2rem;
}

.noticias-info p {
  color: #2c3e50;
  line-height: 1.6;
  font-size: 1.2rem;
}

.btn-noticias{
  background-color: #6288ba; /* azul institucional */
  color: #ffffff;
  padding: 10px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn-noticias:hover {
  background-color: #2c3e50; /* azul oscuro */
  color: #ffffff;
  transform: translateY(-2px);
}
    /* === SOBRE NOSOTROS === */
    /* .contenedor {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-items: stretch;
      padding: 2rem;
       background: linear-gradient(180deg, var(--claro) 0%, var(--blanco) 100%); 
    }
    
    .imagen, .texto {
      flex: 1 1 500px;
      margin: 1rem;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .imagen img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 12px;
      box-shadow: 0 4px 10px var(--gris);
    } */


    
/* === SOBRE NOSOTROS === */
/*TITULO DOBLE IZQUIERDA */
.titulo-doble-izquierda {
  position: relative;
  text-align: left;
  margin: 40px 0 40px 0;
}

.titulo-doble-izquierda .back-text {
  display: block;
  font-size: 5rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.07);
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: -35px;
}

.titulo-doble-izquierda .front-text {
  font-size: 3rem;
  font-weight: 900;
  text-transform: uppercase;
  margin: 0;
  position: relative;
  z-index: 2;
  background: linear-gradient(90deg, #003f8c, #3ac6ff);
  -webkit-background-clip: text;
  color: transparent;
}

/* === SECCIÓN CONSEJO === */
/* Margen grande superior */
/* .seccion-consejo-margen {
  margin-top: 100px;
}


.caja-sobre-nosotros {
  background: linear-gradient(135deg, #ffffff 0%, #f5f8fe 100%);
  padding: 50px;
  border-radius: 18px;
   box-shadow: 0 10px 25px rgba(0,0,0,0.10); 
  position: relative;
  overflow: hidden;
}


.caja-sobre-nosotros::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: rgba(82,142,212,0.12);
  border-radius: 50%;
  filter: blur(10px);
}

.caja-sobre-nosotros::after {
  content: "";
  position: absolute;
  bottom: -30px;
  left: -40px;
  width: 130px;
  height: 130px;
  background: rgba(31,43,58,0.10);
  border-radius: 50%;
  filter: blur(10px);
}

.imagen-diagonal {
  clip-path: polygon(0 0, 90% 0, 100% 100%, 0 100%);
  border-radius: 12px; 
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(0,0,0,0.15);
}

.imagen-diagonal img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}


.titulo-seccion-sn {
  font-size: 1.9rem;
  font-weight: 900;
  color: #1F2B3A;
  margin-bottom: 20px;
}


.leer-sn {
  display: inline-block;
  margin-top: 15px;
  font-weight: bold;
  color: #528ED4;
  text-decoration: none;
  border-bottom: 2px solid #528ED4;
  padding-bottom: 2px;
  transition: 0.3s ease;
}

.leer-sn:hover {
  color: #1F2B3A;
  border-color: #1F2B3A;
} */

/* =============================
   SECCIÓN SOBRE NOSOTROS
   ============================= */
   .row.align-items-center {
    display: flex;
}

.sobre-nosotros-full {
    width: 100%;
    padding: 100px 0 60px 0; /* espacio superior e inferior */
    background: linear-gradient(135deg, #f7faff 0%, #eef4fb 100%);
    position: relative;
}

/* Patrón suave de fondo decorativo */
.sobre-nosotros-full::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(82,142,212,0.08) 0%, transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(31,43,58,0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* Caja de imagen */
.sn-img-box {
    /* border-radius: 14px; */
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    position: relative;
    z-index: 2;
}

.sn-img-box img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

/* Texto */
.sn-intro {
    font-size: 1.1rem;
    color: #3A6BBF;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 0.05em;
}

/* Eliminamos “Bienvenidos” y dejamos coherente con el título */
/* ORGANIZACIÓN DEL TEXTO SIN CENTRAR EL TÍTULO */
/* CONTENEDOR DEL TEXTO */
.sn-texto {
    width: 100%;                 /* ocupa toda la columna */
    max-width: 550px;            /* ancho controlado */
    height: auto;               /* mismo alto que la imagen */
    padding: 25px;
    background-color: rgba(98, 136, 186, 0.25); /* #6288ba transparente */
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;     /* centra verticalmente el contenido */
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
/* Párrafos mejor organizados pero NO centrados */
.sn-texto p {
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 95%;                   /* no quedan muy largos */
    margin-bottom: 14px;
    color: #1F2B3A;
}

/* El subtítulo queda igual que antes */
.sn-subtitle {
    margin-top: 28px;
    margin-bottom: 12px;
    font-size: 1.4rem;
    color: #528ED4;
    font-weight: 800;
}

/* En móviles se ajusta bien */
@media(max-width: 768px) {
    .sn-texto p {
        max-width: 100%;
    }
}






/* ===== SECCIÓN DE SERVICIOS ===== */


/* === TITULO DOBLE: SERVICIOS === */
.titulo-doble-servicios {
  position: relative;
  text-align: center;
  margin: 40px 0 70px/*60*/ 0;

}
.titulo-doble-servicios .back-text {
  display: block;
  font-size: 5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.12); /* blanco muy suave sobre el nuevo fondo */
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: -35px;
}

.titulo-doble-servicios .front-text {
  font-size: 3rem;
  font-weight: 900;
  text-transform: uppercase;
  margin: 0;
  position: relative;
  z-index: 2;
  background: linear-gradient(90deg, #ffffff, #e8f3ff); /* blanco → azul hielo */
  -webkit-background-clip: text;
  color: transparent;
}

.services-section {
  background-color: #6288ba; /* fondo azul institucional */
  padding-top: 60px;
  padding-bottom: 60px;
}

/* azul mas suave
.titulo-doble-servicios .back-text {
  display: block;
  font-size: 5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.1); 
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: -35px;
}

.titulo-doble-servicios .front-text {
  font-size: 3rem;
  font-weight: 900;
  text-transform: uppercase;
  margin: 0;
  position: relative;
  z-index: 2;
  background: linear-gradient(90deg, #f7faff, #c1e0ff);
  -webkit-background-clip: text;
  color: transparent;
}

.services-section {
  background-color: #528ED4; 
  padding-top: 60px;
  padding-bottom: 60px;
} */


/* .titulo-doble-servicios .back-text {
  display: block;
  font-size: 5rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.07);
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: -35px;
} */

/* .titulo-doble-servicios .front-text {
  font-size: 3rem;
  font-weight: 900;
  text-transform: uppercase;
  margin: 0;
  position: relative;
  z-index: 2;
  background: linear-gradient(90deg, #04203f, #3ac6ff);
  /* or background: linear-gradient(90deg, #003f8c, #3ac6ff); */
 /* -webkit-background-clip: text;
  color: transparent;
} */

/* .services-section {
  background-color: #6288ba;/*header #528ED4;*//*#9bb7d9 fondo azul grisáceo suave */
  /*padding-top: 60px;
  padding-bottom: 60px;
} */

/* .section-title {
  font-size: 3rem; 
  font-weight: 700;
  color: #2c3e50; 
  margin-bottom: 3rem;
  text-align: center;
} */

.service-card {
  background: linear-gradient(135deg, #f7faff 0%, #eef4fb 100%);
  border-radius: 12px; 
  padding: 20px;
  transition: transform 0.3s ease;
  overflow: hidden;
  height: auto;
}

/* Patrón suave de fondo decorativo */
.service-card ::before {
    /* content: "";
    position: absolute;
    inset: 0; */
    opacity: 0.08;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(82,142,212,0.08) 0%, transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(31,43,58,0.08) 0%, transparent 60%);
    pointer-events: none;
    /* z-index: 0; */
}

.service-card-blanca{
  width: 100%;
  height: auto;
}
.service-card:hover {
  transform: translateY(-5px);
}
.service-card img.service-img {
  width: 100%;
  height: 250px; /* alto fijo atractivo para la imagen */
  object-fit: cover;
  border-radius: 8px; 
  margin-bottom: 20px;
}
/* .service-card img.service-img {
  width: 100%;    
  height: auto;        
  border-radius: 8px;   
  margin-bottom: 20px;
  display: block;
  object-fit: cover;
} */
.service-card h3 {
  font-size: 1.8rem;      /* título un poco más grande */
  font-weight: 700;
  color: #6288ba; /* azul institucional */
  margin-bottom: 1rem;
}

.service-card p {
  font-size: 1rem;
  line-height: 1.7;
  color: #2c3e50; /* azul oscuro */
  margin-bottom: 1.5rem;
}

.btn-service {
  background-color: #6288ba; /* azul institucional */
  color: #ffffff;
  padding: 10px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-service:hover {
  background-color: #2c3e50; /* azul oscuro */
  color: #ffffff;
  transform: translateY(-2px);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
  .service-card h3 {
    font-size: 1.5rem;
  }
  .service-card p {
    font-size: 0.95rem;
  }
  .service-card img.service-img {
    width: 100%;
    height: auto;
  }
  .service-card img.service-img {
  width: 100%;
  height: 250px; /* alto fijo atractivo para la imagen */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}
}

/* BOTON VOLVER ARRIBA */
/* ===== BOTÓN VOLVER ARRIBA · ESTILO PREMIUM ===== */
#scrollTopBtn {
  position: fixed;
  bottom: 24px;
  right: 24px;

  width: 54px;
  height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);

  background: rgba(44, 62, 80, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;

  cursor: pointer;
  z-index: 9999;

  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

/* Iconos */
#scrollTopBtn i {
  color: #ffffff;
  font-size: 14px;
  line-height: 1;
}

/* Visible */
#scrollTopBtn.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Hover (solo desktop) */
@media (hover: hover) {
  #scrollTopBtn:hover {
    background: rgba(98, 136, 186, 0.75);
  }
}

/* Micro-animación sutil */
#scrollTopBtn.show i:first-child {
  animation: floatUp 1.6s ease-in-out infinite;
}

@keyframes floatUp {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(-3px); opacity: 1; }
}

/* Móvil */
@media (max-width: 768px) {
  #scrollTopBtn {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }
}
