/* ===== RESET ===== */

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== BODY ===== */

body{
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    min-height: 100vh;
}

/* ===== HEADER ===== */

header{

    width: 95%;
    height: 90px;

    margin: 15px auto;

    background: #163f73;

    border-radius: 0 0 25px 25px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 40px;

    position: sticky;
    top: 0;

    z-index: 999;

    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* ===== LOGO ===== */

.logo{

    height: 45px;
    width: auto;

    object-fit: contain;
}

/* ===== NAV ===== */

nav{

    display: flex;
    align-items: center;

    gap: 45px;
}

/* ===== LINKS ===== */

nav a{

    text-decoration: none;

    color: white;

    font-size: 18px;
    font-weight: 600;

    transition: 0.3s;

    position: relative;

    padding: 8px 0;
}

/* ===== LINEA ===== */

nav a::after{

    content: "";

    position: absolute;

    left: 0;
    bottom: -4px;

    width: 0%;
    height: 3px;

    background: #4db5ff;

    border-radius: 10px;

    transition: 0.3s;
}

/* ===== HOVER ===== */

nav a:hover{

    color: #4db5ff;
}

nav a:hover::after{

    width: 100%;
}

/* ===== ACTIVO ===== */

nav a.active{

    color: #4db5ff;
}

nav a.active::after{

    width: 100%;
}

/* ===== MENU BTN ===== */

#menu-btn{

    display: none;

    border: none;

    background: #4db5ff;

    color: white;

    width: 45px;
    height: 45px;

    border-radius: 10px;

    font-size: 24px;

    cursor: pointer;
}

/* ===== TITULO ===== */

h1{

    text-align: center;

    margin: 50px 0;

    font-size: 3rem;

    color: #222;
}

/* ===== CONTENEDOR ===== */

.contenedor{

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));

    gap: 30px;

    padding: 20px 40px;
}

/* ===== CARD ===== */

.card{

    background: white;

    border-radius: 22px;

    overflow: hidden;

    position: relative;

    box-shadow: 0 5px 20px rgba(0,0,0,0.1);

    transition: 0.3s;

    cursor: pointer;
}

.card:hover{

    transform: translateY(-8px);
}

/* ===== IMG ===== */

.card img{

    width: 100%;
    height: 230px;

    object-fit: cover;
}

/* ===== CONTENIDO ===== */

.card-content{

    padding: 25px;
}

.card h2{

    text-align: center;

    font-size: 2rem;

    margin-bottom: 15px;

    color: #222;
}

.card p{

    text-align: center;

    color: #555;

    font-size: 1rem;

    line-height: 1.5;
}

/* ===== DOWNLOAD ===== */

.download-btn{

    position: absolute;

    top: 15px;
    right: 15px;

    width: 45px;
    height: 45px;

    border: none;

    border-radius: 12px;

    background: #22c55e;

    color: white;

    font-size: 20px;

    cursor: pointer;

    transition: 0.3s;
}

.download-btn:hover{

    transform: scale(1.1);
}

/* ===== MODAL ===== */

.modal{

    display: none;

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.8);

    justify-content: center;
    align-items: center;

    padding: 20px;

    z-index: 1000;
}

/* ===== MODAL CONTENT ===== */

.modal-content{

    width: 90%;
    max-width: 900px;

    max-height: 90vh;

    overflow-y: auto;

    background: white;

    border-radius: 20px;

    padding: 20px;
}

.modal-content img{

    width: 100%;

    margin-bottom: 20px;

    border-radius: 12px;
}

/* ===== CLOSE ===== */

.close{

    position: absolute;

    top: 20px;
    right: 30px;

    font-size: 45px;

    color: white;

    cursor: pointer;
}

/* ===== RESPONSIVE ===== */

@media(max-width: 768px){

    header{

        padding: 0 20px;
    }

    #menu-btn{

        display: block;
    }

    nav{

        position: absolute;

        top: 100px;
        right: 20px;

        width: 220px;

        background: #163f73;

        flex-direction: column;

        align-items: flex-start;

        padding: 20px;

        border-radius: 20px;

        display: none;

        box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    }

    nav.active{

        display: flex;
    }

    .contenedor{

        padding: 20px;
    }

    h1{

        font-size: 2rem;
    }
}