/* ==========================
   VARIABLES / BASE
   ========================== */
:root {
    --bg-main: #000;
    --bg-card-top: #1f1f1f;
    --bg-card-bottom: #111;
    --accent: #f5c518;
    --text-main: #ffffff;
    --text-soft: #d4d4d4;
    --border-soft: rgba(255, 255, 255, 0.09);
    --header-height: 88px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Bebas Neue', Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    padding-top: var(--header-height);
    /* reserva bajo header fijo */
    line-height: 1.3;
}

.h2 {
    font-family: 'Bebas Neue', Arial, sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================
   OFFSET ANCLAS
   ========================== */
#Merchoficial,
#Rolas,
#MSOD,
#inicio {
    scroll-margin-top: calc(var(--header-height) + 40px);
}

/* ==========================
   HEADER
   ========================== */
.header {
    position: fixed;
    inset: 0 0 auto 0;
    background: radial-gradient(circle at top left, #262626 0, #000 60%);
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
    height: var(--header-height);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 64px;
    width: auto;
    display: block;
}

/* NAV */
.nav {
    display: flex;
}

.nav-list {
    display: flex;
    gap: 26px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav a {
    text-decoration: none;
    color: #fff;
    font-size: 20px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 4px;
    transition:
        color 0.25s ease,
        text-shadow 0.25s ease,
        letter-spacing 0.25s ease,
        transform 0.25s ease;
}

/* Línea inferior tipo “spray / neón” */
.nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg,
            rgba(245, 197, 24, 0),
            var(--accent),
            rgba(245, 197, 24, 0));
    box-shadow: 0 0 10px rgba(245, 197, 24, 0.85);
    transform-origin: left;
    transform: scaleX(0);
    opacity: 0;
    transition:
        transform 0.25s ease,
        opacity 0.25s ease,
        box-shadow 0.25s ease;
}

/* Hover con glow + letra más agresiva */
.nav a:hover {
    color: var(--accent);
    letter-spacing: 0.2em;
    text-shadow:
        0 0 6px rgba(255, 255, 255, 0.9),
        0 0 16px rgba(245, 197, 24, 0.95),
        0 0 26px rgba(245, 197, 24, 0.8);
    transform: translateY(-1px);
}

.nav a:hover::after {
    transform: scaleX(1);
    opacity: 1;
    box-shadow:
        0 0 10px rgba(245, 197, 24, 0.95),
        0 0 18px rgba(245, 197, 24, 0.8);
}

/* ==========================
   HERO (solo banner)
   ========================== */
.hero {
    position: relative;
    height: calc(100vh - var(--header-height));
    /* alto fijo = pantalla - header */
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    /* ocupa TODO el hero */
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#ImagenBody {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* recorta la imagen y la estira */
    object-position: center;
    /* puedes cambiar a 'right center' si quieres más hacia la derecha */
    display: block;
    filter: saturate(1.1) contrast(1.08);
    transform: scale(1.1);
    /* ligero zoom para que se vea más agresivo */
    will-change: transform;
}

/* ==========================
   EDICIÓN ESPECIAL NAVIDAD
   ========================== */
