/* ============================================
   ONA Club · Portada de Eventos (app v2, imagen 17)
   Cabecera «Vive experiencias únicas», baldosas grandes (Eventos, Armario),
   baldosas pequeñas (Excursiones, Retos, Talleres, Galería) y carrusel de
   próximos eventos. Prefijo de clases: exp-
   ============================================ */

.exp { display: flex; flex-direction: column; gap: 14px; }

.exp button { -webkit-tap-highlight-color: transparent; }
.exp button:focus-visible,
.exp a:focus-visible { outline: 2px solid #8a7762; outline-offset: 3px; }

/* Tarjeta base de la v2 */
.exp-card {
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(255, 255, 255, .95);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(94, 79, 63, .07), 0 1px 3px rgba(94, 79, 63, .05);
}

/* Icono en círculo blanco y botón redondo con chevron */
.exp-ico {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .95);
    color: #7d6853;
    box-shadow: 0 4px 12px rgba(43, 33, 24, .12);
}
.exp-go {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--text-heading);
    box-shadow: 0 2px 6px rgba(94, 79, 63, .12);
}

/* ── 1. Cabecera ── */
.exp-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 252px;
    border-radius: 28px;
    background: #f3e9dd;
    box-shadow: 0 14px 34px rgba(94, 79, 63, .10);
}
.exp-hero__photo {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 70%;
    background: #e9dccd center / cover no-repeat;
}
/* Funde la foto en crema por la izquierda (donde va el texto) y por abajo */
.exp-hero__fade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, #f6eee5 0%, rgba(246, 238, 229, .94) 32%, rgba(246, 238, 229, .45) 58%, rgba(246, 238, 229, 0) 80%),
        linear-gradient(0deg, rgba(246, 238, 229, .6) 0%, rgba(246, 238, 229, 0) 35%);
}
.exp-hero--sin-foto {
    background:
        radial-gradient(120% 90% at 88% 12%, #e4ceb8 0%, rgba(228, 206, 184, 0) 60%),
        radial-gradient(80% 70% at 100% 100%, #d9c2aa 0%, rgba(217, 194, 170, 0) 70%),
        linear-gradient(160deg, #f8f1e9 0%, #efe2d3 100%);
}
.exp-hero--sin-foto .exp-hero__fade { display: none; }
.exp-hero__body {
    position: relative;
    z-index: 1;
    max-width: 82%;
    padding: 24px 20px 22px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}
.exp-hero__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(30px, 8.8vw, 48px);
    font-weight: 400;
    line-height: .98;
    letter-spacing: -.01em;
    color: var(--text-heading);
}
.exp-hero__title em { font-style: italic; font-weight: 500; color: #7d6853; }
.exp-hero__tag {
    margin: 2px 0 0;
    font-size: 11px;
    line-height: 1.75;
    letter-spacing: .3em;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-secondary);
}
.exp-hero__btn {
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 0;
    border-radius: 999px;
    background: #8a7762;
    color: #fff;
    font: inherit;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(94, 79, 63, .22);
    transition: transform .15s ease, background .15s ease;
}
.exp-hero__btn:hover { background: #7d6853; }
.exp-hero__btn:active { transform: scale(.97); }

/* ── 2. Baldosas grandes ── */
.exp-big-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.exp-big-row--solo { grid-template-columns: minmax(0, 1fr); }
.exp-big {
    position: relative;
    overflow: hidden;
    min-width: 0;
    min-height: 156px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    border: 0;
    border-radius: 22px;
    background-color: #8a7762;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: #fff;
    font: inherit;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(43, 33, 24, .14);
    transition: transform .2s ease;
}
/* Oscurece la parte de abajo para que el texto blanco se lea sobre cualquier foto */
.exp-big::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(30, 22, 16, 0) 28%, rgba(30, 22, 16, .64) 100%);
}
.exp-big:not(.exp-big--foto)::before { background: linear-gradient(180deg, rgba(30, 22, 16, 0) 40%, rgba(30, 22, 16, .3) 100%); }
.exp-big > * { position: relative; }
.exp-big__txt { display: flex; flex-direction: column; gap: 5px; padding-right: 34px; min-width: 0; }
.exp-big__title {
    font-family: var(--font-display);
    font-size: clamp(24px, 6.8vw, 34px);
    font-weight: 500;
    line-height: 1;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .18);
}
.exp-big__text { font-size: 12px; line-height: 1.3; opacity: .96; }
.exp-big .exp-go { position: absolute; right: 10px; bottom: 10px; }
.exp-big-row--solo .exp-big { min-height: 140px; }
.exp-big-row--solo .exp-big__txt { max-width: 70%; }

