/* Importación de Tipografías */
@font-face {
    font-family: 'ITCBenguiatStd-BoldCn';
    src: url('../css/fuente/ITCBenguiatStdBoldCn.OTF') format('opentype');
}

@font-face {
    font-family: 'ITCBenguiatStd-BookCn';
    src: url('../css/fuente/ITCBenguiatStdBookCn.OTF') format('opentype');
}

@font-face {
    font-family: 'ITCBenguiatStd-MediumCn';
    src: url('../css/fuente/ITCBenguiatStdMediumCn.OTF') format('opentype');
}

:root {
    --primary-font: 'ITCBenguiatStd-BookCn', sans-serif;
    --bold-font: 'ITCBenguiatStd-BoldCn', sans-serif;
    --medium-font: 'ITCBenguiatStd-MediumCn', sans-serif;

    /* Paleta de Colores basada en la Imagen */
    --dark-earth: #1a120b;
    --mid-earth: #4a3728;
    --warm-bg: #fdfaf6;
    --accent-bg: #f0e6d9;
    --white-pure: #ffffff;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--warm-bg);
    color: var(--dark-earth);
    font-family: var(--primary-font);
    overflow-x: hidden;
    cursor: crosshair;
    /* Cursor personalizado para un toque editorial */
}

/* --- PRELOADER --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-earth);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--accent-bg);
}

.emjay-title {
    font-family: var(--bold-font);
    font-size: 48px;
    letter-spacing: 18px;
    margin-bottom: 2.5rem;
    display: flex;
    overflow: hidden;
    text-transform: lowercase;
}

.emjay-title span {
    display: inline-block;
    transform: translateY(100%);
}

/* --- NAVIGATION DINÁMICA --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 40px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 110;
}

/* Clase añadida por JS para texto oscuro en fondos claros */
.navbar.nav-dark-text .logo a,
.navbar.nav-dark-text .nav-links a {
    color: var(--dark-earth);
}

.logo a {
    color: #fff;
    font-family: 'ITCBenguiatStd-BoldCn';
    font-size: 28px;
    letter-spacing: 15px;
    text-transform: lowercase;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.4s ease;
}

.nav-links a {
    color: #fff;
    margin-left: 40px;
    font-size: 16px;
    opacity: 0.9;
    transition: opacity 0.3s ease, color 0.4s ease;
    font-family: var(--medium-font);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    cursor: pointer;
}

.nav-links a:hover {
    opacity: 0.6;
}

/* --- HOME SECTION --- */
.home-section {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    /*padding-left: 6%;*/
    background-color: #000;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/hero_final.webp');
    background-size: cover;
    background-position: center;
    z-index: 0;
    filter: grayscale(20%) contrast(1.1);
}

.popesado-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(30px);
    color: var(--white-pure);
}

.popesado-main {
    display: flex;
    align-items: flex-end;
    line-height: 0.85;
}

.popesado-pop {
    font-family: var(--bold-font);
    font-size: clamp(8rem, 15vw, 12rem);
    letter-spacing: -2px;
}

