/* ── Variables ── */
:root {
    --color-primary: #a03333;
    --color-primary-hov: #8a2a2a;
    --color-bg: #231f20;
    --color-surface: #ffffff;
    --color-text: #332115;
    --color-muted: #756f6c;
    --color-muted-lt: #9c9c9c;
    --color-cream: #f9f1e2;
    --color-secondary: #332115;
    --font-main: 'Plus Jakarta Sans', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
}

/* ── Skip link ── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 9999;
    background: var(--color-surface);
    color: var(--color-text);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 0 0 8px 8px;
    text-decoration: none;
    transition: top .15s;
}

.skip-link:focus {
    top: 0;
}

/* ── Focus visible ── */
:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 3px;
    border-radius: 4px;
}

.nav-pill a:focus-visible,
.nav-dropdown a:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

button:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 3px;
    border-radius: 6px;
}

/* ── SITE HEADER (nav + foto + logo) ── */
.site-header {
    background: var(--color-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 20px 64px;
}

.site-header nav {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* El nav va fuera de .site-header en el tema WP; offset sobre el top:0 de .fixed-top de Bootstrap */
nav.fixed-top {
    top: 20px;
}

.nav-pill {
    background: var(--color-surface);
    border-radius: 9999px;
    padding: 12px 24px;
    gap: 24px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 24px rgba(0,0,0,.25);
}

.nav-pill a {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.028em;
    text-decoration: none;
    color: var(--color-muted);
    transition: color .2s;
}

.nav-pill a.active,
.nav-pill a:hover {
    color: var(--color-text);
}

.header-photo {
    width: min(648px, 90%);
    border-radius: 24px;
    overflow: hidden;
    flex-shrink: 0;
    /* Drops into place on load; `both` keeps it hidden until it starts */
    animation: headerPhotoDrop .9s cubic-bezier(.22, 1, .36, 1) .15s both;
}

@keyframes headerPhotoDrop {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .header-photo {
        animation: none;
    }
}

.header-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.header-logo {
    padding: 0 20px;
}

.header-logo h1 {
    margin: 0;
    padding: 0;
    line-height: 1;
}

.header-logo img {
    width: min(304px, 70vw);
    height: auto;
    display: block;
}

/* ── HERO (foto actuación + card) ── */
.hero {
    min-height: 100vh;
    background: var(--color-bg);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-img-overlay {
    position: absolute;
    inset: 0;
    background-image: url('../img/about-image.png');
    background-size: cover;
    background-position: center top;
    opacity: .6;
    animation: heroBreathe 16s ease-in-out infinite;
    will-change: transform;
}

@keyframes heroBreathe {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-img-overlay {
        animation: none;
    }
}

.hero-card {
    position: relative;
    background-color: rgba(255, 255, 255, .75);
    max-width: 420px;
    width: 100%;
    padding: 32px 24px;
    z-index: 2;
    transition: background-color .3s ease;
}

.hero-card:hover {
    background-color: #fff;
}

.hero-card h2 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.04em;
    color: var(--color-text);
    margin-bottom: 12px;
}

.hero-card p {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-muted);
    line-height: 1.5;
    margin: 0;
}

/* ── SECTION LABELS ── */
.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 600;
    letter-spacing: -0.05em;
    color: var(--color-text);
    line-height: 1.2;
}

.section-title-cream {
    color: var(--color-cream);
}

/* ── INTEGRANTES ── */
.integrantes {
    background: var(--color-surface);
    padding: 80px 20px;
}

.member-card {
    background: var(--color-surface);
    width: 100%;
    max-width: 370px;
    margin: 0 auto;
}

.member-img-wrap {
    height: 240px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    background: var(--color-primary);
}

.member-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: screen;
    opacity: .85;
    transition: transform .4s ease;
}

.member-img-wrap:hover img {
    transform: scale(1.07);
}

.member-card .role {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-muted-lt);
    letter-spacing: -0.02em;
}

.member-card .name {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: -0.04em;
}

