/* ==========================================
   1. CONTENEDOR PRINCIPAL Y BENTO GRID
   ========================================== */
.bento-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    grid-auto-rows: 120px;
    gap: 24px;
    padding: 90px 20px;
    max-width: 1200px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}

/* Configuración de celdas asimétricas para pantallas medianas y grandes */
@media (min-width: 768px) {
    .bento-main {
        grid-column: span 2;
        grid-row: span 2;
    }
    .bento-calendar {
        grid-row: span 2;
    }
}

/* Base de tarjetas con microinteracción de elevación suave */
.bento-item {
    background-color: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.bento-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ==========================================
   2. COMPONENTE INTERNO: MINI-SLIDER NATIVO
   ========================================== */
.bento-main {
    padding: 0 !important; /* El slider ocupa todo el espacio interno */
    background: #1d3557;
}

.bento-slider-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Ocultar barra de desplazamiento por estética */
.bento-slider-wrapper::-webkit-scrollbar {
    display: none;
}
.bento-slider-wrapper {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Cada diapositiva individual */
.bento-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-sizing: border-box;
}

/* Estilos de diapositiva de texto puro (Estilo Institucional) */
.slide-content-text {
    padding: 32px;
    color: #ffffff;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #1d3557 0%, #2a4d7c 100%);
}

/* Superposición oscura integrada para asegurar contraste en imágenes de Marketing */
.slide-full-link {
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
}

.slide-overlay-marketing {
    padding: 32px;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 60%, transparent 100%);
    color: #ffffff;
}

/* Botones de navegación flotantes sobre la tarjeta */
.slider-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-arrow {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    backdrop-filter: blur(4px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #1d3557;
    transform: scale(1.05);
}

/* Elementos tipográficos dentro del slider */
.bento-slide h3 {
    margin: 12px 0 8px 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.bento-slide p {
    margin: 0 0 16px 0;
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.4;
    max-width: 90%;
}

.bento-link {
    color: #e63946;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    align-self: flex-start;
}

.bento-link:hover {
    text-decoration: underline;
}

/* Badges (Etiquetas) */
.badge {
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-alert { background-color: #e63946; color: white; }
.badge-info { background-color: #457b9d; color: white; }
.badge-success { background-color: #2a9d8f; color: white; }

/* ==========================================
   3. ESTILOS DE LAS TARJETAS RESTANTES (SIN CAMBIOS)
   ========================================== */
/* Tarjeta de Calendario */
.bento-calendar {
    padding: 24px;
    background-color: #ffffff;
}

.bento-calendar h3 {
    margin: 0 0 16px 0;
    color: #1d3557;
    font-size: 1.2rem;
}

.date-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.date-list li {
    padding: 12px 0;
    border-bottom: 1px solid #edf2f7;
    font-size: 0.95rem;
    color: #4a5568;
}

.date-list li:last-child {
    border-bottom: none;
}

.date-list strong {
    color: #e63946;
    margin-right: 8px;
}

/* Tarjeta Highlight (Fondo con Imagen Estática) */
.bento-highlight {
    background-size: cover;
    background-position: center;
    position: relative;
}

.bento-highlight .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent, rgba(29, 53, 87, 0.9));
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
}

.bento-highlight h3 { margin: 0 0 4px 0; font-size: 1.25rem; }
.bento-highlight p { margin: 0; font-size: 0.9rem; opacity: 0.85; }

/* Tarjeta Mini */
.bento-mini {
    padding: 24px;
    background-color: #f8fafc;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.bento-mini h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #1d3557;
    max-width: 75%;
}

.arrow-btn {
    background-color: #1d3557;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.bento-mini:hover .arrow-btn {
    background-color: #e63946;
}