.popesado-esado {
    font-family: var(--medium-font);
    font-size: clamp(4rem, 8vw, 5rem);
    margin-left: -22px;
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.popesado-tour {
    font-family: var(--primary-font);
    font-size: clamp(2.5rem, 6vw, 4rem);
    text-align: right;
    margin-top: -50px;
    padding-right: 8px;
    font-weight: bold;
}

/* --- NUEVA SECCIÓN: TRACKLIST (VINILO) --- */
.tracklist-section {
    background-color: var(--dark-earth);
    position: relative;
}

.vinyl-container {
    position: absolute;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    /* Para no bloquear clics */
    z-index: 1;
}

.vinyl-record {
    position: relative;
    width: 45vw;
    max-width: 500px;
    min-width: 300px;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* El nuevo disco exterior que rota y jala la imagen */
.vinyl-disc {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: repeating-radial-gradient(rgba(0, 0, 0, 0.4),
            rgba(0, 0, 0, 0.4) 4px,
            rgba(20, 20, 20, 0.6) 5px,
            rgba(0, 0, 0, 0.4) 7px), url('../img/hero.webp');
    /* <-- Aquí jala la imagen de fondo */
    background-size: cover;
    background-position: center;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8), inset 0 0 30px rgba(0, 0, 0, 0.9);
    animation: spinVinyl 8s linear infinite;
    z-index: 1;
}

@keyframes spinVinyl {
    100% {
        transform: rotate(360deg);
    }
}

/* La etiqueta central estática (sin animación) */
.vinyl-label {
    position: relative;
    z-index: 2;
    /* Se coloca sobre el disco */
    width: 40%;
    height: 40%;
    background-color: var(--accent-bg);
    /* Color de la paleta */
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--dark-earth);
    text-align: center;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 0, 0, 0.5);
}

.vinyl-label-title {
    font-family: var(--bold-font);
    font-size: clamp(14px, 1.8vw, 24px);
    letter-spacing: 1px;
    line-height: 1.1;
}

.vinyl-label-sub {
    font-family: var(--primary-font);
    font-size: clamp(10px, 1vw, 14px);
    margin-top: 5px;
}

.tracks-list-container {
    position: relative;
    z-index: 2;
    padding-top: 50vh;
    padding-bottom: 50vh;
    display: flex;
    flex-direction: column;
    gap: 35vh;
    /* Mucho espacio para animar el scroll */
    padding-left: 6%;
    padding-right: 6%;
    overflow-x: hidden;
}

.track-row {
    width: 50%;
    display: flex;
    flex-direction: column;
    opacity: 0;
}

.track-row.left {
    align-self: flex-start;
    align-items: flex-start;
    text-align: left;
}

.track-row.right {
    align-self: flex-end;
    align-items: flex-end;
    text-align: right;
}

.t-num {
    font-family: var(--medium-font);
    font-size: clamp(1.5rem, 3vw, 3rem);
    color: #BA5826;
    margin-bottom: -5px;
    letter-spacing: 2px;
}

.t-name {
    font-family: var(--bold-font);
    font-size: clamp(3rem, 7vw, 8rem);
    color: var(--white-pure);
    line-height: 0.9;
    text-transform: uppercase;
    word-wrap: break-word;
    margin: 0;
}

/* --- TOUR SECTION --- */
.tour-section {
    padding: 100px 6% 150px 6%;
    background-color: var(--warm-bg);
    min-height: 100vh;
}

.tour-title-container {
    overflow: hidden;
    text-align: center;
    margin-bottom: 80px;
}

.tour-title {
    color: var(--dark-earth);
    font-family: var(--bold-font);
    font-size: clamp(3.5rem, 10vw, 8.5rem);
    text-transform: uppercase;
    letter-spacing: -2px;
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
}

.month-divider {
    font-family: var(--bold-font);
    font-size: 16px;
    letter-spacing: 6px;
    text-transform: uppercase;
    padding: 24px 6%;
    margin: 40px -6% 0 -6%;
    background-color: var(--accent-bg);
    border-top: 1px solid #e2d1bc;
    border-bottom: 1.5px solid var(--dark-earth);
    color: var(--dark-earth);
}

/* --- TOUR ROW ANIMATIONS --- */
.tour-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 45px 0;
    border-bottom: 1px solid #eaddcf;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    cursor: pointer;
    margin: 0 -6%;
    padding-left: 6%;
    padding-right: 6%;
    background-color: transparent;
    color: var(--dark-earth);
    position: relative;
    overflow: hidden;
}

.tour-row:hover {
    background-color: var(--dark-earth);
    color: var(--accent-bg);
    padding-left: 8%;
    /* Empuja el contenido a la derecha */
}