/* ── HISTORIA ── */
.historia {
    background: var(--color-primary);
    display: flex;
    height: 100vh;
    max-height: 100vh;
    min-height: 920px;
    overflow: hidden;
}

.historia-left {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    flex-shrink: 0;
}

.historia-right {
    width: 50%;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.historia-track {
    display: flex;
    height: 100%;
    transition: transform .45s cubic-bezier(.4,0,.2,1);
}

/* A slide is a bare <img> in static HTML, or a <figure> in the WordPress image block */
.historia-track > img,
.historia-track > figure {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    margin: 0;
}

.historia-track img,
.historia-track figure img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: left top;
    display: block;
}

.historia-arrows {
    position: absolute;
    bottom: 100px;
    right: 40px;
    display: flex;
    gap: 24px;
    align-items: center;
}

.historia-arrows button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 0;
}

.historia-arrow {
    width: 40px;
    filter: brightness(0) invert(1);
    opacity: .85;
    transition: opacity .2s;
}

.historia-arrows button:hover .historia-arrow {
    opacity: 1;
}

.historia-card {
    background: var(--color-surface);
    max-width: 380px;
    width: 100%;
    padding: 40px 32px;
    overflow-y: auto;
    max-height: 480px;
}

.historia-card h2 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.04em;
    color: var(--color-text);
    margin-bottom: 16px;
    text-align: center;
}

.historia-card p {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-muted);
    line-height: 1.6;
}

@media (max-width: 767px) {
    .historia {
        flex-direction: column;
        height: auto;
        max-height: none;
    }

    .historia-left {
        width: 100%;
        padding: 60px 24px;
    }

    .historia-right {
        width: 100%;
        height: 60vh;
        min-height: 320px;
    }

    .historia-card {
        max-height: none;
    }
}

/* The section grows towards the full viewport as the screen widens */
@media (min-width: 768px) and (max-width: 1024px) {
    .historia {
        height: 70vh;
    }
}

@media (min-width: 1025px) and (max-width: 1199px) {
    .historia {
        height: 80vh;
    }
}

@media (min-width: 1200px) and (max-width: 1439px) {
    .historia {
        height: 90vh;
    }
}

/* ── TRAYECTORIA ── */
.trayectoria {
    background: var(--color-surface);
    padding: 80px 20px;
}

.trayectoria-text {
    max-width: 680px;
    font-size: 20px;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.5;
    letter-spacing: -0.02em;
}

.tray-divider {
    border: none;
    border-top: 1px dashed var(--color-text);
    max-width: 760px;
    margin: 0 auto;
    opacity: .35;
}

.tray-icon {
    width: 80px;
}

/* ── CONCIERTOS ── */
.conciertos {
    background: var(--color-surface);
    padding: 80px 20px;
    overflow: hidden;
}

.concerts-scroll-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.concerts-scroll-wrap::-webkit-scrollbar {
    display: none;
}

.concerts-track {
    display: flex;
    gap: 32px;
    width: max-content;
    padding-bottom: 8px;
}

.concert-card {
    background: var(--color-surface);
    width: 300px;
    flex-shrink: 0;
    border: 1px solid #eee;
    border-radius: 24px;
    overflow: hidden;
}

.concert-card .img-wrap {
    height: 200px;
    background: var(--color-primary);
    position: relative;
    overflow: hidden;
}

.concert-card .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: screen;
    opacity: .8;
}

.concert-card .card-body {
    padding: 20px 20px 24px;
    text-align: center;
}

.concert-card .venue {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-muted-lt);
    margin-bottom: 6px;
}

.concert-card .event-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: -0.03em;
    line-height: 1.25;
}

.carousel-arrows button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 8px;
    transition: opacity .2s;
}

.carousel-arrows button:hover {
    opacity: .6;
}

/* ── COLABORACIONES ── */
.colaboraciones {
    background: var(--color-primary);
    padding: 80px 20px;
}

.colab-list {
    max-width: 760px;
    width: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
}

