/*======================================
    ESTILOS GENERALES
======================================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{

    font-family:Arial, Helvetica, sans-serif;
    background:#f5f7fa;
    color:#333;
    line-height:1.7;

}

img{
    max-width:100%;
}

a{
    text-decoration:none;
}

h1,h2,h3{
    color:#0b4f8a;
}


/*======================================
            HEADER
======================================*/

header{

position:sticky;

top:0;

left:0;

width:100%;

background:#0b2c4d;

z-index:999;

box-shadow:0 3px 12px rgba(0,0,0,.15);

}

.navbar{

max-width:1300px;

margin:auto;

display:flex;

justify-content:space-between;

align-items:center;

padding:16px 30px;

}

.logo{

font-size:28px;

font-weight:bold;

color:#ffffff;

text-decoration:none;

}

.logo:hover{

color:#ffc107;

}

nav ul{

display:flex;

list-style:none;

gap:22px;

margin:0;

padding:0;

}

nav ul li{

display:flex;

align-items:center;

}

nav ul li a{

color:#ffffff;

text-decoration:none;

font-size:15px;

font-weight:600;

transition:.3s;

padding:8px 4px;

}

nav ul li a:hover{

color:#ffc107;

}

.hero{

padding-top:60px;

}

@media(max-width:1000px){

.navbar{

flex-direction:column;

padding:18px;

}

nav ul{

flex-wrap:wrap;

justify-content:center;

gap:15px;

margin-top:18px;

}

.logo{

margin-bottom:8px;

}

}

@media(max-width:600px){

nav ul{

flex-direction:column;

align-items:center;

}

nav ul li{

width:100%;

justify-content:center;

}

}

/*======================================
            HERO
======================================*/

.hero{

    background:linear-gradient(rgba(11,79,138,.8),rgba(11,79,138,.8)),
    url("../img/hero.jpg");

    background-size:cover;
    background-position:center;

    color:white;

    text-align:center;

    padding:120px 20px;

}

.hero h1{

    font-size:48px;

    margin-bottom:25px;

}

.hero p{

    max-width:850px;

    margin:auto;

    font-size:20px;

}

.boton{

    display:inline-block;

    margin-top:35px;

    background:#ffc107;

    color:#222;

    padding:15px 35px;

    border-radius:8px;

    font-weight:bold;

    transition:.3s;

}

.boton:hover{

    background:#ffca28;

}

/*======================================
        SECCIONES
======================================*/

section{

    padding:70px 8%;

}

section h2{

    text-align:center;

    margin-bottom:45px;

    font-size:34px;

}

/*======================================
        GRID
======================================*/

.contenedor{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));

    gap:30px;

}

/*======================================
        TARJETAS
======================================*/

.card{

    background:white;

    border-radius:10px;

    padding:30px;

    box-shadow:0 8px 20px rgba(0,0,0,.08);

    transition:.3s;

}

.card:hover{

    transform:translateY(-8px);

}

.card h3{

    margin-bottom:15px;

}

.card p{

    margin-bottom:20px;

}

.card a{

    color:#0b4f8a;

    font-weight:bold;

}

/*======================================
        CATEGORÍAS
======================================*/

.categoria{

    background:white;

    text-align:center;

    padding:35px;

    border-radius:10px;

    box-shadow:0 8px 18px rgba(0,0,0,.08);

    transition:.3s;

    font-size:50px;

}

.categoria h3{

    margin-top:15px;

    font-size:22px;

}

.categoria:hover{

    background:#0b4f8a;

    color:white;

}

.categoria:hover h3{

    color:white;

}

/*======================================
        INFORMACIÓN
======================================*/

.informacion{

    background:white;

}

.informacion p{

    max-width:900px;

    margin:20px auto;

    text-align:center;

    font-size:18px;

}

/*======================================
        LEGAL
======================================*/

.legal{

    background:#eef4fb;

}

.legal p{

    max-width:1000px;

    margin:18px auto;

    text-align:center;

}

/*======================================
        FOOTER
======================================*/

footer{

    background:#092b4d;

    color:white;

    text-align:center;

    padding:45px 20px;

}

