
/* 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/crane-2654996.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-titlee {
  font-size: 3.25rem;
  font-weight: 800;
  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;
  }
}

.contanclasprin{
    padding-top: 30px;
}

.spanstay{
    color: #528ED4;
    font-size: 1.1rem;
}
.nostay{
    color: #000000;
    font-size: 1rem;
}
.nostay:hover{
    color: #528ED4;
}
/* == BODY Tipografía y fondo general ==*/
body {
  font-family: "Segoe UI", Arial, sans-serif;
   background-color: var(--blanco);
      color: var(--negro);
      background: linear-gradient(180deg, var(--claro, #e9f1f8) 0%, var(--blanco, #ffffff) 100%);
}

/* === 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;
    }



    /* === 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;
}




/* === NOTICIAS: CATEGORIAS Y EL BUSCADOR === */

/* Fila general */
.fila-buscador-categorias {
    width: 100%;
    padding: /*20px 0*/ 0;
    /* margin-bottom: 40px; */
}

.fila-buscador-categorias .row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

/* Columnas */
.item-fila {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Buscador */
.input-buscador {
    width: 100%;
    max-width: 300px;
    padding: 10px 15px;
    border-radius: 8px;
    border: 2px solid #6288ba;
    font-size: 1rem;
    outline: none;
}

.input-buscador:focus {
    border-color: #2c3e50;
    box-shadow: 0 0 8px rgba(98,136,186,0.4);
}

/* Anclas simples */
.categoria-link {
    color: #2c3e50;
    font-size: 1rem;
    text-decoration: none;
    font-weight: 600;
}

.categoria-link:hover {
    text-decoration: underline;
}
.buscador-con-icono {
    position: relative;
    width: 100%;
    max-width: 250px;
}

.input-buscador {
    width: 100%;
    padding: 10px 40px 10px 12px; /* ↑ padding-right mayor para separar el icono del borde */
    border-radius: 8px;
    border: 2px solid #6288ba;
    font-size: 1rem;
    outline: none;
}

/* Icono de FontAwesome dentro del input */
.icon-lupa {
    position: absolute;
    right: 20px;          /* ↑ separa icono del borde */
    top: 50%;
    transform: translateY(-50%);
    color: #4b55637b;       /* azul institucional */
    pointer-events: none; /* no bloquea la escritura */
    font-size: 16px;
}





/* === NOTICIAS: CONTENEDOR GENERAL (TARJETAS Y ASIDE)==== */

.fila-noticias {
    width: 100%;
    display: flex;
    justify-content: center;    /* Centra todo el contenido */
    align-items: flex-start;     /* Evita que todo quede centrado verticalmente */
    padding: /*20px 0*/0;            /* Padding limpio */
    margin: 0 auto;
}





/* === NOTICIAS:CONTENEDOR GENERAL (TARJETAS Y ASIDE)  === */

#container_blog_aside {
    width: 100%;
    height: auto;
    /* background-color: white; */
    /* margin-bottom: 30px;
    margin-top: 10px; */
    display: flex;
    justify-content: center;     /* Centra noticias + aside */
    align-items: flex-start;
    gap: 20px;                   /* Espacio equilibrado */
}

#caja_noticias {
    width: 60%;
    height: 90vh;
    padding-top:0px/*20px*/;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow-y: scroll;
    border: none;
    padding-right: 60px;

    /* Scroll invisible */
    scrollbar-width: none;  /* Firefox */
    -ms-overflow-style: none;  /* IE 10+ */
}

#caja_noticias::-webkit-scrollbar {
    display: none;  /* Chrome, Safari y Opera */
}

