/* =========================================================
   La Oreja - SPA
   ========================================================= */

:root {
    --black: #05070a;
    --ink: #0d0d0d;
    --white: #ffffff;
    --accent: #e8121b;
    --accent-soft: #e4572e;
    --gutter: clamp(1.25rem, 5vw, 6rem);
    --header-h: clamp(4rem, 6vw, 5rem);
    --hero-gutter: clamp(1.25rem, 10vw, 8rem);
    --scrim: 0.62;
    --font: 'Work Sans', 'Helvetica Neue', Arial, system-ui, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

html body {
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
    background-color: var(--black);
    color: var(--white);
    font-family: var(--font);
    font-weight: 400;
    line-height: 1.5;
    overflow-x: hidden;
}

body.is-locked {
    overflow: hidden;
}

img,
svg,
video {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.skip-link {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
    padding: 0.75rem 1rem;
    background: var(--accent);
    transform: translateY(-120%);
}

.skip-link:focus {
    transform: translateY(0);
}

/* ---------- Video backdrop ---------- */

.backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-color: var(--black);
}

.backdrop__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.backdrop__scrim {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120% 90% at 50% 40%, rgba(5, 7, 10, 0) 0%, rgba(5, 7, 10, 0.65) 100%),
        linear-gradient(180deg, rgba(5, 7, 10, 0.55) 0%, rgba(5, 7, 10, 0.2) 35%, rgba(5, 7, 10, 0.75) 100%);
    opacity: var(--scrim);
    transition: opacity 0.6s ease;
}

body:not([data-route='inicio']) {
    --scrim: 0.92;
}

/* ---------- Header ---------- */

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: var(--header-h);
    padding: clamp(0.55rem, 1.2vw, 1rem) var(--gutter);
    background: transparent;
    color: var(--white);
}

.site-header__logo img {
    width: auto;
    height: clamp(1.9rem, 3.4vw, 3rem);
}

.site-nav__list {
    display: flex;
    align-items: center;
    gap: clamp(1.1rem, 2.4vw, 2.5rem);
    padding: 0.5rem 0.75rem 0.5rem 1.25rem;
    border-radius: 0.5rem;
    background: var(--white);
}

.site-nav__link {
    position: relative;
    display: inline-block;
    padding-block: 0.35rem;
    font-size: clamp(0.72rem, 0.9vw, 0.9rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink);
    transition: color 0.25s ease;
}

.site-nav__link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0.2rem;
    width: 100%;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.site-nav__link:hover,
.site-nav__link.is-active {
    color: var(--ink);
}

.site-nav__link.is-active::after,
.site-nav__link:hover::after {
    transform: scaleX(1);
}

.site-nav__link--cta {
    padding: 0.7rem 1.5rem;
    border-radius: 0.5rem;
    background: var(--ink);
    color: var(--white);
    transition: background 0.25s ease, color 0.25s ease;
}

.site-nav__link--cta::after {
    content: none;
}

.site-nav__link--cta:hover,
.site-nav__link--cta.is-active {
    background: var(--accent);
    color: var(--white);
}

