@font-face {
    font-family: "BebasNeue";
    src: url(../fonts/BebasNeue.otf);
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Inter";
    src: url(../fonts/Inter/static/Inter_18pt-Regular.ttf) format("truetype");
    src: url(../fonts/Inter/static/Inter_18pt-Bold.ttf) format("truetype");
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: "WebSymbolsRegular";
    src: url(../fonts/websymbols-regular-webfont.eot);
    src: url(../fonts/websymbols-regular-webfont.eot?#iefix) format("embedded-opentype"),
         url(../fonts/websymbols-regular-webfont.woff) format("woff"),
         url(../fonts/websymbols-regular-webfont.ttf) format("truetype"),
         url(../fonts/websymbols-regular-webfont.svg#WebSymbolsRegular) format("svg");
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0px;
    padding: 0px;
    font-family: "Inter", sans-serif;
    box-sizing: border-box;
}


body{
    background-image: url("../img/fondo_pantalla.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #f2f2f2;
}

.wrap {
    width: 90%;
    max-width: 1250px;
    margin: 0px auto;
}


.icon {
    font-family: "WebSymbolsRegular";
}

.clearfix {
    clear: both;
    float: none;
}

#header {
    position: relative;
    width: 100%;
    min-height: 200px;
    height: auto;
    padding-bottom: 15px;
    color: #1269AE;
    overflow: visible;
    isolation: isolate;
    font-weight: bold;
}

#header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url(../img/fondo2.png) center/cover no-repeat;
    transform: scaleX(-1);
    z-index: -1;
    overflow: hidden;
    clip-path: inset(0);  
}

#cabecera-superior{
    display:flex;
    align-items:center;
    justify-content:space-between;
    height:120px;
    padding:0 30px;
    border-bottom: 2px solid #1269AE;
}


#logo{
    display:flex;
    align-items:center;
    justify-content:center;
    flex:1;
    gap:25px;
}

#logo a{
    display: inline-block;
    text-decoration: none; 
    color: inherit; 
}

#logo img{
    width:80px;
    height:80px;
    margin-left: -30px;
    margin-right: 95px;
    animation: logoAnimation 10s infinite alternate; /* Aplica la animación al logo */
    transition: transform 0.4s ease, box-shadow 0.4s ease, filter 0.4s ease;
}

@keyframes logoAnimation {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(90deg);
    }
    50% {
        transform: rotate(180deg);
    }
    75% {
        transform: rotate(270deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#logo img:hover {
    cursor: pointer;
    transform: scale(1.2);
    box-shadow: 0 0 30px white;
    filter: drop-shadow(0 0 10px white);
}

#logo h1{
    font-size:40px;
    color:#1269AE;
    text-transform:uppercase;
    text-align:center;
    margin-right: 12px;
    transition: all 300ms;
    margin-left: -23px;
}

#logo h1:hover {
    color: white;
    background-clip: text; /* Aplica el gradiente solo al texto */
    background: linear-gradient(to right, #5CA32B, #033a0b); /* Gradiente de color al pasar el ratón por encima */
    cursor: pointer; /* Cambia el cursor al pasar el ratón por encima */

    transform: scale(1.17);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0,0,0,.3);
}

#menu-superior ul,
#menu ul{
    list-style:none;
    margin:0;
    padding:0;
    transition: transform 300ms, color 300ms;
}

#menu-superior li{
    display: inline-block;
    border-left: 5px solid #1269AE;
    padding-left: 20px;
}

#menu-superior a{
    display: inline-block;   /* <-- Añade esto */
    text-decoration:none;
    color:rgb(10, 13, 76);
    font-size:22px;
    font-weight:bold;
    margin-right: 40px;
    border: 7px solid #1269AE;
    border-radius: 240px;
    padding: 10px 20px;
    border-style:double;
    margin-left: 40px;
    transition: transform 300ms, color 300ms;

}

#menu-superior a:hover{
    background-color: #5CA32B;
    color: white;
    transform: scale(1.2, 1.3); 
    border: 5px solid #095314;
    border-radius: 240px;
    box-shadow: 0px 0px 10px gray;
    animation: blink 10s infinite linear; /* Animación de rotación del blog */
}

@keyframes blink {
    0% {
        border: 10px solid #37bcf9; /* Comienza con el borde azul */
    }
    25% {
        border: 10px solid green; /* Cambia a amarillo */
    }
    50% {
        border: 10px solid yellow; /* Cambia a rojo */
    }
    75% {
        border: 10px solid white; /* Cambia a azul */
    }
    100% {
        border: 10px solid #37bcf9;
    }
}


