/* ============================= VARIABLES ============================= */
:root{
    --gutter: clamp(20px, 5vw, 70px);
    --content-max: 1200px;
    --texto: #464646;
}

*{
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

body{
    margin: 0;
    overflow-x: hidden;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main{
    padding-top: var(--header-height);
}

a {
    text-decoration: none;
    color: var(--texto);
}

:focus-visible{
    outline: 3px solid #0000ff;
    outline-offset: 3px;
}

/* ============================= HERO ============================= */
.hero{
    background: linear-gradient(90deg, #0000ff, #32dbfd);
    color: white;
    padding: clamp(36px, 6vw, 70px) var(--gutter);
}

.hero h1{
    font-size: clamp(1.9rem, 1.2rem + 2.8vw, 4rem);
    line-height: 1.15;
    font-weight: 700;
    margin: 0 0 15px;
    text-wrap: balance;
}

.hero p{
    font-size: clamp(1rem, 0.92rem + 0.3vw, 1.3rem);
    line-height: 1.6;
    max-width: 700px;
    margin: 0;
}

/* ============================= CONTENEDOR ============================= */
.container{
    width: min(100% - 2 * var(--gutter), var(--content-max));
    margin: clamp(32px, 5vw, 64px) auto;
}

.card{
    background: #eef5fa;
    border-radius: 20px;
    padding: clamp(20px, 3vw, 36px);
    margin-bottom: 35px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.card-header{
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.icon-box{
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.blue{
    background: #0000ff;
}

.card-title{
    font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2.2rem);
    line-height: 1.25;
    font-weight: 700;
    color: var(--texto);
    text-wrap: balance;
}

.grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* ============================= DOCUMENTO DESCARGABLE ============================= */
.doc-item{
    background: white;
    border-radius: 14px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    border: 1px solid #e6e6e6;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

@media (hover: hover){
    .doc-item:hover{
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        border-color: #0000ff;
    }
}

.doc-left{
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.doc-icon{
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    background: #ffe9ee;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fa4156;
    font-size: 18px;
}

.doc-title{
    font-size: clamp(1rem, 0.95rem + 0.2vw, 1.2rem);
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: break-word;
}

.download{
    flex-shrink: 0;
    color: var(--texto);
    font-size: 20px;
    transition: color 0.3s ease;
}

.doc-item:hover .download{
    color: #0000ff;
}

/* ============================= PANTALLAS GRANDES ============================= */
@media (min-width: 1440px){
    :root{
        --content-max: 1400px;
    }
}

@media (min-width: 1920px){
    :root{
        --content-max: 1600px;
    }
}

@media (min-width: 2560px){
    :root{
        --content-max: 1900px;
    }
}

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

@media (max-width: 900px){

    .grid{
        grid-template-columns: 1fr;
    }

}

@media (max-width: 600px){

    .doc-item{
        flex-wrap: wrap;
    }

}

/* ============================= ACCESIBILIDAD ============================= */
@media (prefers-reduced-motion: reduce){
    html{
        scroll-behavior: auto;
    }

    .doc-item{
        transition: none;
    }
}
