/**
 * @file
 * Estilos para el módulo Home Galería y Medios
 */

/* Sección principal */
.gallery-media-section {
    background-color: #ffffff;
}

/* Custom card styling */
.content-card {
    display: flex;
    flex-direction: column;
}

/* Header personalizado */
.card-header-custom {
    display: flex;
    align-items: center;
}

.accent-bar {
    width: 6px;
    height: 40px;
    background-color: #C41E3A;
    margin-right: 15px;
    border-radius: 3px;
    flex-shrink: 0;
}

.card-header-custom h2 {
    font-size: 32px;
    font-weight: 400;
    color: #005DAA;
}

/* Contenido de la card */
.card-content-custom {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Contenedor de imagen (es <a>) */
.image-container {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.image-container img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

/* Overlay con gradiente */
.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
    padding: 30px 25px 25px;
    transition: background 0.3s ease;
}

.image-container:hover .overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 60%, transparent 100%);
}

.image-text {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Botón personalizado */
.btn-outline-custom {
    padding: 12px 50px;
    font-size: 16px;
    font-weight: 500;
    color: #C41E3A;
    background-color: transparent;
    border: 2px solid #C41E3A;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-custom:hover {
    background-color: #C41E3A;
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}

.btn-outline-custom:active {
    transform: scale(0.98);
}

.btn-outline-custom:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(196, 30, 58, 0.25);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .card-header-custom h2 {
        font-size: 28px;
    }

    .image-container img {
        height: 300px;
    }
}

@media (max-width: 767.98px) {
    .card-header-custom h2 {
        font-size: 26px;
    }

    .accent-bar {
        height: 35px;
    }

    .image-container img {
        height: 280px;
    }

    .image-text {
        font-size: 16px;
    }

    .btn-outline-custom {
        padding: 10px 40px;
        font-size: 15px;
    }
}

@media (max-width: 575.98px) {
    .card-header-custom h2 {
        font-size: 24px;
    }

    .image-container img {
        height: 250px;
    }

    .image-text {
        font-size: 15px;
    }

    .overlay {
        padding: 20px 15px 15px;
    }
}

/* Animaciones */
.content-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.content-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}