.tour-col-date {
    flex: 0 0 140px;
    font-family: var(--medium-font);
    font-size: 24px;
    transition: transform 0.4s ease;
    padding-right: 40px;
}

.tour-col-city {
    flex: 1.2;
    font-family: var(--bold-font);
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    text-transform: uppercase;
    padding: 0 20px;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.tour-row:hover .tour-col-city {
    transform: scale(1.05);
    color: #BA5826;
    /* Un ligero crecimiento para énfasis */
}

.tour-col-venue {
    flex: 1;
    font-family: var(--primary-font);
    font-size: 20px;
    opacity: 0.7;
    padding: 0 20px;
    transition: opacity 0.4s ease;
}

.tour-row:hover .tour-col-venue {
    opacity: 1;
}

.tour-col-status {
    flex: 0 0 220px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.4s ease;
}

.status-badge {
    font-family: var(--bold-font);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 8px 20px;
    border-radius: 40px;
    white-space: nowrap;
}

.status-confirmed {
    background-color: #e3ede3;
    color: #2d4a2d;
}

.status-pending {
    background-color: #f5f0db;
    color: #63502b;
}

.tour-row:hover .status-confirmed {
    background-color: #2d4a2d;
    color: var(--white-pure);
}

.tour-row:hover .status-pending {
    background-color: #63502b;
    color: var(--white-pure);
}

.tour-col-action {
    flex: 0 0 160px;
    text-align: right;
    font-size: inherit;
    font-family: var(--primary-font);
    font-weight: 100;
    transition: none;
    transform: none !important;
}

.tour-row:hover .tour-col-action {
    transform: none !important;
}

.tour-col-action-empty {
    pointer-events: none;
}

/* --- NUEVA SECCIÓN: TICKETS --- */
.tickets-section {
    padding: 100px 6% 150px 6%;
    background-color: var(--dark-earth);
    color: var(--accent-bg);
    position: relative;
}

.tickets-section .tour-title {
    color: var(--accent-bg);
    /* Título claro para fondo oscuro */
}

.tickets-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 60px;
}

.ticket-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 50px 40px;
    border-radius: 16px;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), background-color 0.4s ease;
}

.ticket-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.06);
}

.ticket-city {
    font-family: var(--bold-font);
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--white-pure);
    margin-top: 0;
    margin-bottom: 30px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 15px;
}

.ticket-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
}

.ticket-info-row:last-child {
    border-bottom: none;
}

.ticket-label {
    font-family: var(--medium-font);
    font-size: 20px;
    color: var(--accent-bg);
    /* Integrado a la paleta */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ticket-date {
    font-family: var(--primary-font);
    font-size: 22px;
    color: var(--white-pure);
    text-align: right;
}

.ticket-info-row.highlight .ticket-label,
.ticket-info-row.highlight .ticket-date {
    font-family: var(--bold-font);
    font-size: 24px;
    color: var(--white-pure);
}

.ticket-info-row.highlight .ticket-label {
    color: var(--accent-bg);
}

/* --- FOOTER --- */
.site-footer {
    background-color: var(--white-pure);
    color: var(--dark-earth);
    padding: 100px 6% 120px 6%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
}

.footer-huge-text {
    font-family: var(--bold-font);
    font-size: clamp(4rem, 15vw, 22rem);
    line-height: 0.95;
    text-transform: uppercase;
    letter-spacing: -2px;
    text-align: left;
    border-bottom: 2px solid var(--dark-earth);
    padding-bottom: 40px;
    margin-bottom: 60px;
    overflow: visible;
}

/* --- FOOTER --- */
.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 56px;
}

.footer-contact-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: 760px;
    border-top: 1px solid rgba(26, 18, 11, 0.14);
}

.footer-contact-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 24px 0 28px 0;
    border-bottom: 1px solid rgba(26, 18, 11, 0.14);
    color: var(--dark-earth);
    text-decoration: none;
    transition: color 0.35s ease, padding-left 0.45s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.35s ease;
}