#menu{
    text-align:center;
    padding:15px 0;
    transition: transform 300ms, color 300ms;
}

#menu li{
    display:inline-block;
    margin-top:10px;
    padding:0 25px;
    border-left: 2px solid #1269AE;
}

#menu li:first-child{
    border-left:none;
}

#menu li:first-child a{
    font-size: 18px;
}

#menu li:nth-child(2) a{
    font-size: 18px;
}

#menu li:first-child i{
    font-size: 22px;
    margin-right: 8px;
    vertical-align: middle;
    margin-top: -1px;
}

#menu li:nth-child(2) i{
    font-size: 22px;
    margin-right: 8px;
    vertical-align: middle;
    margin-top: -1px;
}

#menu a{
    text-decoration:none;
    display: inline-block;
    color:#1269AE;
    font-size:20px;
    font-weight:bold;
    transition: transform 300ms, color 300ms;
}

#menu li:first-child a:hover{
    color: #5CA32B;
    text-decoration: underline;
    transform: none;
}

#menu li:nth-child(2) a:hover{
    color: #5CA32B;
    text-decoration: underline;
    transform: none;
}

#menu ul li a:hover {
    color: #5CA32B;
    transform: scale(1.2, 1.2); /* Escalado del enlace al pasar el ratón por encima */
    text-decoration: underline; /* Subrayado del enlace al pasar el ratón por encima */
}

/* ==========================
   SEPARADOR
========================== */

.separador{
    width:90%;
    max-width:1200px;
    margin:70px auto;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:20px;
    margin-bottom: 15px;
    margin-top: 30px;
}

.separador::before,
.separador::after{
    content:"";
    flex:1;
    height:2px;
    background:linear-gradient(
        to right,
        transparent,
        #1269AE,
        #5CA32B,
        transparent
    );
}

.separador span{
    font-size:1.8rem;
    color:#1269AE;
    display:flex;
    align-items:center;
    justify-content:center;
    animation:appear 3s ease-in-out infinite;
}

@keyframes appear{
    0%,100%{
        transform:translateY(0);
    }
    50%{
        transform:translateY(-10px);
    }
}


#slider{
    width:90%;
    max-width:1100px;
    height:500px;
    margin:40px auto;
    position:relative;
    overflow:hidden;
    border-radius:18px;
    box-shadow:0 15px 40px rgba(0,0,0,.35);
    border: 2px solid #1269AE;
}

.wrap{
    width:100%;
    height:100%;
    position:relative;
}

.slider-item{
    position:absolute;
    inset:0;
    opacity:0;
    overflow:hidden; /* importante: recorta el blur ampliado para que no se salga del recuadro */
    transition:opacity .8s ease;
}

.slider-item.active{
    opacity:1;
    z-index:2;
}

/* Capa de fondo: la misma foto, ampliada y desenfocada, rellena todo el hueco */
.slider-item .bg{
    position:absolute;
    inset:0;
    background-size:cover;
    background-position:center;
    filter:blur(25px) brightness(.7);
    transform:scale(1.15); /* para que el borde nítido del blur no se vea */
    z-index:0;
}

/* La foto real, completa y sin recortar, va encima */
.slider-item img{
    position:relative;
    z-index:1;
    width:100%;
    height:100%;
    object-fit:contain;
    animation:zoom 8s linear infinite;
}

@keyframes zoom{
    from{ transform:scale(1); }
    to{ transform:scale(1.12); }
}

/* Oscurece ligeramente la imagen */
#slider::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(to top,
        rgba(0,0,0,.45),
        rgba(0,0,0,.05));
    pointer-events:none;
}

/* Flechas */

.prev,
.next{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:50px;
    height:50px;
    border:none;
    border-radius:50%;
    background:#89a5c1;
    backdrop-filter:blur(8px);
    color:white;
    font-size:28px;
    cursor:pointer;
    transition:.3s;
    z-index:20;
}

.prev{
    left:20px;
}

.next{
    right:20px;
}

.prev:hover,
.next:hover{
    background:#1269AE;
}

/* Puntos */

.dots{
    position:absolute;
    bottom:20px;
    left:50%;
    transform:translateX(-50%);
    display:flex;
    gap:10px;
    z-index:20;
}

.dot{
    width:13px;
    height:13px;
    border-radius:50%;
    background:white;
    opacity:.5;
    cursor:pointer;
    transition:.3s;
}

.dot.active{
    opacity:1;
    background:#1269AE;
    transform:scale(1.3);
}


