/*==================================================
DOQ EVENTS
Vista por días
Mobile First
==================================================*/

:root {
    --doq-bg: #ffffff;
    --doq-text: #472148;
    --doq-muted: #6b7280;
    --doq-border: #e5e7eb;
    --doq-accent: #472148;
    --doq-accent-text: #FFF8DC;
    --doq-radius: 18px;
    --doq-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --doq-shadow-hover: 0 18px 40px rgba(0, 0, 0, 0.14);
}

/*==================================================
WRAPPER
==================================================*/

.doq-days-wrapper {
    width: 100%;
    margin: 2rem auto;
}

/*==================================================
HEADER
==================================================*/

.doq-days-header {
    margin-bottom: 2rem;
}

.doq-month-title {
    margin: 0 0 1rem;
    text-align: center;
    font-size: clamp(1.8rem, 6vw, 3rem);
    line-height: 1.1;
    font-weight: 700;
    color: var(--doq-text);
}

/*==================================================
NAVEGACIÓN
==================================================*/

.doq-days-navigation {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.doq-days-scroll {
    flex: 1;
    display: flex;
    align-items: stretch;
    gap: 0.65rem;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-behavior: smooth;
    scroll-snap-type: x proximity;

    padding: 0.25rem 0 0.75rem;

    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.doq-days-scroll::-webkit-scrollbar {
    display: none;
}

/*==================================================
BOTONES DE DÍA
==================================================*/

.doq-day-button {
    flex: 0 0 auto;

    min-width: 72px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 0.25rem;

    padding: 0.85rem 0.8rem;

    border: 1px solid var(--doq-border);
    border-radius: 14px;

    background: #fff;
    color: var(--doq-text);

    cursor: pointer;

    scroll-snap-align: center;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.doq-day-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.doq-day-button.active {
    background: var(--doq-accent);
    color: var(--doq-accent-text);
    border-color: var(--doq-accent);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

.doq-day-button:focus-visible {
    outline: 2px solid var(--doq-accent);
    outline-offset: 3px;
}

.day-number {
    font-size: 1.55rem;
    line-height: 1;
    font-weight: 700;
}

.day-name {
    font-size: 0.72rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.8;
}

/*==================================================
FLECHAS
==================================================*/

.doq-arrow {
    flex: 0 0 auto;

    width: 42px;
    height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--doq-border);
    border-radius: 50%;

    background: #fff;
    color: var(--doq-text);

    font-size: 1rem;
    line-height: 1;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        opacity 0.2s ease;
}

.doq-arrow:hover:not(:disabled) {
    background: var(--doq-accent);
    color: var(--doq-accent-text);
    border-color: var(--doq-accent);
}

.doq-arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

.doq-arrow:focus-visible {
    outline: 2px solid var(--doq-accent);
    outline-offset: 3px;
}

/*==================================================
PANELES
==================================================*/

.doq-day-panel {
    display: none;
}

.doq-day-panel.active {
    display: block;
}

/*==================================================
GRID
==================================================*/

.doq-events-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.4rem;
}

/*==================================================
CARD
==================================================*/

.doq-event-card {
    overflow: hidden;

    border: 1px solid var(--doq-border);
    border-radius: var(--doq-radius);

    background: var(--doq-bg);

    box-shadow: var(--doq-shadow);

    opacity: 0;
    transform: translateY(14px);

    transition:
        transform 0.35s ease,
        opacity 0.35s ease,
        box-shadow 0.25s ease;

    transition-delay: var(--doq-card-delay, 0ms);
}

.doq-event-card.doq-card-visible {
    opacity: 1;
    transform: translateY(0);
}

.doq-event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--doq-shadow-hover);
}

.doq-event-card-link {
    display: flex;
    flex-direction: column;

    height: 100%;

    color: inherit;
    text-decoration: none;
}

/*==================================================
MEDIA
==================================================*/

.doq-event-card-media {
    position: relative;
    overflow: hidden;

    aspect-ratio: 16 / 9;

    background: #f3f4f6;
}

.doq-event-card-media img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.45s ease;
}

.doq-event-card:hover .doq-event-card-media img {
    transform: scale(1.045);
}

.doq-event-card-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.48) 0%,
            rgba(0, 0, 0, 0.08) 45%,
            rgba(0, 0, 0, 0) 70%
        );

    pointer-events: none;
}

/*==================================================
HORA SOBRE IMAGEN
==================================================*/

.doq-event-card-time {
    position: absolute;
    left: 0.85rem;
    bottom: 0.85rem;

    display: inline-flex;
    align-items: center;

    padding: 0.42rem 0.7rem;

    border-radius: 999px;

    background: #3eb489;
    color: #fff;

    font-weight: 600;
    line-height: 1;
}

/*==================================================
PLACEHOLDER
==================================================*/

.doq-event-card-placeholder {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f3f4f6;
    color: var(--doq-muted);

    font-size: 0.9rem;
}

/*==================================================
BODY
==================================================*/

.doq-event-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;

    padding: 1rem;
}

/*==================================================
TÍTULO
==================================================*/

.doq-event-card-title {
    margin: 0 0 0.9rem;

    color: var(--doq-text);

    font-size: 1.2rem;
    line-height: 1.25;
    font-weight: 700;
}

/*==================================================
METADATOS
==================================================*/

.doq-event-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;

    margin-top: auto;
}

.doq-event-card-meta-row {
    display: grid;
    grid-template-columns: minmax(85px, auto) 1fr;
    gap: 0.75rem;

    align-items: start;

    font-size: 0.9rem;
    line-height: 1.4;
}

.doq-event-card-label {
    color: var(--doq-muted);
    font-weight: 600;
}

.doq-event-card-value {
    color: var(--doq-text);
}

/*==================================================
TABLET
==================================================*/

@media (min-width: 768px) {

    .doq-days-wrapper {
        margin: 3rem auto;
    }

    .doq-days-navigation {
        gap: 0.75rem;
    }

    .doq-day-button {
        min-width: 82px;
        padding: 1rem;
    }

    .day-number {
        font-size: 1.75rem;
    }

    .doq-events-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.6rem;
    }

    .doq-event-card-body {
        padding: 1.15rem;
    }
}

/*==================================================
DESKTOP
==================================================*/

@media (min-width: 1024px) {

    .doq-month-title {
        margin-bottom: 1.4rem;
    }

    .doq-days-navigation {
        max-width: 1100px;
        margin-inline: auto;
    }

    .doq-events-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.8rem;
    }

    .doq-event-card-title {
        font-size: 1.3rem;
    }
}

/*==================================================
DESKTOP GRANDE
==================================================*/

@media (min-width: 1400px) {

    .doq-events-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/*==================================================
REDUCED MOTION
==================================================*/

@media (prefers-reduced-motion: reduce) {

    .doq-day-button,
    .doq-arrow,
    .doq-event-card,
    .doq-event-card-media img,
    .doq-days-scroll {
        scroll-behavior: auto;
        transition: none;
    }

    .doq-event-card {
        opacity: 1;
        transform: none;
    }
}