.footer-contact-card:hover {
    color: #BA5826;
    padding-left: 12px;
}

.contact-name {
    display: block;
    font-family: var(--bold-font);
    font-size: clamp(1.8rem, 3.2vw, 3.8rem);
    line-height: 0.92;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    order: 1;
}

.contact-role {
    display: block;
    max-width: 520px;
    margin-top: 8px;
    font-family: var(--medium-font);
    font-size: 16px;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(26, 18, 11, 0.42);
    order: 2;
}

.contact-email-row {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-top: 18px;
    font-family: var(--primary-font);
    font-size: 22px;
    line-height: 1;
    color: rgba(26, 18, 11, 0.68);
    order: 3;
    transition: color 0.35s ease;
}

.footer-contact-card:hover .contact-email-row {
    color: #BA5826;
}

.contact-arrow {
    font-family: var(--bold-font);
    font-size: 24px;
    line-height: 1;
    opacity: 0.65;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.footer-contact-card:hover .contact-arrow {
    transform: translateX(8px);
    opacity: 1;
}

.footer-socials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 80px;
}

.social-link {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid rgba(26, 18, 11, 0.2);
    padding-bottom: 12px;
    width: 350px;
    text-decoration: none;
    color: var(--dark-earth);
    transition: all 0.3s ease;
}

.social-link .social-name {
    font-family: var(--bold-font);
    font-size: 24px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.social-link .social-handle {
    font-family: var(--primary-font);
    font-size: 18px;
    opacity: 0.7;
    transition: color 0.3s ease;
}

.social-link:hover {
    border-bottom-color: var(--mid-earth);
}

.social-link:hover .social-name,
.social-link:hover .social-handle {
    color: var(--mid-earth);
    opacity: 1;
}

.footer-copy {
    font-family: var(--primary-font);
    font-size: 14px;
    text-align: right;
    text-transform: uppercase;
    line-height: 1.6;
    opacity: 0.8;
}

.footer-credit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-family: var(--medium-font);
    font-size: 13px;
    line-height: 1;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(26, 18, 11, 0.55);
    text-decoration: none;
    transition: color 0.35s ease, transform 0.35s ease;
}

.footer-credit span {
    color: var(--dark-earth);
    border-bottom: 1px solid rgba(26, 18, 11, 0.35);
    transition: border-color 0.35s ease, color 0.35s ease;
}

.footer-credit:hover {
    color: #BA5826;
    transform: translateY(-2px);
}

.footer-credit:hover span {
    color: #BA5826;
    border-color: #BA5826;
}

/* --- REDES SOCIALES FIJAS --- */
.fixed-socials {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 105;
    display: flex;
    flex-direction: column;
    gap: 14px;
    opacity: 1;
    pointer-events: auto;
}