.nav-toggle {
    display: none;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.nav-toggle__bar {
    display: block;
    width: 1.75rem;
    height: 2px;
    margin: 0.3rem auto;
    background: var(--ink);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ---------- App shell ---------- */

.app {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.view {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: calc(var(--header-h) + 1rem) var(--gutter) clamp(1.5rem, 4vh, 3rem);
    animation: view-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes view-in {
    from {
        opacity: 0;
        transform: translateY(1.5rem);
    }
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    align-items: center;
    justify-content: center;
    min-height: 100svh;
    padding: calc(var(--header-h) + 1rem) var(--hero-gutter) clamp(1.5rem, 4vh, 3rem);
}

.hero__headline {
    position: relative;
    width: 100%;
}

.hero__title {
    margin: 0;
    font-size: clamp(2.7rem, 6.6vw, 6rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    text-align: center;
    text-shadow:
        0.012em 0 0 rgba(232, 18, 27, 0.3),
        -0.012em 0 0 rgba(0, 231, 255, 0.18),
        0 0 1.5rem rgba(5, 7, 10, 0.55);
    animation: aberration 7s ease-in-out infinite;
}

@keyframes aberration {
    0%,
    92%,
    100% {
        text-shadow:
            0.012em 0 0 rgba(232, 18, 27, 0.3),
            -0.012em 0 0 rgba(0, 231, 255, 0.18),
            0 0 1.5rem rgba(5, 7, 10, 0.55);
    }
    95% {
        text-shadow:
            0.04em 0 0 rgba(232, 18, 27, 0.55),
            -0.035em 0 0 rgba(0, 231, 255, 0.4),
            0 0 1.5rem rgba(5, 7, 10, 0.55);
    }
}

@keyframes arrow-pulse {
    0%,
    100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(0.4rem);
    }
}

.hero__services {
    margin: clamp(1rem, 2.4vw, 2rem) 0 0;
    text-align: center;
    color: var(--accent-soft);
    font-size: clamp(0.8rem, 1vw, 1.05rem);
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-shadow: 0 0 0.75rem rgba(5, 7, 10, 0.9);
}

.hero__scroll {
    position: absolute;
    bottom: clamp(1rem, 3vh, 2rem);
    left: 50%;
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid currentColor;
    border-radius: 50%;
    place-items: center;
    color: var(--white);
    transform: translateX(-50%);
    animation: scroll-cue 1.8s ease-in-out infinite;
}

.hero__scroll svg {
    width: 1.75rem;
    height: 1.75rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

@keyframes scroll-cue {
    0%,
    100% {
        translate: 0 0;
    }
    50% {
        translate: 0 0.35rem;
    }
}

/* ---------- Home social section ---------- */

.home-social {
    scroll-margin-top: calc(var(--header-h) + 1rem);
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 4vw, 3rem);
    padding: clamp(2.5rem, 6vw, 5rem) var(--gutter) clamp(1rem, 2vw, 1.75rem);
    background: #101010;
}

.home-social__heading {
    display: grid;
    justify-items: center;
    gap: 1rem;
    text-align: center;
}

.home-social__heading h2 {
    margin: 0;
    font-size: clamp(1.15rem, 2.2vw, 1.65rem);
    font-weight: 700;
    line-height: 1.15;
    text-transform: uppercase;
}

.home-social__links {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.home-social__links a {
    color: #ff571f;
    transition: color 0.2s ease, transform 0.2s ease;
}

.home-social__links a:hover {
    color: var(--white);
    transform: translateY(-2px);
}

.home-social__links svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.home-social__links .home-social__icon-dot {
    fill: currentColor;
    stroke: none;
}

.home-social__links .home-social__youtube {
    fill: currentColor;
    stroke: none;
}

.home-social__links .home-social__youtube-play {
    fill: #101010;
    stroke: none;
}

.home-social__cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    width: 100%;
    margin-inline: auto;
}

.social-card {
    min-width: 0;
    padding: clamp(0.75rem, 1.8vw, 1rem);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.055);
}

.social-card__profile {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 10px;
}

.social-card--youtube {
    display: flex;
    flex-direction: column;
}

.social-card__avatar {
    display: grid;
    flex: 0 0 2.5rem;
    width: 2.5rem;
    aspect-ratio: 1;
    place-items: center;
    border-radius: 50%;
    object-fit: cover;
}

.social-card__identity {
    min-width: 0;
}

.social-card__identity h3,
.social-card__identity p {
    overflow: hidden;
    margin: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.social-card__identity h3 {
    font-size: 0.85rem;
    font-weight: 700;
}

.social-card__identity p {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.7rem;
}

.social-card__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-left: auto;
    padding: 0.45rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 0.3rem;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: background 0.2s ease, color 0.2s ease;
}

.social-card__action:hover {
    background: var(--white);
    color: var(--ink);
}

.social-card__description {
    min-height: 2.5em;
    margin: 0.9rem 0 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.72rem;
    line-height: 1.5;
}

.social-card__status {
    min-height: 2.5em;
    margin: 0.9rem 0 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.72rem;
    line-height: 1.5;
}

.social-card__gallery {
    display: grid;
    gap: 0.35rem;
}

.social-card__post {
    position: relative;
    display: block;
    min-width: 0;
    overflow: hidden;
    border-radius: 0.25rem;
    background: #262626;
}

.social-card__post img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.social-card__post:hover img {
    transform: scale(1.04);
}

.social-card__embed {
    min-width: 0;
    margin-top: 0.9rem;
    overflow: hidden;
    border-radius: 0.35rem;
}

.social-card__embed .sk-instagram-feed {
    min-width: 0;
    width: 100%;
}

.social-card__gallery--youtube {
    flex: 1;
    align-content: center;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.social-card__gallery--youtube .social-card__post {
    aspect-ratio: 1.35;
}

.social-card__play {
    display: grid;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2rem;
    height: 1.4rem;
    border-radius: 0.35rem;
    background: rgba(255, 87, 31, 0.9);
    color: var(--white);
    content: '▶';
    font-size: 0.68rem;
    place-items: center;
    transform: translate(-50%, -50%);
}

/* ---------- Inner views ---------- */

.view--inner {
    justify-content: center;
    gap: clamp(2rem, 5vw, 3.5rem);
    max-width: 78rem;
    margin-inline: auto;
    width: 100%;
}

.view--solid {
    justify-content: center;
    background: #0d0d0d;
}

.eyebrow {
    margin: 0 0 0.75rem;
    color: var(--accent-soft);
    font-size: clamp(0.6rem, 0.74vw, 0.8rem);
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.view__title {
    margin: 0;
    font-size: clamp(2.25rem, 6vw, 5rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.015em;
    text-transform: uppercase;
}

.cartelera {
    scroll-margin-top: calc(var(--header-h) + 1rem);
    display: grid;
    grid-template-columns: minmax(9rem, 13rem) 1fr;
    gap: clamp(1.5rem, 3.5vw, 3.5rem);
    width: 100%;
    margin-inline: auto;
}

.cartelera__intro {
    align-self: start;
}

.cartelera__title {
    margin: 0 0 0.9rem;
    font-size: clamp(1rem, 1.5vw, 1.35rem);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.cartelera__text {
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.55;
}

.shows {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(0.75rem, 1.4vw, 1.1rem);
}

.show {
    display: flex;
    flex: 1 1 13rem;
    flex-direction: column;
    max-width: 15rem;
    padding: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.45rem;
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.3s ease, background 0.3s ease;
}

.show:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.show__image {
    width: 100%;
    height: auto;
    aspect-ratio: 670 / 850;
    flex-shrink: 0;
    margin-bottom: 0.9rem;
    border-radius: 0.3rem;
    object-fit: cover;
}

.show__image--empty {
    display: block;
    background: #d9d9d9;
}

.show__artist {
    margin: 0 0 0.3rem;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

.show__date {
    margin: 0 0 0.45rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.85rem;
    font-weight: 300;
}

.show__venue {
    margin: 0 0 1.1rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.show__cta {
    margin-top: auto;
    padding: 0.55rem 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 0.3rem;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-align: center;
    text-transform: uppercase;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.show__cta:hover {
    border-color: var(--white);
    background: var(--white);
    color: var(--ink);
}

.prose {
    font-size: clamp(1rem, 1.35vw, 1.3rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.82);
}

.prose p {
    margin: 0 0 1.25rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: clamp(1.5rem, 3vw, 3rem);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.stat__value {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 500;
    line-height: 1;
}

.stat__label {
    color: var(--accent-soft);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.contact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
}

.contact__list li {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding-block: clamp(0.9rem, 1.6vw, 1.25rem);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.contact__list span {
    color: var(--accent-soft);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.contact__list a {
    font-size: clamp(1.1rem, 2vw, 1.75rem);
    font-weight: 400;
    transition: color 0.25s ease;
}

.contact__list a:hover {
    color: var(--accent-soft);
}

.contact__claim {
    margin: 0;
    font-size: clamp(1.4rem, 3vw, 2.5rem);
    font-weight: 500;
    line-height: 1.1;
    text-transform: uppercase;
}

/* ---------- Footer ---------- */

.site-footer {
    position: relative;
    display: grid;
    grid-template-columns: minmax(7.5rem, 0.75fr) minmax(18rem, 3fr) minmax(11rem, 1.15fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
    min-height: 14rem;
    padding: clamp(2.5rem, 5vw, 4rem) var(--gutter);
    background: #101010;
    color: rgba(255, 255, 255, 0.84);
}

.site-footer::after {
    position: absolute;
    right: var(--gutter);
    bottom: 0;
    left: var(--gutter);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    content: '';
}

.site-footer__brand img {
    width: clamp(7.5rem, 12vw, 9rem);
    height: auto;
}

.site-footer__title {
    max-width: 22rem;
    margin: 0 0 0.5rem;
    color: #ff571f;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.55;
    text-transform: uppercase;
}

.site-footer__text {
    max-width: 18rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.55;
}

.site-footer__contact {
    display: grid;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-style: normal;
    line-height: 1.35;
}

.site-footer__contact p {
    display: flex;
    flex-direction: column;
    margin: 0;
}

.site-footer__contact strong {
    font-weight: 700;
}

.site-footer__contact a,
.site-footer__contact span {
    color: rgba(255, 255, 255, 0.78);
    overflow-wrap: anywhere;
}

.site-footer__contact a:hover {
    color: #ff571f;
}

/* ---------- Responsive ---------- */

@media (max-width: 60rem) {
    .hero__title {
        font-size: clamp(2.1rem, 9.5vw, 5rem);
    }

    .hero__services {
        align-self: center;
    }

    .cartelera {
        grid-template-columns: 1fr;
    }

    .cartelera__text {
        max-width: 32rem;
    }

    .shows {
        justify-content: flex-start;
    }

    .show {
        flex: 1 1 9rem;
        max-width: none;
    }
}

@media (max-width: 48rem) {
    .home-social__cards {
        grid-template-columns: 1fr;
    }

    .nav-toggle {
        display: block;
        position: relative;
        z-index: 30;
    }

    .nav-toggle__bar {
        background: var(--white);
    }

    .site-header__logo {
        position: relative;
        z-index: 30;
    }

    .site-nav {
        position: fixed;
        inset: 0;
        z-index: 25;
        display: grid;
        place-items: center;
        background: var(--white);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.35s ease, visibility 0.35s ease;
    }

    .site-nav.is-open {
        opacity: 1;
        visibility: visible;
    }

    .site-nav__list {
        flex-direction: column;
        align-items: center;
        gap: 1.75rem;
        padding: 0;
        background: transparent;
    }

    .site-nav__link {
        font-size: 1.15rem;
        letter-spacing: 0.1em;
    }

    .site-nav__link--cta {
        padding: 0.8rem 2rem;
    }

    .nav-toggle[aria-expanded='true'] .nav-toggle__bar:first-child {
        transform: translateY(0.4rem) rotate(45deg);
    }

    .nav-toggle[aria-expanded='true'] .nav-toggle__bar {
        background: var(--ink);
    }

    .nav-toggle[aria-expanded='true'] .nav-toggle__bar:last-child {
        transform: translateY(-0.4rem) rotate(-45deg);
    }

    .site-footer {
        grid-template-columns: minmax(7rem, 0.7fr) minmax(0, 1.3fr);
        align-items: start;
        gap: 2rem;
        padding-block: 2.5rem;
    }

    .site-footer__contact {
        grid-column: 2;
    }
}

@media (max-width: 30rem) {
    .hero__title {
        line-height: 1;
        letter-spacing: -0.005em;
    }

    .site-footer {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .site-footer__contact {
        grid-column: auto;
    }
}

@media (orientation: landscape) and (max-height: 32rem) {
    .view {
        padding-top: calc(var(--header-h) + 0.5rem);
    }

    .hero__title {
        font-size: clamp(1.75rem, 6vw, 4rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}
