/* APRENDE - Catálogo de artículos */

@font-face {
    font-family: 'Regular';
    src: url(../../recursos/fonts/Regular.woff2), url(../../recursos/fonts/Regular.woff);
}

@font-face {
    font-family: 'Negrita';
    src: url(../../recursos/fonts/Negrita.woff2), url(../../recursos/fonts/Negrita.woff);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* 1. Large Screens (> 1367px) */
@media (min-width: 1367px) {
    .pagina {
        display: flex;
        flex-direction: column;
        width: 100%;
        justify-content: center;
        align-items: center;
        background-color: #f7f8f8;
    }

    /* Sección 1 - Hero */
    .seccion-1 {
        display: flex;
        width: 100%;
        height: 300px;
        justify-content: center;
        align-items: center;
        background-color: #213242;
    }

    .modulo-11 {
        display: flex;
        flex-direction: column;
        width: 1200px;
        gap: 20px;
        text-align: center;
    }

    .modulo-11 h1 {
        font-family: 'Negrita';
        font-size: 48px;
        color: #f7f8f8;
    }

    .modulo-11 p {
        font-family: 'Regular';
        font-size: 18px;
        color: #f7f8f8;
    }

    /* Sección 2 - Catálogo */
    .seccion-2 {
        display: flex;
        width: 100%;
        justify-content: center;
        align-items: center;
        padding: 80px 0;
    }

    .modulo-21 {
        display: flex;
        width: 1200px;
        justify-content: center;
        align-items: flex-start;
        gap: 40px;
        flex-wrap: wrap;
    }

    .tarjeta-21 {
        display: flex;
        flex-direction: column;
        width: 360px;
        background-color: #fff;
        border-radius: 12px;
        overflow: hidden;
        text-decoration: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .tarjeta-21:hover {
        transform: translateY(-8px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    }

    .imagen-211 {
        display: flex;
        width: 100%;
        height: 200px;
        overflow: hidden;
    }

    .imagen-211 img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .contenido-211 {
        display: flex;
        flex-direction: column;
        padding: 24px;
        gap: 12px;
    }

    .tag-211 {
        display: flex;
        width: 130px;
        height: 18px;
        justify-content: center;
        align-items: center;
        background-color: #f7f8f8;
        font-family: 'Regular';
        font-size: 11px;
        color: #666;
    }

    .contenido-211 h3 {
        font-family: 'Negrita';
        font-size: 20px;
        color: #213242;
        line-height: 1.3;
    }

    .contenido-211 p {
        font-family: 'Regular';
        font-size: 14px;
        color: #666;
        line-height: 1.6;
    }
}

/* 2. Desktop (1281px - 1366px) */
@media (min-width: 1281px) and (max-width: 1366px) {
    .pagina {
        display: flex;
        flex-direction: column;
        width: 100%;
        justify-content: center;
        align-items: center;
        background-color: #f7f8f8;
    }

    .seccion-1 {
        display: flex;
        width: 100%;
        height: 280px;
        justify-content: center;
        align-items: center;
        background-color: #213242;
    }

    .modulo-11 {
        display: flex;
        flex-direction: column;
        width: 1100px;
        gap: 18px;
        text-align: center;
    }

    .modulo-11 h1 {
        font-family: 'Negrita';
        font-size: 44px;
        color: #f7f8f8;
    }

    .modulo-11 p {
        font-family: 'Regular';
        font-size: 17px;
        color: #f7f8f8;
    }

    .seccion-2 {
        display: flex;
        width: 100%;
        justify-content: center;
        align-items: center;
        padding: 70px 0;
    }

    .modulo-21 {
        display: flex;
        width: 1100px;
        justify-content: center;
        align-items: flex-start;
        gap: 35px;
        flex-wrap: wrap;
    }

    .tarjeta-21 {
        display: flex;
        flex-direction: column;
        width: 340px;
        background-color: #fff;
        border-radius: 12px;
        overflow: hidden;
        text-decoration: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .tarjeta-21:hover {
        transform: translateY(-8px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    }

    .imagen-211 {
        display: flex;
        width: 100%;
        height: 190px;
        overflow: hidden;
    }

    .imagen-211 img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .contenido-211 {
        display: flex;
        flex-direction: column;
        padding: 22px;
        gap: 10px;
    }

    .tag-211 {
        display: flex;
        width: 120px;
        height: 17px;
        justify-content: center;
        align-items: center;
        background-color: #f7f8f8;
        font-family: 'Regular';
        font-size: 10px;
        color: #666;
    }

    .contenido-211 h3 {
        font-family: 'Negrita';
        font-size: 19px;
        color: #213242;
        line-height: 1.3;
    }

    .contenido-211 p {
        font-family: 'Regular';
        font-size: 13px;
        color: #666;
        line-height: 1.6;
    }
}

/* 3. Laptop (1025px - 1280px) */
@media (min-width: 1025px) and (max-width: 1280px) {
    .pagina {
        display: flex;
        flex-direction: column;
        width: 100%;
        justify-content: center;
        align-items: center;
        background-color: #f7f8f8;
    }

    .seccion-1 {
        display: flex;
        width: 100%;
        height: 250px;
        justify-content: center;
        align-items: center;
        background-color: #213242;
    }

    .modulo-11 {
        display: flex;
        flex-direction: column;
        width: 950px;
        gap: 16px;
        text-align: center;
    }

    .modulo-11 h1 {
        font-family: 'Negrita';
        font-size: 38px;
        color: #f7f8f8;
    }

    .modulo-11 p {
        font-family: 'Regular';
        font-size: 16px;
        color: #f7f8f8;
    }

    .seccion-2 {
        display: flex;
        width: 100%;
        justify-content: center;
        align-items: center;
        padding: 60px 0;
    }

    .modulo-21 {
        display: flex;
        width: 950px;
        justify-content: center;
        align-items: flex-start;
        gap: 30px;
        flex-wrap: wrap;
    }

    .tarjeta-21 {
        display: flex;
        flex-direction: column;
        width: 290px;
        background-color: #fff;
        border-radius: 10px;
        overflow: hidden;
        text-decoration: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .tarjeta-21:hover {
        transform: translateY(-6px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    }

    .imagen-211 {
        display: flex;
        width: 100%;
        height: 170px;
        overflow: hidden;
    }

    .imagen-211 img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .contenido-211 {
        display: flex;
        flex-direction: column;
        padding: 20px;
        gap: 10px;
    }

    .tag-211 {
        display: flex;
        width: 110px;
        height: 16px;
        justify-content: center;
        align-items: center;
        background-color: #f7f8f8;
        font-family: 'Regular';
        font-size: 10px;
        color: #666;
    }

    .contenido-211 h3 {
        font-family: 'Negrita';
        font-size: 17px;
        color: #213242;
        line-height: 1.3;
    }

    .contenido-211 p {
        font-family: 'Regular';
        font-size: 12px;
        color: #666;
        line-height: 1.6;
    }
}

/* 4. Tablet (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .pagina {
        display: flex;
        flex-direction: column;
        width: 100%;
        justify-content: center;
        align-items: center;
        background-color: #f7f8f8;
    }

    .seccion-1 {
        display: flex;
        width: 100%;
        height: 220px;
        justify-content: center;
        align-items: center;
        background-color: #213242;
        padding: 0 5%;
    }

    .modulo-11 {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 14px;
        text-align: center;
    }

    .modulo-11 h1 {
        font-family: 'Negrita';
        font-size: 32px;
        color: #f7f8f8;
    }

    .modulo-11 p {
        font-family: 'Regular';
        font-size: 15px;
        color: #f7f8f8;
    }

    .seccion-2 {
        display: flex;
        width: 100%;
        justify-content: center;
        align-items: center;
        padding: 50px 5%;
    }

    .modulo-21 {
        display: flex;
        width: 100%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
    }

    .tarjeta-21 {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 500px;
        background-color: #fff;
        border-radius: 10px;
        overflow: hidden;
        text-decoration: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .tarjeta-21:hover {
        transform: translateY(-4px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    }

    .imagen-211 {
        display: flex;
        width: 100%;
        height: 250px;
        overflow: hidden;
    }

    .imagen-211 img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .contenido-211 {
        display: flex;
        flex-direction: column;
        padding: 20px;
        gap: 10px;
    }

    .tag-211 {
        display: flex;
        width: 110px;
        height: 16px;
        justify-content: center;
        align-items: center;
        background-color: #f7f8f8;
        font-family: 'Regular';
        font-size: 10px;
        color: #666;
    }

    .contenido-211 h3 {
        font-family: 'Negrita';
        font-size: 18px;
        color: #213242;
        line-height: 1.3;
    }

    .contenido-211 p {
        font-family: 'Regular';
        font-size: 13px;
        color: #666;
        line-height: 1.6;
    }
}

/* 5. Mobile (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .pagina {
        display: flex;
        flex-direction: column;
        width: 100%;
        justify-content: center;
        align-items: center;
        background-color: #f7f8f8;
    }

    .seccion-1 {
        display: flex;
        width: 100%;
        height: 200px;
        justify-content: center;
        align-items: center;
        background-color: #213242;
        padding: 0 5%;
    }

    .modulo-11 {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 12px;
        text-align: center;
    }

    .modulo-11 h1 {
        font-family: 'Negrita';
        font-size: 28px;
        color: #f7f8f8;
    }

    .modulo-11 p {
        font-family: 'Regular';
        font-size: 14px;
        color: #f7f8f8;
    }

    .seccion-2 {
        display: flex;
        width: 100%;
        justify-content: center;
        align-items: center;
        padding: 40px 5%;
    }

    .modulo-21 {
        display: flex;
        width: 100%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 25px;
    }

    .tarjeta-21 {
        display: flex;
        flex-direction: column;
        width: 100%;
        background-color: #fff;
        border-radius: 8px;
        overflow: hidden;
        text-decoration: none;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .tarjeta-21:hover {
        transform: translateY(-4px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    }

    .imagen-211 {
        display: flex;
        width: 100%;
        height: 200px;
        overflow: hidden;
    }

    .imagen-211 img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .contenido-211 {
        display: flex;
        flex-direction: column;
        padding: 18px;
        gap: 8px;
    }

    .tag-211 {
        display: flex;
        width: 100px;
        height: 14px;
        justify-content: center;
        align-items: center;
        background-color: #f7f8f8;
        font-family: 'Regular';
        font-size: 9px;
        color: #666;
    }

    .contenido-211 h3 {
        font-family: 'Negrita';
        font-size: 16px;
        color: #213242;
        line-height: 1.3;
    }

    .contenido-211 p {
        font-family: 'Regular';
        font-size: 12px;
        color: #666;
        line-height: 1.6;
    }
}

/* 6. Mobile Small (320px - 480px) */
@media (min-width: 320px) and (max-width: 480px) {
    .pagina {
        display: flex;
        flex-direction: column;
        width: 100%;
        justify-content: center;
        align-items: center;
        background-color: #f7f8f8;
    }

    .seccion-1 {
        display: flex;
        width: 100%;
        height: 180px;
        justify-content: center;
        align-items: center;
        background-color: #213242;
        padding: 0 5%;
    }

    .modulo-11 {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 10px;
        text-align: center;
    }

    .modulo-11 h1 {
        font-family: 'Negrita';
        font-size: 24px;
        color: #f7f8f8;
    }

    .modulo-11 p {
        font-family: 'Regular';
        font-size: 12px;
        color: #f7f8f8;
    }

    .seccion-2 {
        display: flex;
        width: 100%;
        justify-content: center;
        align-items: center;
        padding: 35px 5%;
    }

    .modulo-21 {
        display: flex;
        width: 100%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
    }

    .tarjeta-21 {
        display: flex;
        flex-direction: column;
        width: 100%;
        background-color: #fff;
        border-radius: 8px;
        overflow: hidden;
        text-decoration: none;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .tarjeta-21:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    }

    .imagen-211 {
        display: flex;
        width: 100%;
        height: 180px;
        overflow: hidden;
    }

    .imagen-211 img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .contenido-211 {
        display: flex;
        flex-direction: column;
        padding: 16px;
        gap: 8px;
    }

    .tag-211 {
        display: flex;
        width: 90px;
        height: 14px;
        justify-content: center;
        align-items: center;
        background-color: #f7f8f8;
        font-family: 'Regular';
        font-size: 8px;
        color: #666;
    }

    .contenido-211 h3 {
        font-family: 'Negrita';
        font-size: 15px;
        color: #213242;
        line-height: 1.3;
    }

    .contenido-211 p {
        font-family: 'Regular';
        font-size: 11px;
        color: #666;
        line-height: 1.6;
    }
}