.fixed-socials a {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgb(26 18 11 / 50%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.fixed-socials a:hover {
    transform: scale(1.12);
    background-color: var(--dark-earth);
    border-color: var(--white-pure);
}
.fixed-socials a svg {
    width: 24px;
}
.fixed-socials img {
    width: 19px;
    height: 19px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    display: block;
}

/* --- SPOTIFY MINI PLAYER --- */
.spotify-wrapper {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 100;
    width: 390px;
    opacity: 0;
    transform: translateY(20px);
    box-shadow: 0 10px 30px rgba(26, 18, 11, 0.15);
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .navbar {
        padding: 30px 40px;
    }
    .footer-contact-grid {
        max-width: 100%;
    }

    .footer-contact-card {
        padding: 24px 0 28px 0;
    }

    .contact-email-row {
        justify-content: flex-start;
        margin-top: 18px;
    }

    .footer-socials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 25px;
    }

    .nav-links {
        display: none;
    }

    /* Responsive Tracklist (Vinilo) */
    .vinyl-record {
        width: 70vw;
        opacity: 0.4;
        /* Translúcido en móvil para dejar leer textos */
    }

    .track-row {
        width: 100%;
        align-self: center !important;
        align-items: center !important;
        text-align: center !important;
    }

    .t-name {
        font-size: 4rem;
    }

    .tracks-list-container {
        gap: 25vh;
    }

    /* Responsive Giras / Tour */
    .tour-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 30px 6%;
    }

    .tour-row:hover {
        padding-left: 6%;
        /* Desactiva el push lateral en móvil */
    }

    .tour-col-date {
        flex: none;
        font-size: 20px;
        opacity: 0.8;
        margin-bottom: -5px;
    }

    .tour-col-city {
        font-size: 2.2rem;
        padding: 0;
        width: 100%;
        line-height: 1.1;
    }

    .tour-col-venue {
        padding: 0;
        width: 100%;
        font-size: 18px;
    }

    .tour-col-status {
        justify-content: flex-start;
        flex: none;
        margin-top: 10px;
        width: 100%;
    }

    .tour-col-action {
        display: none;
    }

    .month-divider {
        font-size: 14px;
        padding: 18px 6%;
    }

    /* Responsive Tickets */
    .tickets-container {
        grid-template-columns: 1fr;
    }

    .ticket-card {
        padding: 35px 25px;
    }

    .ticket-city {
        font-size: 2.5rem;
    }

    .ticket-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        padding: 15px 0;
    }

    .ticket-date {
        text-align: left;
        font-size: 18px;
    }

    .ticket-info-row.highlight .ticket-date {
        font-size: 20px;
    }

    /* Ajustes especiales para la tarjeta de GDL, QRO, LEÓN en móvil */
    .ticket-card:last-child .ticket-info-row.highlight {
        gap: 10px;
    }

    .ticket-card:last-child .ticket-info-row.highlight .ticket-label {
        font-size: 22px !important;
    }

    .ticket-card:last-child .ticket-info-row.highlight .ticket-date {
        font-size: 32px !important;
    }

    .fixed-socials {
        position: fixed;
        left: 50%;
        right: auto;
        top: auto;
        bottom: 22px;
        transform: translateX(-50%);
        z-index: 105;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 12px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .fixed-socials a {
        width: 40px;
        height: 40px;
    }

    .fixed-socials a svg {
        width: 21px;
        height: 21px;
    }

    .fixed-socials img {
        width: 17px;
        height: 17px;
    }
    /* Ocultar Spotify en Móvil */
    .spotify-wrapper {
        display: none;
        visibility: hidden;
    }

    /* Responsive Footer */
    .site-footer {
        padding-bottom: 100px;
    }

    .footer-content {
        flex-direction: column;
        align-items: stretch;
        gap: 42px;
    }

    .footer-contact-card {
        padding: 24px 0 28px 0;
    }

    .contact-name {
        font-size: clamp(2rem, 10vw, 3.2rem);
    }

    .contact-role {
        font-size: 15px;
        max-width: 320px;
        margin-top: 8px;
    }

    .contact-email-row {
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 16px;
        font-size: 20px;
        word-break: break-word;
    }

    .social-link {
        width: 100%;
        min-width: 100%;
    }

    .footer-copy {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .navbar {
        position: absolute !important;
        top: 70px !important;
    }

    .logo {
        width: 100%;
        text-align: center !important;
    }

    /*.background-image {
               background-image: url(../img/hero_mobile.webp);
            }*/
    .popesado-container {
        scale: 0.8 !important;
    }

    .popesado-esado {
        margin-left: -22px;
        margin-bottom: 1rem;
    }

    .popesado-tour {
        font-size: clamp(3rem, 6vw, 4rem);
        margin-top: -30px !important;
        padding-right: 5px !important;
    }

    .footer-socials-grid {
        width: -webkit-fill-available;
    }
}