.section--xmas {
    padding: 50px 0 40px;
    background:
        radial-gradient(circle at top, #30000a 0, #000 55%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.xmas-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.1fr);
    gap: 32px;
    align-items: center;
}

.xmas-copy {
    max-width: 540px;
}

.xmas-tagline {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(245, 197, 24, 0.7);
    font-size: 12px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #ffe9a6;
    background: rgba(0, 0, 0, 0.7);
    margin: 0 0 10px;
}

.xmas-title {
    margin: 0 0 10px;
    font-size: 32px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.xmas-text {
    margin: 0 0 16px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-soft);
    letter-spacing: 0.04em;
}

.xmas-note {
    margin: 6px 0 0;
    font-size: 12px;
    color: #bbbbbb;
    font-family: inherit;
    letter-spacing: 0.08em;
}

.card--xmas {
    border-color: rgba(255, 73, 73, 0.6);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.95),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

.card--xmas .card-content h3 {
    color: #ffd966;
}

.card-badge--xmas {
    background: linear-gradient(135deg, #ff1f3d, #f5c518);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.9);
}

.btn-secondary--xmas {
    margin-top: 6px;
}

/* Responsive para la sección navideña */
@media (max-width: 768px) {
    .xmas-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .xmas-copy {
        order: 2;
        margin: 0 auto;
    }

    .section--xmas .cards {
        order: 1;
    }
}

/* ==========================
   SECCIONES GENERALES
   ========================== */
.section {
    padding: 60px 0;
    background-color: #000;
}

.section--tight {
    padding: 40px 0 60px;
}

.section--band {
    background:
        linear-gradient(180deg, #000 0, #050505 30%, #050505 70%, #000 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.section-header {
    text-align: center;
    margin-bottom: 26px;
}

.section-header h2 {
    font-size: 26px;
    margin: 0 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    display: inline-block;
    position: relative;
}

.section-header h2::after {
    content: '';
    display: block;
    margin: 9px auto 0;
    width: 90px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), #ffffff);
}

.section-subtitle {
    margin: 0;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-soft);
    letter-spacing: 0.05em;
}

/* ==========================
   CATEGORÍA VISUAL
   ========================== */
.category-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
}

.category-pill {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #eee;
    background: rgba(20, 20, 20, 0.9);
}

/* ==========================
   CARDS / GRID PRODUCTOS
   ========================== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px;
    align-items: stretch;
}

.cards--dynamic {
    margin-bottom: 32px;
}

.card {
    background: radial-gradient(circle at top, var(--bg-card-top) 0, var(--bg-card-bottom) 55%);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    transform: translateY(10px);
    opacity: 0;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease,
        opacity 0.25s ease;
}

.card--visible {
    transform: translateY(0);
    opacity: 1;
}

.card--msod {
    border-color: rgba(245, 197, 24, 0.25);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.9),
        0 0 0 1px rgba(245, 197, 24, 0.35);
    border-color: rgba(245, 197, 24, 0.55);
}

.card-content {
    padding: 16px 18px 20px;
    text-align: center;
}

.card-content h3 {
    margin: 0 0 6px;
    font-size: 18px;
    color: var(--accent);
    letter-spacing: 0.12em;
}

.card-content p {
    margin: 0 0 14px;
    font-size: 15px;
    color: #e5e5e5;
    letter-spacing: 0.05em;
}

/* Badge MSOD */
.card-badge {
    position: absolute;
    top: 8px;
    left: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--accent);
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    z-index: 3;
    border: 1px solid rgba(245, 197, 24, 0.5);
}

/* ==========================
   BOTONES GENERALES
   ========================== */
.btn-secondary {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top left, #ffffff 0, #f5c518 65%);
    color: #101010;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border: 1px solid rgba(0, 0, 0, 0.85);
    box-shadow: none;
    cursor: pointer;
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        letter-spacing 0.22s ease,
        background 0.22s ease,
        color 0.22s ease;
}

/* Brillo diagonal */
.btn-secondary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg,
            rgba(255, 255, 255, 0.0) 0%,
            rgba(255, 255, 255, 0.40) 45%,
            rgba(255, 255, 255, 0.0) 100%);
    transform: translateX(-120%);
    pointer-events: none;
    transition: transform 0.4s ease;
}

/* Hover */
.btn-secondary:hover {
    transform: translateY(-1px) scale(1.03);
    letter-spacing: 0.16em;
    color: #ffffff;
    background: radial-gradient(circle at top, #b36600 0, #7a3f00 55%);
    /* dorado quemado → café oscuro */
    box-shadow: none;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.85); /* contorno para que resalte aún más */
}

.btn-secondary:hover::before {
    transform: translateX(120%);
}

/* Versión NAVIDEÑA: CTA principal */
.btn-secondary--xmas {
    background: linear-gradient(135deg,
            #640b1f 0%,
            /* vino oscuro */
            #d82532 35%,
            /* rojo intenso */
            #f6c453 100%
            /* dorado cálido */
        );
    color: #ffffff;
    border-color: rgba(0, 0, 0, 0.9);
    box-shadow: none;
}

