/* Recursos de Enfermería - Styles */
:root{
    --bg: #F3F0E8; /* beige muy claro */
    --navy: #0B3154; /* azul marino */
    --teal: #007E78; /* verde petróleo */
    --card-border: #B7C9CF;
    --white: #FFFFFF;
}

.recursos-root{
    background: var(--bg);
    padding-top: 56px;
    padding-bottom: 64px;
    display: flex;
    justify-content: center;
}

.recursos-inner{
    width: 100%;
    max-width: 1100px; /* entre 1050 y 1150 */
    padding: 0 20px;
}

/* Header */
.recursos-header{
    margin-bottom: 36px;
}

.header-row{
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.accent-bar{
    width: 6px;
    height: 20px;
    background: var(--teal);
    border-radius: 2px;
}

.header-label{
    font-size: 12px;
    font-weight: 700;
    color: var(--teal);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.header-logo{
    height: 126px; /* aproximadamente 3x del tamaño previo (42px * 3) */
    width: auto;
    display: block;
    object-fit: contain; /* evitar distorsión */
}

.main-title{
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 52px; /* target 48-54 */
    font-weight: 700;
    color: var(--navy);
    line-height: 1.02; /* compacto */
    margin: 6px 0 12px 0;
}

.subtitle{
    font-size: 18px;
    color: var(--navy);
    margin-bottom: 28px;
}

/* Grid */
.recursos-grid{
    margin-bottom: 32px;
}

.resource-card{
    background: var(--white) !important;
    border-radius: 12px !important;
    border: 1px solid var(--card-border) !important;
    height: 140px;
    display: flex;
    align-items: center;
    padding: 0 !important;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Apply hover effects only on devices that support hovering (avoid unintended touch behaviour) */
@media (hover: hover) {
    .resource-card:hover{
        transform: translateY(-4px);
    }
}

.card-inner{
    display: flex;
    align-items: center;
    width: 100%;
    padding: 18px 20px;
}

.card-left{
    width: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-box{
    width: 50px;
    height: 50px;
    background: var(--teal);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-white{
    color: var(--white) !important;
    font-size: 24px;
}

.card-center{
    flex: 1;
    padding-left: 18px;
}

.card-number{
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    color: var(--teal);
    margin-bottom: 6px;
}

.card-title{
    font-size: 20px;
    color: var(--navy);
    font-weight: 700;
    margin-bottom: 6px;
}

.card-desc{
    font-size: 15px;
    color: var(--navy);
}

.card-right{
    width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow-icon{
    color: var(--teal) !important;
    font-size: 24px;
}

.footer-divider{
    border-color: var(--card-border) !important;
    margin-top: 32px !important;
}

.recursos-footer{
    margin-top: 20px;
    color: var(--navy);
    font-size: 14px;
    line-height: 1.5;
    max-width: 900px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .header-logo{
        height: 96px; /* reducir en pantallas medianas */
    }
}

@media (max-width: 768px){
    .main-title{
        font-size: 36px; /* between 34-38 */
    }

    .header-logo{
        height: 72px; /* mobile: más pequeño pero legible */
    }

    .resource-card{
        height: auto;
        padding: 12px !important;
    }

    .card-inner{
        padding: 14px;
    }

    .card-left{
        width: 56px;
    }

    .card-center{
        padding-left: 12px;
    }

    .card-title{
        font-size: 18px;
    }

    .card-desc{
        font-size: 14px;
    }
}

/* Small mobile optimizations: stack card content, increase touch targets and spacing */
@media (max-width: 480px) {
    .recursos-root{
        padding-top: 28px;
        padding-bottom: 32px;
    }

    .recursos-inner{
        padding: 0 16px;
    }

    .header-row{
        gap: 8px;
    }

    .header-logo{
        height: 56px;
    }

    .main-title{
        font-size: 28px;
        margin: 8px 0 10px 0;
    }

    .subtitle{
        font-size: 15px;
        margin-bottom: 18px;
    }

    .resource-card{
        border-radius: 10px !important;
        padding: 10px !important;
    }

    .card-inner{
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px;
    }

    .card-left{
        width: 100%;
        justify-content: flex-start;
    }

    .icon-box{
        width: 56px;
        height: 56px;
        border-radius: 12px;
        flex-shrink: 0;
    }

    .card-center{
        padding-left: 0;
        width: 100%;
    }

    .card-title{
        font-size: 18px;
    }

    .card-desc{
        font-size: 15px;
    }

    .card-right{
        width: 100%;
        justify-content: flex-end;
    }

    .arrow-icon{
        font-size: 22px;
    }

    /* Ensure interactive areas meet touch target recommendations */
    .icon-box, .card-right, .resource-card {
        min-height: 44px;
        min-width: 44px;
    }
}