/* ── 3. Baldosas pequeñas: fila de 4 (img 17); 2×2 solo en pantallas muy estrechas ── */
.exp-small-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
@media (max-width: 339px) {
    .exp-small-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.exp-small {
    position: relative;
    min-width: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .95);
    border-radius: 16px;
    background: rgba(255, 255, 255, .82);
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(94, 79, 63, .07), 0 1px 3px rgba(94, 79, 63, .05);
    transition: transform .2s ease;
}
.exp-small__img {
    display: block;
    height: 64px;
    background-color: #e9dfd2;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.exp-ico--sm { position: absolute; top: 7px; left: 7px; width: 30px; height: 30px; }
.exp-ico--sm svg { width: 16px; height: 16px; }
.exp-small__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-height: 64px;
    padding: 8px 6px 10px;
}
.exp-small__title {
    font-family: var(--font-display);
    font-size: clamp(11px, 3.1vw, 18px);
    letter-spacing: -.02em;
    font-weight: 500;
    line-height: 1.1;
    color: var(--text-heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.exp-small__text { font-size: 10px; line-height: 1.25; color: var(--text-muted); }
/* El chevron solo cabe al lado del texto cuando hay sitio; en el móvil toda la baldosa ya es el botón */
.exp-small .exp-go { display: none; }
@media (min-width: 600px) {
    .exp-small__img { height: 92px; }
    .exp-small__body { padding: 10px 40px 12px 12px; }
    .exp-small__text { font-size: 11.5px; }
    .exp-small .exp-go { display: flex; position: absolute; right: 9px; bottom: 11px; width: 26px; height: 26px; background: #f7f1ea; box-shadow: none; }
}

@media (hover: hover) {
    .exp-big:hover,
    .exp-small:hover { transform: translateY(-2px); }
}
.exp-big:active,
.exp-small:active { transform: scale(.98); }

/* ── 4. Próximos eventos ── */
.exp-upcoming { padding: 16px 0 14px; overflow: hidden; }
.exp-sec { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 0 16px 12px; }
.exp-sec__title {
    margin: 0;
    font-family: var(--font-family);
    font-size: 12px;
    letter-spacing: .3em;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
}
.exp-sec__more {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 13.5px;
    color: var(--text-heading);
    text-decoration: none;
    white-space: nowrap;
}
.exp-ev-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 16px;
    padding: 2px 16px 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.exp-ev-track::-webkit-scrollbar { display: none; }
.exp-ev {
    flex: 0 0 43%;
    max-width: 210px;
    min-width: 0;
    scroll-snap-align: start;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(94, 79, 63, .08);
    border-radius: 18px;
    background: #fff;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(94, 79, 63, .07);
}
.exp-ev:only-child { flex-basis: 100%; max-width: none; }
.exp-ev__img {
    position: relative;
    display: block;
    height: 92px;
    background-color: #e9dfd2;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.exp-ev__date {
    position: absolute;
    top: 10px;
    left: 10px;
    min-width: 38px;
    padding: 5px 5px 4px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .95);
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    box-shadow: 0 3px 10px rgba(43, 33, 24, .14);
}
.exp-ev__date b { font-family: var(--font-display); font-size: 18px; font-weight: 500; color: var(--text-heading); }
.exp-ev__date small { margin-top: 3px; font-size: 10px; letter-spacing: .1em; font-weight: 600; color: var(--text-secondary); }
.exp-ev__mine {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(79, 138, 91, .92);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
}
.exp-ev__body { position: relative; flex: 1; display: flex; padding: 9px 10px 11px; }
/* Distintivo de acceso anticipado, abajo a la izquierda de la foto */
.exp-ev__img .exp-ev__early { position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; gap: 4px; font-size: 10px; letter-spacing: .03em; }
.exp-ev__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.exp-ev__title {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.12;
    color: var(--text-heading);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}
.exp-ev__meta {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.exp-ev__meta svg { flex: 0 0 auto; color: #8a7762; }
.exp-ev .exp-go { position: absolute; right: 8px; bottom: 10px; width: 24px; height: 24px; background: #f5efe8; box-shadow: none; }
.exp-ev__meta:last-child { padding-right: 26px; }

.exp-ev-skel {
    height: 168px;
    margin: 0 16px;
    border-radius: 18px;
    background: linear-gradient(100deg, rgba(247, 241, 234, .7) 30%, rgba(255, 255, 255, .95) 50%, rgba(247, 241, 234, .7) 70%);
    background-size: 300% 100%;
    animation: expShine 1.4s linear infinite;
}
@keyframes expShine { to { background-position: -150% 0; } }

.exp-empty {
    margin: 0 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 18px;
    background: #fbf7f2;
    border: 1px dashed rgba(138, 119, 98, .3);
}
.exp-empty .exp-ico { background: #fff; box-shadow: none; }
.exp-empty__title { font-family: var(--font-display); font-size: 17px; line-height: 1.2; color: var(--text-heading); }
.exp-empty__text { margin-top: 3px; font-size: 13px; line-height: 1.35; color: var(--text-secondary); }

@media (prefers-reduced-motion: reduce) {
    .exp-ev-skel { animation: none; }
    .exp-big, .exp-small, .exp-hero__btn { transition: none; }
}
