/*==================================================
                GOOGLE FONTS
==================================================*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');


/*==================================================
                VARIABLES
==================================================*/

:root{

    --primary:#0F172A;
    --secondary:#1E3A8A;
    --accent:#D4AF37;

    --text:#222222;
    --text-light:#666666;

    --background:#ffffff;
    --border:#E5E7EB;

    --container:1180px;

    --transition:.35s ease;

}


/*==================================================
                RESET
==================================================*/

*{

    margin:0;
    padding:0;
    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

body{

    font-family:"Inter",sans-serif;
    background:#ffe3fd;
    color:var(--text);
    line-height:1.9;
    -webkit-font-smoothing:antialiased;

}

img{

    display:block;
    width:100%;

}

a{

    text-decoration:none;
    color:inherit;

}

ul{

    list-style:none;

}

.container{

    width:min(92%,var(--container));
    margin:auto;

}


/*==================================================
                HEADER
==================================================*/

.site-header{

    position:sticky;
    top:0;
    z-index:999;

    background:#ff82eeb2;
    backdrop-filter:blur(14px);

    border-bottom:1px solid var(--border);

}

.site-header .container{

    height:82px;

    display:flex;
    align-items:center;
    justify-content:space-between;

}

.logo img{

    width:165px;

}

nav ul{

    display:flex;
    gap:38px;

}

nav a{

    font-size:.93rem;
    font-weight:500;

    transition:var(--transition);

}

nav a:hover{

    color:var(--secondary);

}


/*==================================================
                ARTÍCULO
==================================================*/

.news-article{

    max-width:920px;
    margin:auto;

    padding:70px 0;

}


/*==================================================
                IMAGEN PRINCIPAL
==================================================*/

.hero-image{

    margin-bottom:55px;

}

.hero-image img{

    width:100%;
    border-radius:14px;

}

.hero-image figcaption{

    margin-top:15px;

    font-size:.92rem;

    color:var(--text-light);

    font-style:italic;

    line-height:1.7;

}


/*==================================================
                CABECERA
==================================================*/

.article-header{

    margin-bottom:65px;

}

.category{

    display:inline-block;

    color:var(--secondary);

    font-size:.82rem;

    text-transform:uppercase;

    letter-spacing:2px;

    font-weight:700;

    border-bottom:2px solid var(--secondary);

    margin-bottom:22px;

    transition:.3s;

}

.category:hover{

    color:var(--accent);

    border-color:var(--accent);

}

.article-header h1{

    font-family:"Cormorant Garamond",serif;

    font-size:4rem;

    line-height:1.05;

    font-weight:700;

    margin-bottom:28px;

    color:var(--primary);

}


/*==================================================
                AUTOR
==================================================*/

.author{

    margin-bottom:12px;

    color:#444;

    font-size:1rem;

}

.author a{

    color:var(--secondary);

    font-weight:600;

}

.author a:hover{

    text-decoration:underline;

}


/*==================================================
                FECHA
==================================================*/

time{

    display:block;

    color:#777;

    margin-bottom:35px;

    font-size:.95rem;

}


/*==================================================
                BAJADA
==================================================*/

.lead{

    font-size:1.45rem;

    line-height:1.7;

    color:#444;

    font-family:"Cormorant Garamond",serif;

}


/*==================================================
                CONTENIDO
==================================================*/

.article-content{

    font-size:1.15rem;

}

.article-content p{

    margin-bottom:34px;

    text-align:justify;

}

.article-content h2{

    font-family:"Cormorant Garamond",serif;

    font-size:2.6rem;

    line-height:1.2;

    color:var(--primary);

    margin-top:75px;

    margin-bottom:28px;

}
/*==================================================
                IMÁGENES DEL ARTÍCULO
==================================================*/

.article-content figure{

    margin:70px 0;

}

.article-content figure img{

    width:100%;
    border-radius:12px;

    transition:.45s ease;

}

.article-content figure img:hover{

    transform:scale(1.015);

}

.article-content figure figcaption{

    margin-top:15px;

    font-size:.92rem;

    color:#666;

    font-style:italic;

    line-height:1.7;

}



/*==================================================
                ENLACES DENTRO DEL ARTÍCULO
==================================================*/

.article-content a{

    color:var(--secondary);

    font-weight:600;

    border-bottom:1px solid transparent;

    transition:.3s;

}

.article-content a:hover{

    color:var(--accent);

    border-color:var(--accent);

}



/*==================================================
                BLOCKQUOTE
==================================================*/

blockquote{

    margin:65px 0;

    padding:25px 35px;

    border-left:5px solid var(--secondary);

    background:#f8fafc;

    font-family:"Cormorant Garamond",serif;

    font-size:2rem;

    font-style:italic;

    line-height:1.5;

    color:var(--primary);

}



/*==================================================
                SEPARADOR
==================================================*/

hr{

    border:none;

    height:1px;

    background:#E5E7EB;

    margin:80px 0;

}



/*==================================================
                MÁS NOTICIAS
==================================================*/

.related-news{

    margin-top:120px;

    padding:90px 0;

    background:#F8FAFC;

}

.related-news h2{

    font-family:"Cormorant Garamond",serif;

    text-align:center;

    font-size:3rem;

    margin-bottom:60px;

    color:var(--primary);

}



/*==================================================
                GRID
==================================================*/

.news-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));

    gap:40px;

}



/*==================================================
                TARJETAS
==================================================*/

.news-card{

    background:#fff;

    border-radius:14px;

    overflow:hidden;

    border:1px solid #ECECEC;

    transition:.4s;

}

