/*
 * expo-bento.css
 * Propuesta alternativa: Tarjetas horizontales divididas (imagen | contenido)
 * Diseño limpio con división 50/50 y minimalista
 */

.expo-bento {
    background-color: var(--color-bg, #ffffff);
}

.elige-bloque-espaciado.expo-bento {
    padding-top: clamp(3.5rem, 7vw, 5.5rem);
    padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
}

.expo-bento .elige-bloque-espaciado__inner {
    max-width: 76rem;
}

/* Título de la sección */
.expo-bento__titulo {
    margin: 0 0 clamp(0.75rem, 1.5vw, 1rem);
    font-family: var(--font-hero, 'Lexend', sans-serif);
    font-size: clamp(2.125rem, 5vw, 3.125rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    text-align: center;
    color: var(--color-accent-orange, #ff6b35);
}

.expo-bento__subtitulo {
    margin: 0 0 clamp(2.5rem, 5vw, 3.5rem);
    font-family: var(--font-hero, 'Lexend', sans-serif);
    font-size: clamp(0.875rem, 1.8vw, 1rem);
    font-weight: 500;
    text-align: center;
    color: #64748b;
}

/* Grid de tarjetas */
.expo-bento__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 4vw, 3rem);
    margin: 0;
    padding: 0;
}

/* Tarjeta individual con división horizontal */
.expo-bento__item {
    display: grid;
    grid-template-columns: 1fr;
    background: #ffffff;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 0.25rem 1.25rem rgba(15, 23, 42, 0.08);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.expo-bento__item:hover {
    transform: translateX(0.5rem);
    box-shadow: 0 0.75rem 2.5rem rgba(15, 23, 42, 0.12),
                0 0.25rem 1rem rgba(255, 107, 53, 0.08);
}

/* Orden alternado: par a la izquierda, impar a la derecha */
.expo-bento__item:nth-child(even) {
    direction: rtl;
}

.expo-bento__item:nth-child(even) > * {
    direction: ltr;
}

/* Contenedor de imagen */
.expo-bento__img-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.expo-bento__img-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
                transparent 0%,
                transparent 70%,
                rgba(255, 255, 255, 0.2) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.expo-bento__item:hover .expo-bento__img-container::before {
    opacity: 1;
}

.expo-bento__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.expo-bento__item:hover .expo-bento__img {
    transform: scale(1.05);
}

/* Contenido de la tarjeta */
.expo-bento__content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(0.75rem, 1.8vw, 1.125rem);
    padding: clamp(2rem, 4.5vw, 3rem) clamp(1.75rem, 4vw, 2.5rem);
    background: #ffffff;
}

/* Badge numerado */
.expo-bento__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 0.375rem 0.875rem;
    font-family: var(--font-hero, 'Lexend', sans-serif);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #ffffff;
    background: linear-gradient(135deg, #ff6b35 0%, #008888 100%);
    border-radius: 999rem;
    text-transform: uppercase;
    box-shadow: 0 0.125rem 0.5rem rgba(255, 107, 53, 0.2);
}

/* Título de tarjeta */
.expo-bento__titulo-card {
    margin: 0;
    font-family: var(--font-hero, 'Lexend', sans-serif);
    font-size: clamp(1.375rem, 3vw, 1.75rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.025em;
    color: var(--color-text, #0f172a);
    transition: color 0.3s ease;
}

.expo-bento__item:hover .expo-bento__titulo-card {
    color: #008888;
}

/* Descripción */
.expo-bento__desc {
    margin: 0;
    font-family: var(--font-hero, 'Lexend', sans-serif);
    font-size: clamp(0.9375rem, 2vw, 1.0625rem);
    font-weight: 400;
    line-height: 1.65;
    letter-spacing: -0.01em;
    color: var(--color-text-secondary, #475569);
}

/* Responsive: Tablet - División horizontal 50/50 */
@media (min-width: 48rem) {
    .expo-bento__item {
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
    }

    .expo-bento__img-container {
        aspect-ratio: auto;
        height: 100%;
    }
}

/* Responsive: Desktop - Ajustes de tamaño */
@media (min-width: 64rem) {
    .expo-bento__grid {
        gap: clamp(2.25rem, 4vw, 3.25rem);
    }

    .expo-bento__titulo-card {
        font-size: clamp(1.5rem, 2.6vw, 1.875rem);
    }

    .expo-bento__desc {
        font-size: clamp(1rem, 1.9vw, 1.125rem);
    }

    .expo-bento__content {
        padding: clamp(2.5rem, 5vw, 3.5rem) clamp(2.25rem, 4.5vw, 3rem);
    }
}

/* Dark theme */
[data-theme="dark"] .expo-bento {
    background-color: var(--color-bg, #0f172a);
}

[data-theme="dark"] .expo-bento__titulo {
    color: var(--color-accent-orange, #ff6b35);
}

[data-theme="dark"] .expo-bento__subtitulo {
    color: #94a3b8;
}

[data-theme="dark"] .expo-bento__item {
    background: #1e293b;
    box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .expo-bento__item:hover {
    box-shadow: 0 0.75rem 2.5rem rgba(0, 0, 0, 0.4),
                0 0.25rem 1rem rgba(255, 107, 53, 0.15);
}

[data-theme="dark"] .expo-bento__content {
    background: #1e293b;
}

[data-theme="dark"] .expo-bento__titulo-card {
    color: var(--color-text, #e2e8f0);
}

[data-theme="dark"] .expo-bento__item:hover .expo-bento__titulo-card {
    color: #5eead4;
}

[data-theme="dark"] .expo-bento__desc {
    color: var(--color-text-secondary, #94a3b8);
}

/* Reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
    .expo-bento__item,
    .expo-bento__img,
    .expo-bento__titulo-card,
    .expo-bento__img-container::before {
        transition: none;
    }

    .expo-bento__item:hover {
        transform: none;
    }

    .expo-bento__item:hover .expo-bento__img {
        transform: none;
    }
}