footer h3{

    color:white;

    margin-bottom:15px;

}

footer hr{

    margin:25px auto;

    width:200px;

    border:1px solid rgba(255,255,255,.3);

}

footer p{

    margin:10px 0;

    color:#ddd;

}

/*======================================
        RESPONSIVE
======================================*/

@media(max-width:900px){

header{

    flex-direction:column;

}

nav{

    margin-top:15px;

}

nav a{

    display:inline-block;

    margin:10px;

}

.hero{

    padding:80px 20px;

}

.hero h1{

    font-size:34px;

}

.hero p{

    font-size:18px;

}

section{

    padding:50px 6%;

}

}

/*==========================
BUSCADOR
==========================*/

.buscador{

background:#ffffff;

text-align:center;

}

.buscador input{

width:60%;

max-width:600px;

padding:15px;

font-size:16px;

border:1px solid #ccc;

border-radius:8px;

}

.buscador button{

padding:15px 30px;

border:none;

background:#0b4f8a;

color:white;

border-radius:8px;

margin-left:10px;

cursor:pointer;

}

/*==========================
ESTADÍSTICAS
==========================*/

.estadisticas{

background:#0b4f8a;

color:white;

text-align:center;

}

.estadisticas h2{

color:#ffd54f;

font-size:45px;

margin-bottom:10px;

}

.estadisticas p{

font-size:18px;

}

/*==========================
FAQ
==========================*/

.pregunta{

background:white;

padding:25px;

margin-bottom:20px;

border-left:5px solid #0b4f8a;

box-shadow:0 5px 15px rgba(0,0,0,.05);

}

.pregunta h3{

margin-bottom:10px;

}

/*==========================
RESPONSIVE
==========================*/

@media(max-width:768px){

.buscador input{

width:100%;

margin-bottom:15px;

}

.buscador button{

margin-left:0;

width:100%;

}

}


/*======================================
            FOOTER
======================================*/

footer{

background:#0b2c4d;

color:#ffffff;

margin-top:60px;

padding:60px 8% 25px;

}

.footer-contenedor{

display:grid;

grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

gap:40px;

}

.footer-col h3{

margin-bottom:20px;

color:#ffc107;

font-size:22px;

}

.footer-col p{

color:#d9d9d9;

margin-bottom:12px;

font-size:15px;

line-height:1.8;

}

.footer-col ul{

list-style:none;

padding:0;

}

.footer-col ul li{

margin-bottom:12px;

}

.footer-col ul li a{

color:#d9d9d9;

transition:.3s;

}

.footer-col ul li a:hover{

color:#ffc107;

padding-left:5px;

}

footer hr{

margin:40px 0 20px;

border:1px solid rgba(255,255,255,.15);

}

.footer-bottom{

text-align:center;

}

.footer-bottom p{

color:#d1d1d1;

font-size:14px;

margin:8px 0;

}

@media(max-width:768px){

footer{

text-align:center;

}

.footer-col{

margin-bottom:20px;

}

}


/*======================================
            BUSCADOR
======================================*/

.busqueda{

max-width:900px;

margin:50px auto;

padding:35px;

background:#ffffff;

border-radius:12px;

box-shadow:0 5px 20px rgba(0,0,0,.08);

text-align:center;

}

.busqueda h2{

margin-bottom:20px;

color:#0b2c4d;

}

#buscador{

width:100%;

padding:15px;

font-size:17px;

border:2px solid #dcdcdc;

border-radius:8px;

outline:none;

transition:.3s;

}

#buscador:focus{

border-color:#ffc107;

}

#listaArticulos{

list-style:none;

margin-top:25px;

padding:0;

text-align:left;

}

#listaArticulos li{

padding:12px 15px;

border-bottom:1px solid #ececec;

}

#listaArticulos li:last-child{

border-bottom:none;

}

#listaArticulos a{

text-decoration:none;

color:#0b2c4d;

font-weight:600;

display:block;

transition:.3s;

}

#listaArticulos a:hover{

color:#0077cc;

padding-left:6px;

}