.news-card:hover{

    transform:translateY(-8px);

    box-shadow:0 20px 50px rgba(0,0,0,.08);

}



/*==================================================
                IMAGEN TARJETA
==================================================*/

.news-card img{

    aspect-ratio:16/10;

    object-fit:cover;

    transition:.45s;

}

.news-card:hover img{

    transform:scale(1.06);

}



/*==================================================
                CONTENIDO TARJETA
==================================================*/

.card-content{

    padding:28px;

}

.card-content time{

    display:block;

    color:#888;

    margin-bottom:14px;

    font-size:.9rem;

}

.card-content h3{

    font-family:"Cormorant Garamond",serif;

    font-size:2rem;

    line-height:1.2;

    margin-bottom:18px;

}

.card-content h3 a{

    transition:.3s;

}

.card-content h3 a:hover{

    color:var(--secondary);

}

.card-content p{

    color:#666;

    line-height:1.8;

}
/*==================================================
                FOOTER
==================================================*/

.site-footer{

    background:#0F172A;

    color:#fff;

    padding-top:80px;

}


.footer-container{

    width:min(92%,1180px);

    margin:auto;

    display:grid;

    grid-template-columns:2fr 1fr 1fr 1fr;

    gap:50px;

    padding-bottom:70px;

}



/*==================================================
                MARCA FOOTER
==================================================*/

.footer-brand img{

    width:170px;

    margin-bottom:25px;

}


.footer-brand p{

    color:#CBD5E1;

    line-height:1.8;

    max-width:360px;

}



/*==================================================
                TITULOS FOOTER
==================================================*/

.site-footer h4{

    font-size:1rem;

    text-transform:uppercase;

    letter-spacing:2px;

    margin-bottom:25px;

    color:#fff;

}



/*==================================================
                LINKS FOOTER
==================================================*/

.site-footer ul{

    display:flex;

    flex-direction:column;

    gap:14px;

}


.site-footer a{

    color:#CBD5E1;

    font-size:.95rem;

    transition:.3s;

}


.site-footer a:hover{

    color:#fff;

    padding-left:8px;

}



/*==================================================
                FOOTER FINAL
==================================================*/

.footer-bottom{

    border-top:1px solid rgba(255,255,255,.15);

    padding:25px 0;

    text-align:center;

}


.footer-bottom p{

    color:#94A3B8;

    font-size:.9rem;

}



/*==================================================
                ANIMACIONES
==================================================*/

.news-card,
.article-content figure,
.more-stories li{

    animation:fadeUp .8s ease both;

}


@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(25px);

    }


    to{

        opacity:1;

        transform:translateY(0);

    }

}



/*==================================================
                RESPONSIVE TABLET
==================================================*/

@media(max-width:1024px){


    .article-header h1{

        font-size:3.2rem;

    }


    .footer-container{

        grid-template-columns:repeat(2,1fr);

    }


    nav ul{

        gap:20px;

    }


}



/*==================================================
                RESPONSIVE MÓVIL
==================================================*/

@media(max-width:768px){


    .site-header .container{

        height:70px;

    }


    nav{

        display:none;

    }


    .news-article{

        padding:45px 0;

        width:92%;

    }



    .article-header h1{

        font-size:2.5rem;

    }



    .lead{

        font-size:1.25rem;

    }



    .article-content{

        font-size:1rem;

    }



    .article-content h2{

        font-size:2rem;

        margin-top:50px;

    }



    blockquote{

        font-size:1.5rem;

        padding:20px;

    }



    .related-news{

        padding:60px 0;

    }



    .related-news h2{

        font-size:2.4rem;

    }



    .news-grid{

        grid-template-columns:1fr;

    }



    .footer-container{

        grid-template-columns:1fr;

        gap:40px;

    }



}



/*==================================================
                MÓVILES PEQUEÑOS
==================================================*/

@media(max-width:480px){


    .logo img{

        width:130px;

    }


    .article-header h1{

        font-size:2rem;

    }


    .category{

        font-size:.75rem;

    }


    .more-stories h3{

        font-size:1.6rem;

    }


    .card-content h3{

        font-size:1.6rem;

    }


}



/*==================================================
                ACCESIBILIDAD
==================================================*/

a:focus,
button:focus{

    outline:2px solid var(--accent);

    outline-offset:4px;

}



/*==================================================
                SELECCIÓN DE TEXTO
==================================================*/

::selection{

    background:var(--secondary);

    color:#fff;

}
/* Barra lectura */

.reading-progress{

position:fixed;

top:0;

left:0;

height:4px;

background:#1E3A8A;

width:0%;

z-index:2000;

}



/* Botón subir */

.back-top{

position:fixed;

right:30px;

bottom:30px;

width:45px;

height:45px;

border:none;

border-radius:50%;

background:#0F172A;

color:white;

font-size:22px;

cursor:pointer;

opacity:0;

visibility:hidden;

transition:.3s;

}


.back-top.visible{

opacity:1;

visibility:visible;

}



/* Animaciones */

.article-content figure,
.news-card,
.more-stories li{

opacity:0;

transform:translateY(30px);

transition:.8s;

}


.show{

opacity:1;

transform:none;

}



/* Menu móvil */

.mobile-menu{

display:none;

background:none;

border:none;

font-size:28px;

cursor:pointer;

}



@media(max-width:768px){


.mobile-menu{

display:block;

}


nav.active{

display:block;

position:absolute;

top:70px;

left:0;

width:100%;

background:white;

padding:30px;

}


nav.active ul{

flex-direction:column;

}


}