.colab-list li {
    border-top: 1px dashed var(--color-cream);
    padding: 28px 0;
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 600;
    color: var(--color-cream);
    letter-spacing: -0.03em;
    line-height: 1.4;
}

.colab-list li:last-child {
    border-bottom: 1px dashed var(--color-cream);
}

.colab-footer-text {
    max-width: 760px;
    font-size: 20px;
    font-weight: 500;
    color: var(--color-cream);
    line-height: 1.5;
    letter-spacing: -0.02em;
}

/* ── DISCOGRAFÍA ── */
.discografia {
    background: var(--color-surface);
    padding: 80px 20px;
}

.disco-intro {
    max-width: 760px;
    font-size: 20px;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.5;
    letter-spacing: -0.02em;
}

.disco-list {
    max-width: 760px;
    width: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
}

.disco-list li {
    border-top: 1px dashed var(--color-text);
    padding: 28px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.disco-list li:last-child {
    border-bottom: 1px dashed var(--color-text);
}

.disco-label {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: -0.04em;
    margin-bottom: 8px;
}

.disco-detail,
.disco-detail p {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text);
    letter-spacing: -0.02em;
    line-height: 1.6;
}

.disco-detail .year,
.disco-detail p span,
.disco-detail p i,
.disco-detail p em {
    margin-left: 10px;
    color: var(--color-muted-lt);
}

/* .album-cover is the <img> in static HTML and the wrapper in the
   WordPress image block, so both need the size and the radius */
.album-cover,
.album-cover img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    background: var(--color-primary);
}

.album-cover-rounded {
    border-radius: 8px;
}

.album-cover-circle {
    border-radius: 50%;
}

/* ── FOOTER ── */
.footer {
    background: var(--color-bg);
    padding: 80px 20px;
}

.footer-logo {
    max-width: 320px;
    width: 100%;
}

.footer-contact {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-surface);
    line-height: 1.7;
}

.footer-contact a {
    color: var(--color-surface);
}

.footer-nav a {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-surface);
    text-decoration: underline;
    margin: 0 8px;
}

.footer-nav a:hover {
    color: var(--color-cream);
}

.social-icon {
    width: 26px;
    height: 26px;
    transition: opacity .2s;
}

.social-icon:hover {
    opacity: .7;
}

.footer-copy {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255,255,255,.45);
}

/* ── BORDER DECORATION ── */
.border-deco img {
    width: 100%;
    display: block;
}

/* ── NAV MENU ── */
/* Wrapper around the toggle and the list: draws no box, so both sit
   directly inside .nav-pill */
.nav-menu-wrap {
    display: contents;
}

/* The list is the horizontal row of links inside .nav-pill */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Only mobile splits the list, so the toggle is hidden by default */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.028em;
    color: var(--color-text);
    cursor: pointer;
    padding: 0;
    align-items: center;
    gap: 6px;
}

.nav-toggle-arrow {
    font-size: 12px;
    transition: transform .2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-arrow {
    transform: rotate(180deg);
}

.nav-dropdown {
    background: var(--color-surface);
    border-radius: 16px;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,.3);
    min-width: 180px;
    text-align: center;
    list-style: none;
    margin: 0;
}

.nav-dropdown a {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.028em;
    text-decoration: none;
    color: var(--color-muted);
    transition: color .2s;
}

.nav-dropdown a:hover,
.nav-dropdown a.active {
    color: var(--color-text);
}

/* ── RESPONSIVE ── */
@media (max-width: 767px) {
    .site-header {
        justify-content: flex-start;
        gap: 0;
        padding-bottom: 0;
    }

    .header-photo {
        width: min(320px, 86%);
        margin-top: auto;
        margin-bottom: 32px;
    }

    .header-logo {
        margin-bottom: auto;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-pill {
        gap: 16px;
        padding: 12px 20px;
    }

    /* The card covers the whole hero photo on mobile */
    .hero-card {
        max-width: none;
        align-self: stretch;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 60px 24px;
    }

    .concert-card {
        width: 260px;
    }
}