.btn-secondary--xmas:hover {
    background: linear-gradient(135deg,
            #7b1027 0%,
            #f13640 35%,
            #ffd86b 100%);
    transform: translateY(-1px);
}

/* ==========================
   SLIDER DE IMÁGENES
   ========================== */
.image-slider {
    position: relative;
    width: 100%;
    background-color: #000;
    overflow: hidden;
    border-radius: 14px 14px 0 0;
    aspect-ratio: 3 / 4;
}

.image-slider .image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
    opacity: 0;
}

.image-slider .image.active {
    display: block;
    opacity: 1;
    transform: scale(1.01);
}

/* Botones del slider */
.image-slider button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.55);
    color: #fff;
    border: none;
    padding: 6px 9px;
    cursor: pointer;
    z-index: 2;
    border-radius: 999px;
    font-size: 14px;
    line-height: 1;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.image-slider button.left {
    left: 8px;
}

.image-slider button.right {
    right: 8px;
}

.image-slider button:hover {
    background-color: rgba(0, 0, 0, 0.85);
    transform: translateY(-50%) scale(1.05);
}

/* ==========================
   SPOTIFY
   ========================== */
.spotify-player {
    display: flex;
    justify-content: center;
}

.spotify-player iframe {
    border: 2px solid #ffffff;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.9);
    max-width: 700px;
}

/* ==========================
   FOOTER
   ========================== */
.footer {
    text-align: center;
    background-color: #000;
    padding: 24px 0 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer p {
    margin: 3px 0 0;
    font-size: 13px;
    color: #aaa;
    letter-spacing: 0.08em;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 8px;
}

.social-icons a {
    color: #fff;
    font-size: 22px;
    transition: color 0.25s ease, transform 0.25s ease;
}

.social-icons a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

/* ==========================
   FORM / ADMIN (login, admin)
   ========================== */
form input[type="text"],
form input[type="password"],
form input[type="number"],
form input[type="file"],
form textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    font-family: inherit;
    border-radius: 6px;
    border: 1px solid #555;
    background-color: #121212;
    color: #fff;
}

form textarea {
    resize: vertical;
    min-height: 100px;
}

form button {
    margin-top: 10px;
    width: 100%;
}

/* Tabla admin */
table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 30px;
    font-size: 14px;
}

table th,
table td {
    border: 1px solid #444;
    padding: 10px;
    text-align: center;
}

table th {
    background-color: #222;
    color: var(--accent);
}

table td img {
    max-width: 100px;
    height: auto;
    border-radius: 4px;
}

/* ==========================
   MENU HAMBURGUESA
   ========================== */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    background: transparent;
    border: none;
    padding: 4px;
}

.menu-toggle span {
    height: 3px;
    width: 24px;
    background: #fff;
    display: block;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================
   RESPONSIVE
   ========================== */
@media (max-width: 992px) {
    .section {
        padding: 50px 0;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 78px;
    }

    .header {
        height: var(--header-height);
    }

    body {
        padding-top: var(--header-height);
    }

    .hero {
        min-height: calc(100vh - var(--header-height));
        overflow: hidden;
        /* asegúrate que esté */
    }

    #ImagenBody {
        width: 100%;
        height: 100%;
        object-fit: cover;
        /* se recorta */
        object-position: center;
        /* parte central del banner */
        transform: scale(1.25);
        /* zoom en móvil */
    }

    .menu-toggle {
        display: flex;
    }

    .nav {
        position: absolute;
        top: var(--header-height);
        right: 0;
        left: 0;
        background: #000;
        display: none;
        flex-direction: column;
        align-items: center;
        padding: 18px 0 16px;
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.9);
    }

    .nav.show {
        display: flex;
    }

    .nav-list {
        flex-direction: column;
        gap: 14px;
    }

    .nav a {
        font-size: 18px;
    }

    .spotify-player iframe {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 40px 0;
    }

    .section-header h2 {
        font-size: 22px;
    }

    .card-content h3 {
        font-size: 16px;
    }

    .card-content p {
        font-size: 13px;
    }

    .category-bar {
        gap: 6px;
    }

    .category-pill {
        font-size: 11px;
    }
}

/* ==========================
   ANIMACIONES
   ========================== */
@keyframes heroFade {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}