/* Tarjeta general vertical */
.TarjetaGeneral {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* margin: 20px 0; */
    margin-bottom: 30px;   /* 30px 15px;  */ /* ← margen vertical y horizontal */
    padding: 15px;
    /* border: 1px solid #528ED4; */
    /* border-radius: 10px; */
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    /* background: none; */background-color: #fff;
}
/* FILAS */
.fila {
    width: 100%;
    display: flex;
    flex-direction: column;
}
.titulo-fila h2 {
    margin: 0;
    font-size: 2.6rem;        /* ↑ tamaño más grande para noticia */
    font-weight: 700;         /* más negrita */
    line-height: 1.2;         /* mejor espaciado vertical */
    font-family: Arial, Helvetica, sans-serif;
    color: #000000;
}
/* Imagen */
.imagen-fila {
    position: relative;
}
.imagen-fila img {
    width: 100%;
    height: 300px;
    /* object-fit: cover; */
    /* border-radius: 6px; */
}
/* Categoria sobre la imagen */
.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;
}

/* Descripcion */
.descripcion-fila p {
    margin: 0;
    padding: 5px 0;
}

/* Boton */
.boton-fila {
    display: flex;
    justify-content: flex-start;
}

.btn-leer {
    padding: 8px 12px;
    border: 1px solid #528ED4;
    border-radius: 5px;
    text-decoration: none;
    color: #fff;
    background-color: #528ED4;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: 0.3s;
    width: 200px;
    height: 40px;
}

.btn-leer:hover {
    background-color: #528ED4;  /*background-color: #CC1318; */
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}





/* === NOTICIAS: ULTIMAS NOTICIAS === */
#caja_aside {
    width: 35%;
    height: 90vh;              
    padding: 5px 20px 20px 20px;

    display: flex;
    flex-direction: column;
    align-items: center;       
    overflow-y: auto;          

    /* Scroll invisible */
    scrollbar-width: none;      /* Firefox */
    -ms-overflow-style: none;   /* IE 10+ */
    
}

#caja_aside::-webkit-scrollbar {
    display: none;              /* Chrome, Safari y Opera */
}


/* Título "Últimas noticias" */
#texto_noticias_ultimas {
    width: 100%;
    /* text-align: center; */
    margin-left: 0;            /* Quitamos desplazamiento feo */
}

/* CARDS del aside → ahora centrados y con ancho perfecto */
#card {
    width: 320px;              /* ↓ Ancho más pequeño (ya no se desborda) */
    border: none;
    margin: 20px auto;         /* AUTO = CENTRADO PERFECTO */
    background: none;
}

/* Fila interna del card */
#row_card_aside,
#card .row.g-0 {
    display: flex;
    align-items: flex-start;       /* El texto ya no se cae */
}
.card-title{
  color: black;
}
/* Caja imagen (restaurada al tamaño bonito y original) */
/* Caja imagen (restaurada al tamaño original real) */
#caja_imagen {
    /* background-color: #fff;  */
    padding-top: 30px;
    height: 8rem;              /* ← TU ALTURA ORIGINAL */
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
}

/* Imagen restaurada al tamaño original */
#caja_imagen img {
    height: 8rem;              /* ← TU ALTURA ORIGINAL */
    width: auto;               /* ← ANCHO AUTOMÁTICO COMO ANTES */
    border-radius: none;
    object-fit: contain;       /* NO SE DEFORMA */
    /* margin-top: 110px; */
}


/* Imagen del aside (restaurada y centrada) */
#caja_imagen img {
    width: 100%;
    height: 110px;
    object-fit: cover;
}

/* Ajustes de texto (para que no baje demasiado) */
#card h5,
#card p,
#card small {
    margin-top: 0;
}

/* ===============================
    RESPONSIVE
   =============================== */
   /* --- RESPONSIVE REAL sin cambiar tu diseño --- */
@media(max-width: 992px) {

    #container_blog_aside {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    #caja_noticias,
    #caja_aside {
        width: 95%;
        height: auto !important; /* ← evita deformaciones */
        padding-right: 0;
    }
    /* Imagen */
.imagen-fila {
    position: relative;
}
.imagen-fila img {
    width: 100%;
    height: auto;
}
}

@media(max-width: 600px) {
    #card {
        width: 100%;
    }

    .imagen-fila img {
        height: 220px;
    }
    /* Imagen */
.imagen-fila {
    position: relative;
}
.imagen-fila img {
    width: 100%;
    height: auto;
}
}