#tarjetas{
    width: 100%;
    padding: 70px 0;
}

#tarjetas .wrap{
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.tarjeta{
    flex: 1;
    min-width: 320px;
    max-width: 500px;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
    transition: .35s;
    text-align: center;
}

.tarjeta:hover{
    transform: translateY(-10px);
    box-shadow: 0 18px 40px rgba(18,105,174,.25);
    cursor: pointer;
}

.tarjeta img{
    width: 100%;
    height: 450px;
    display: block;
    transition: transform .5s;
}

.tarjeta:hover img{
    transform: scale(1.05);
}

.tarjeta h2{
    margin: 25px 0 15px;
    color: #1269AE;
    font-size: 2rem;
    font-weight: bold;
}

.tarjeta p{
    padding: 0 30px;
    color: black;
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 30px;
    text-align: justify;
}

.tarjeta a{
    display: inline-block;
    margin-bottom: 30px;
    padding: 14px 35px;
    background: #1269AE;
    color: white;
    text-decoration: none;
    border-radius: 40px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-top: -15px;
    transition: .3s;
}


.tarjeta a:hover{
    background: #5CA32B;
    transform: scale(1.05);
}

/* ==========================
   ARTÍCULOS
========================== */

#articles{
    width:100%;
    max-width:1200px;
    margin:70px auto;
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(340px,1fr));
    gap:30px;
}

#articles h2{
    grid-column:1/-1;
    width:fit-content;
    margin:0 auto 50px;
    padding:15px 45px;
    font-size:2.5rem;
    color:white;
    background:#fff;
    border:3px solid transparent;
    border-radius:50px;
    background-image:
        linear-gradient(rgb(62, 137, 194),rgb(52, 115, 174)),
        linear-gradient(135deg,#1269AE,#5CA32B);
    background-origin:border-box;
    background-clip:padding-box,border-box;
    box-shadow:0 12px 30px rgba(0,0,0,.12);
    transition:all .35s ease;
    margin-bottom: 40px;
    margin-top: -38px;
}

#articles h2::after{
    display:none;
}

#articles h2:hover{
    transform:translateY(-5px) scale(1.05);
    box-shadow:0 18px 40px rgba(18,105,174,.25);
    text-shadow:0 0 10px rgba(18,105,174,.5);
    cursor:alias;
    color:rgb(207, 211, 218);
}

#articles h3{
    grid-column:1/-1;
    width:fit-content;
    margin:0 auto 50px;
    padding:15px 45px;
    font-size:2.5rem;
    color:white;
    background:#fff;
    border:3px solid transparent;
    border-radius:50px;
    background-image:
        linear-gradient(rgb(62, 137, 194),rgb(52, 115, 174)),
        linear-gradient(135deg,#1269AE,#5CA32B);
    background-origin:border-box;
    background-clip:padding-box,border-box;
    box-shadow:0 12px 30px rgba(0,0,0,.12);
    transition:all .35s ease;
    margin-bottom: 35px;
    margin-top: -92px;
}

#articles h3::after{
    display:none;
}

#articles h3:hover{
    transform:translateY(-5px) scale(1.05);
    box-shadow:0 18px 40px rgba(18,105,174,.25);
    text-shadow:0 0 10px rgba(18,105,174,.5);
    cursor:alias;
    color:rgb(207, 211, 218);
}

#articles .clearfix{
    display:none;
}

#articles article{
    background: #f5f7fa;
    border-radius:18px;
    padding:25px;
    box-shadow:0 10px 25px rgba(0,0,0,.12);
    transition:.35s;
    display:flex;
    flex-direction:column;
}

#articles article:hover{
    transform:translateY(-8px);
    box-shadow:0 18px 40px rgba(18,105,174,.18);
}

.data{
    display:flex;
    justify-content:space-between;
    flex-wrap:wrap;
    font-size:.85rem;
    color:#5CA32B;
    margin-bottom:15px;
    border-bottom:1px solid #eee;
    padding-bottom:10px;
    margin-left: 40px;
    margin-right: 40px;
}

#articles h4{
    margin:10px 0 20px;
    text-align:center;
}

#articles h4 a{
    text-decoration:none;
    color:#1269AE;
    font-size:1.2rem;
    transition:.3s;
}

#articles h4 a:hover{
    color:#0c4f86;
}

#articles p{
    color:black;
    line-height:1.7;
    margin-bottom:25px;
    text-align:justify;
    flex-grow:1;
}

