.seccion-cajas {
    width: 100%;
    max-width: 100%;
    margin: 40px auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

.cajas-informativas {
    gap: 30px;
    flex-wrap: wrap;
    padding: 20px;
}

.cajas{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-right: 0;
}

.caja {
    width: 400px;
    height: 480px;
    padding: 20px;
    margin-right: 25px;
    position: relative;
    border-radius: 15px;
    background-color: #f5f5f5;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Efecto hover */
.caja:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 8px 15px 25px rgba(0, 0, 0, 0.9);
    background: linear-gradient(360deg, #A61281 0%, #f5f5f5 100%);
    z-index: 10;
}

/* Encabezado de la caja */
.caja .encabezado {
    font-size: 18px;
    font-family: "PT Sans", sans-serif;
    font-weight: 700;
    font-style: normal;
    color: #333;
    text-align: center;
    margin: 5px 0 5px 0;
    padding-bottom: 10px;
    width: 100%;
}

.caja:hover .encabezado {
    color: #000;
}

/* Imagen dentro de la caja */
.caja img {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: cover;
    margin: 25px 0;
    border-radius: 8px;
}

/* Texto de la caja */
.caja p {
    text-align: center;
    font-family: "PT Sans", sans-serif;
    font-weight: 400;
    font-style: italic;
    font-size: 14px;
    line-height: 1.5;
    margin: 15px 0 0 0;
    transition: color 0.3s ease;
}

/* Cambiar color del texto en hover */
.caja:hover p {
    color: #f5f5f5;
    font-family: "PT Sans", sans-serif;
    font-weight: 400;
    font-style: normal;
}

/* RESPONSIVE - Pantallas grandes */
@media (max-width: 1300px) {
    .seccion-cajas {
        max-width: 100%;
    }
    
    .caja {
        width: 340px;
        height: 420px;
    }
    
    .cajas-informativas {
        gap: 20px;
    }
}

/* Transición a columna - 1200px */
@media (max-width: 1200px) {
    .cajas {
        flex-direction: column;
    }
    
    .caja {
        width: 100%;
        max-width: 500px;
        height: auto;
        min-height: 450px;
        margin-right: 0;
        margin-bottom: 25px;
    }
    
    .cajas-informativas {
        gap: 0;
    }
}

/* Tablets - 768px */
@media (max-width: 768px) { 
    .cajas {
        flex-direction: column;
    }
    
    .caja {
        width: 100%;
        max-width: 450px;
        height: auto;
        min-height: 400px;
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .cajas-informativas {
        gap: 0;
        padding: 15px;
    }
}

/* Móviles - 480px */
@media (max-width: 480px) {
    .cajas {
        flex-direction: column;
    }
    
    .caja {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 350px;
        margin-right: 0;
        margin-bottom: 20px;
        padding: 15px;
    }
    
    .cajas-informativas {
        gap: 0;
        padding: 10px;
    }
    
    .caja img {
        max-height: 250px;
    }
}

/* Móviles pequeños - 360px */
@media (max-width: 360px) {
    .cajas {
        flex-direction: column;
    }
    
    .caja {
        width: 100%;
        height: auto;
        min-height: 320px;
        margin-right: 0;
        margin-bottom: 15px;
        padding: 12px;
    }
    
    .caja .encabezado {
        font-size: 16px;
    }
    
    .caja p {
        font-size: 13px;
    }
    
    .caja img {
        max-height: 220px;
    }
}