/* =========================================================
   CLANDELERO — PORTADA V13.7
   Hoja exclusiva de index.php.
   Todas las reglas se encapsulan en .home137-* para no mezclar
   estilos antiguos de la portada con el resto de la aplicación.
========================================================= */

.home137-body {
    --home137-ink: #111820;
    --home137-muted: #6b7078;
    --home137-paper: #f7f3ed;
    --home137-orange: var(--color-primary, #f0441f);
    --home137-orange-dark: var(--color-primary-dark, #d93616);
    --home137-dark: #07141b;
    min-height: 100vh;
    background: var(--home137-paper);
    color: var(--home137-ink);
}

/* Navbar: se hereda íntegramente del estilo global de Clandelero. */

.home137-main { overflow: hidden; }
.home137-shell { width: min(1220px, calc(100% - 48px)); margin: 0 auto; }

.home137-account-notice {
    position: relative;
    z-index: 5;
    width: min(1180px, calc(100% - 32px));
    margin: 18px auto 0;
}

.home137-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #252522 url('/images/index-hero-neutral.jpg') center 52% / cover no-repeat;
}
.home137-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6,12,16,.88) 0%, rgba(6,12,16,.72) 40%, rgba(6,12,16,.28) 72%, rgba(6,12,16,.12) 100%);
}
.home137-hero-content { position: relative; z-index: 1; padding: 68px 0 62px; }
.home137-hero-copy { max-width: 760px; color: #fff; }
.home137-hero-copy h1 {
    margin: 0;
    max-width: 750px;
    font-size: clamp(42px, 5.1vw, 72px);
    line-height: .98;
    letter-spacing: -2.8px;
    font-weight: 850;
}
.home137-hero-copy h1 span { display: block; margin-bottom: 8px; font-size: 1.18em; }
.home137-hero-copy p {
    max-width: 670px;
    margin: 22px 0 0;
    color: rgba(255,255,255,.9);
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.45;
}
.home137-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.home137-button {
    min-height: 48px;
    padding: 12px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.home137-button:hover { transform: translateY(-1px); }
.home137-button-primary { color: #fff; background: var(--home137-orange); border: 1px solid var(--home137-orange); }
.home137-button-primary:hover { background: var(--home137-orange-dark); border-color: var(--home137-orange-dark); }
.home137-button-secondary { color: #fff; background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.75); }
.home137-button-secondary:hover, .home137-button-quiet:hover { background: rgba(255,255,255,.12); }
.home137-button-quiet { color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.38); }

.home137-section { padding: 52px 0; background: #fff; }
.home137-disciplines { background: #faf8f4; }
.home137-section-heading { margin-bottom: 23px; }
.home137-section-heading h2 { margin: 0; font-size: clamp(28px, 3vw, 38px); line-height: 1.08; letter-spacing: -1.2px; }
.home137-section-heading p { margin: 7px 0 0; color: var(--home137-muted); font-size: 14px; }
.home137-section-heading-center { text-align: center; }
.home137-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.home137-more-link { flex: 0 0 auto; color: #087bc1; font-size: 13px; font-weight: 800; text-decoration: none; }
.home137-more-link:hover { text-decoration: underline; }

.home137-discipline-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 12px; }
.home137-discipline-card {
    position: relative;
    min-height: 178px;
    overflow: hidden;
    color: #fff;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(28,30,32,.10);
    transform: translateZ(0);
}
.home137-discipline-card img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; transition: transform .28s ease; }
.home137-discipline-card:hover img { transform: scale(1.045); }
.home137-discipline-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(4,9,12,.86), rgba(4,9,12,.03) 70%); }
.home137-discipline-card strong { position: absolute; left: 15px; right: 42px; bottom: 15px; z-index: 2; font-size: 15px; line-height: 1.12; }
.home137-card-arrow { position: absolute; right: 12px; bottom: 11px; z-index: 2; width: 28px; height: 28px; display: grid; place-items: center; color: #111; background: rgba(255,255,255,.95); border-radius: 50%; font-weight: 900; }

.home137-artists { background: #fff; }
.home137-artist-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 13px; }
.home137-artist-card { overflow: hidden; color: inherit; background: #fff; border: 1px solid #ebe6df; border-radius: 12px; box-shadow: 0 5px 17px rgba(36,32,28,.055); text-decoration: none; }
.home137-artist-image-wrap { aspect-ratio: 1.32 / 1; overflow: hidden; background: #eeeae4; }
.home137-artist-image-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.home137-artist-card:hover img { transform: scale(1.035); }
.home137-artist-meta { padding: 9px 10px 11px; min-width: 0; display: flex; align-items: center; gap: 8px; }
.home137-artist-avatar { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; object-fit: cover; background: #eee; }
.home137-artist-copy { min-width: 0; display: block; }
.home137-artist-meta strong, .home137-artist-copy > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home137-artist-meta strong { font-size: 12px; }
.home137-artist-copy > span { margin-top: 2px; color: #7c7e82; font-size: 10px; }

.home137-benefits { padding: 30px 0; color: #fff; background: linear-gradient(100deg, #07151c, #09202a); }
.home137-benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.home137-benefit { display: flex; align-items: center; gap: 18px; }
.home137-benefit-icon { flex: 0 0 54px; width: 54px; height: 54px; color: #ff7b20; }
.home137-benefit-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.home137-benefit h3 { margin: 0; font-size: 18px; }
.home137-benefit p { margin: 4px 0 0; color: rgba(255,255,255,.76); font-size: 12px; line-height: 1.45; }

.home137-benefit-action { display: block; padding: 0; border: 0; background: transparent; text-decoration: none; cursor: pointer; transition: transform .18s ease, color .18s ease; }
.home137-benefit-action:hover, .home137-benefit-action:focus-visible { color: #ff9a55; transform: translateY(-2px) scale(1.035); }
.home137-benefit-action:focus-visible { outline: 2px solid rgba(255,255,255,.9); outline-offset: 5px; border-radius: 8px; }
.home137-share-popover { position: fixed; left: 50%; bottom: 24px; z-index: 10020; width: min(92vw, 720px); transform: translateX(-50%); }
.home137-share-popover[hidden] { display: none; }
.home137-share-popover-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 14px 13px 17px; color: #202226; background: rgba(255,255,255,.98); border: 1px solid rgba(240,68,31,.22); border-radius: 999px; box-shadow: 0 12px 38px rgba(0,0,0,.20); backdrop-filter: blur(10px); }
.home137-share-popover-copy { min-width: 0; }
.home137-share-popover-copy strong, .home137-share-popover-copy span { display: block; }
.home137-share-popover-copy strong { font-size: 13px; }
.home137-share-popover-copy span { margin-top: 2px; color: #6f7175; font-size: 11px; }
.home137-share-popover-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 7px; }
.home137-share-popover-actions a { padding: 8px 11px; color: #34373b; border: 1px solid #e0ddd9; border-radius: 999px; font-size: 11px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.home137-share-popover-actions a.is-primary { color: #fff; background: var(--home137-orange); border-color: var(--home137-orange); }
.home137-share-popover-close { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; color: #73767a; background: transparent; border: 0; border-radius: 50%; font: inherit; font-size: 21px; line-height: 1; cursor: pointer; }
.home137-share-popover-close:hover { background: #f3f1ee; color: #222; }

.home137-events { background: #fbf9f5; }
.home137-event-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.home137-event-card { overflow: hidden; color: inherit; background: #fff; border: 1px solid #ebe5dc; border-radius: 13px; box-shadow: 0 7px 20px rgba(38,31,24,.06); text-decoration: none; }
.home137-event-image-wrap { height: 154px; overflow: hidden; background: #eee; }
.home137-event-image-wrap img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .25s ease; }
.home137-event-card:hover .home137-event-image-wrap img { transform: scale(1.03); }
.home137-event-info { display: flex; gap: 13px; align-items: center; padding: 13px 15px 15px; }
.home137-event-date { width: 82px; min-width: 82px; padding: 7px 5px; display: grid; place-items: center; background: #fff8f3; border: 1px solid #ffe1ce; border-radius: 10px; text-align: center; }
.home137-event-date strong { font-size: 12px; line-height: 1.15; white-space: nowrap; }
.home137-event-copy { min-width: 0; }
.home137-event-copy strong, .home137-event-copy span, .home137-event-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home137-event-copy strong { font-size: 14px; }
.home137-event-copy span { margin-top: 2px; color: #676b72; font-size: 11px; }
.home137-event-copy small { margin-top: 3px; color: #8a8d91; font-size: 10px; }
.home137-empty { padding: 25px; color: #777; background: #fff; border: 1px dashed #d8d2ca; border-radius: 12px; text-align: center; }

.home137-final-cta { position: relative; padding: 43px 0; overflow: hidden; color: #fff; background: linear-gradient(105deg, rgba(4,16,23,.96), rgba(6,24,32,.91)), url('/images/index-cat-visuales.jpg') center 56% / cover; }
.home137-final-inner { text-align: center; }
.home137-final-inner h2 { margin: 0; font-size: clamp(29px, 3.2vw, 43px); letter-spacing: -1.4px; }
.home137-final-inner p { margin: 8px auto 20px; max-width: 720px; color: rgba(255,255,255,.83); font-size: 14px; }

@media (max-width: 1050px) {
    .home137-discipline-grid, .home137-artist-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .home137-discipline-card { min-height: 190px; }
}

@media (max-width: 760px) {
    .home137-shell { width: min(100% - 28px, 680px); }
    .home137-hero { min-height: 610px; background-position: 58% center; }
    .home137-hero-overlay { background: linear-gradient(90deg, rgba(5,10,13,.91), rgba(5,10,13,.55)); }
    .home137-hero-content { padding: 48px 0 44px; }
    .home137-hero-copy h1 { max-width: 560px; font-size: clamp(38px, 11vw, 56px); letter-spacing: -2px; }
    .home137-hero-copy p { font-size: 16px; }
    .home137-hero-actions { flex-direction: column; max-width: 420px; }
    .home137-button { width: 100%; }
    .home137-section { padding: 38px 0; }
    .home137-heading-row { align-items: flex-start; }
    .home137-discipline-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
    .home137-discipline-card { min-height: 140px; }
    .home137-discipline-card strong { left: 11px; bottom: 11px; font-size: 13px; }
    .home137-card-arrow { width: 24px; height: 24px; right: 9px; bottom: 8px; }
    .home137-artist-grid { display: flex; overflow-x: auto; gap: 10px; padding-bottom: 6px; scroll-snap-type: x proximity; }
    .home137-artist-card { flex: 0 0 44%; scroll-snap-align: start; }
    .home137-benefit-grid { grid-template-columns: 1fr; gap: 22px; }
    .home137-benefits { padding: 28px 0; }
    .home137-share-popover { bottom: 14px; width: min(94vw, 520px); }
    .home137-share-popover-inner { align-items: stretch; flex-direction: column; gap: 10px; padding: 14px; border-radius: 18px; }
    .home137-share-popover-actions { width: 100%; }
    .home137-share-popover-actions a { flex: 1; text-align: center; }
    .home137-event-grid { grid-template-columns: 1fr; }
    .home137-event-card { display: grid; grid-template-columns: 34% 66%; }
    .home137-event-image-wrap { height: 100%; min-height: 126px; }
    .home137-event-info { padding: 12px; }
}

@media (max-width: 480px) {
    .home137-shell { width: min(100% - 20px, 680px); }
    .home137-hero { min-height: 590px; }
    .home137-hero-copy h1 { font-size: 39px; }
    .home137-section-heading h2 { font-size: 27px; }
    .home137-section-heading p { font-size: 12px; }
    .home137-discipline-card { min-height: 124px; }
    .home137-heading-row { gap: 10px; }
    .home137-more-link { font-size: 11px; }
    .home137-artist-card { flex-basis: 58%; }
    .home137-event-card { grid-template-columns: 38% 62%; }
    .home137-event-copy strong { font-size: 12px; }
}