#articles article>a{
    align-self:center;
    text-decoration:none;
    background:#1269AE;
    color:#fff;
    padding:12px 28px;
    border-radius:30px;
    font-weight:bold;
    transition:.3s;
}

#articles article>a:hover{
    background:#5CA32B;
    transform:scale(1.05);
}

#articles article img {
    display: block;
    max-width: 100%;   /* nunca se sale del article, pero no fuerza el 100% */
    max-height: 1400px;  /* nunca se sale del article, pero no fuerza el 100% */
    margin: 0 auto 20px; /* la centra horizontalmente + espacio debajo */
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .1);
}

.articles-controls{
    grid-column:1/-1;
    display:flex;
    justify-content:center;
    gap:20px;
    margin-bottom: 11px;
    margin-top: -6px;
}

.articles-controls-noticias{
    grid-column:1/-1;
    display:flex;
    justify-content:center;
    gap:20px;
    margin-bottom: -28px;
    margin-top: 13px;
}

.articles-controls button{
    padding:12px 25px;
    border:none;
    border-radius:30px;
    background:#5CA32B;
    color:white;
    font-size:16px;
    cursor:pointer;
    transition:.3s;
}

.articles-controls-noticias button{
    padding:12px 25px;
    border:none;
    border-radius:30px;
    background:#5CA32B;
    color:white;
    font-size:16px;
    cursor:pointer;
    transition:.3s;
}

.articles-controls-noticias button:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f0f6ff, #ffffff);
    border: 1px solid transparent;
    background-image:
        linear-gradient(135deg, #f0f6ff, #ffffff),
        linear-gradient(135deg, rgba(18,105,174,.35), rgba(92,163,43,.35));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 8px 24px rgba(18, 105, 174, .12);
}

.page-number {
    position: relative;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: #1269AE;
    font-weight: 700;
    font-size: .95rem;
    font-family: "Inter", sans-serif;
    cursor: pointer;
    overflow: hidden;
    transition: color .25s ease, transform .2s ease;
}

.page-number::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: #1269AE;
    opacity: 0;
    transform: scale(.85);
    transition: opacity .25s ease, transform .25s ease;
    z-index: -1;
}

.page-number:hover {
    color: #0c4f86;
    transform: translateY(-2px);
}

.page-number:hover::before {
    opacity: .12;
    transform: scale(1);
}

.page-number:active {
    transform: translateY(0) scale(.95);
}

.page-number.active {
    color: #fff;
    box-shadow: 0 6px 14px rgba(18, 105, 174, .4);
    transform: translateY(-1px);
}

.page-number.active::before {
    opacity: 1;
    transform: scale(1);
}

.page-number.active:hover {
    color: #fff;
    transform: translateY(-1px);
}

.page-number.active:hover::before {
    opacity: 1;
}

.articles-controls-noticias button:hover{
    background:#032846;
    color:#fff;
    transform:translateY(-2px);
}

.btn-ver-todas {
    display: inline-block;
    padding: 12px 30px;
    background: #5CA32B;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: .3s;
}

.btn-ver-todas:hover {
    background: #032846;
    transform: scale(1.05);
}

.articles-controls button:hover{
    background:#032846;
    transform:translateY(-2px);
}

/* ==========================
   FOOTER
========================== */

#footer{
    margin-top:80px;
    background:linear-gradient(135deg,#1269AE,#0c4f86);
    color:#fff;
    padding:60px 0 0;
    box-shadow:0 -8px 20px rgba(0,0,0,.15);
}

#footer .wrap{
    width:90%;
    max-width:1200px;
    margin:0 auto;
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:50px;
    flex-wrap:wrap;
}

/* COLUMNAS */

.footer-col{
    flex:1;
    min-width:260px;
    text-align:center;
}

/* TÍTULOS */

.footer-col h3{
    position:relative;
    font-size:1.6rem;
    color:#fff;
    margin-bottom:40px;
    transition:.35s;
    cursor:pointer;
}

.footer-col h3::after{
    content:"";
    position:absolute;
    left:50%;
    bottom:-12px;
    width:120px;
    height:3px;
    background:#5CA32B;
    border-radius:20px;
    transform:translateX(-50%) scaleX(1);
    transform-origin:center;
    transition:transform .35s ease, background .35s ease;
}

.footer-col:hover h3::after{
    transform:translateX(-50%) scaleX(1.4);
    background:#fff;
}

.footer-col:hover h3{
    color:#5CA32B;
}


/* TEXTO */

.footer-col p{
    margin:18px 0;
    line-height:1.8;
    color:#eef3f8;
    font-size:1rem;
}

/* ICONOS */

.footer-col p i{
    color:#5CA32B;
    margin-right:10px;
    font-size:1.1rem;
}

/* ENLACES */

.footer-col a{
    color:#fff;
    text-decoration:none;
    transition:.3s;
}

.footer-col a:hover{
    color:#5CA32B;
}

/* REDES SOCIALES */

.redes{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:18px;
    margin-top:25px;
}

.redes a{
    width:52px;
    height:52px;
    border-radius:50%;
    background:rgba(255,255,255,.12);
    display:flex;
    justify-content:center;
    align-items:center;
    transition:all .3s ease;
}

.redes a i{
    color:#fff;
    font-size:1.4rem;
    margin:0;
}

.redes a:hover{
    background:#5CA32B;
    transform:translateY(-5px);
    box-shadow:0 10px 20px rgba(0,0,0,.25);
}

/* BARRA INFERIOR */

.footer-bottom{
    margin-top:60px;
    padding:20px;
    text-align:center;
    background:rgba(0,0,0,.18);
    color:#f5f5f5;
    font-size:.95rem;
    letter-spacing:.5px;
}

.footer-bottom a{
    margin-top:60px;
    padding:20px;
    text-align:center;
    color:#f5f5f5;
    font-size:.95rem;
    letter-spacing:.5px;
    text-decoration: none;
}

.volver-wrap {
    margin-bottom: 0px;
    margin-top: 0px;
}

.volver-wrap a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: .9rem;
    padding: 10px 20px;
    border-radius: 30px;
    background: #5CA32B; /* Color de fondo con transparencia */
    box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
    transition: .3s;
    margin-bottom: 0px;
    margin-top: 10px;
    margin-left: 50px;
}

.volver-wrap a:hover {
    background: #1269AE;
    color: #fff;
    transform: translateX(-4px);
}



/* ==========================
   RESPONSIVE
========================== */

@media (max-width:900px){

    #footer .wrap{
        flex-direction:column;
        align-items:center;
        gap:50px;
    }

    .footer-col{
        width:100%;
        max-width:450px;
    }

}

/* ==========================
   RESPONSIVE — ENCABEZADO
========================== */

@media (max-width: 1024px) {

    #header {
        height: auto;
        overflow: visible;   
        padding: 20px 0 25px;
    }

    #cabecera-superior {
        height: auto;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 15px;
        padding: 0 15px 15px;
    }

    #logo {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    #logo img {
        width: 60px;
        height: 60px;
        margin-left: 0;
        margin-right: 0;
    }

    #logo h1 {
        font-size: 1.8rem;
        margin-left: 0;
        margin-right: 0;
    }

    #menu-superior {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    #menu-superior ul {
        display: flex;
        justify-content: center;
    }

    #menu-superior li {
        border-left: none;
        padding-left: 0;
    }

    #menu-superior a {
        font-size: 1rem;
        padding: 8px 16px;
        margin-left: 0;
        margin-right: 0;
        border-width: 4px;
    }

    #menu {
        padding: 15px 0 20px;   
    }

    #menu ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 5px;
    }

    #menu li {
        border-left: none;
        padding: 0 10px;
        margin-top: 6px;
        margin-bottom: 6px;   
    }

    #menu li:not(:first-child) {
        border-left: 2px solid #1269AE;
    }
}

@media (max-width: 900px) {

    .volver-wrap {
        margin-top: 40px;
        margin-bottom: 0;
        text-align: center;
    }

    .volver-wrap a {
        margin: 0 auto;           
        display: inline-flex;
        justify-content: center;
        font-size: .85rem;
        padding: 10px 18px;
    }
}

@media (max-width: 600px) {

    #logo h1 {
        font-size: 1.3rem;
    }

    #logo img {
        width: 50px;
        height: 50px;
    }

    #menu-superior a {
        font-size: .85rem;
        padding: 6px 14px;
        border-width: 3px;
    }

    #menu li {
        font-size: .85rem;
        padding: 0 8px;
    }

    #menu li:first-child a,
    #menu li:nth-child(2) a {
        font-size: .85rem;
    }

    #menu a {
        font-size: .9rem;
    }

    .volver-wrap {
        font-size: 0.85rem;
        margin-bottom: 20px;
        text-align: center;
    }

}

@media (max-width: 400px) {

    #logo {
        flex-direction: column;
        gap: 6px;
    }

    #logo h1 {
        font-size: 1.1rem;
    }

    #menu li {
        display: block;
        border-left: none !important;
        padding: 6px 0;
    }
}