:root {
    --color-principal: #f6f0ea;
    --color-secundario: #d90000;
    --color-terciario: #111;
    --color-fondo: #111;
    --color-texto: #f6f0ea;
    --color-premium: #d8b600;
    --color-premium-hover: #ffcc33;
    --color-premium-hover-alt: #e6c200;
    --swiper-navigation-color: #ff9dff;
    --swiper-pagination-color: #d90000;
    --swiper-pagination-bullet-inactive-color: #d90000;
    --swiper-pagination-bullet-inactive-opacity: 0.4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--color-fondo);
    color: var(--color-texto);
    line-height: 1.6;
}

header {
    width: 100%;
    position: fixed;
    z-index: 998;
}

nav {
    background-image: linear-gradient(to right, rgb(237,0,0) 5%, rgb(99, 0, 0) 60%);
    color: white;
    width: 100%;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1rem;
    align-items: center;
}

nav ul li a {
    color: var(--color-principal);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav a[href="#tickets"] {
    color: var(--color-premium);
    font-weight: bold;
    text-shadow: 4px 4px 8px rgba(251, 176, 59, 0.6);
    transition: color 0.3s, filter 0.3s;
}

nav a[href="#tickets"]:hover {
    color: var(--color-premium-hover);
}

nav ul li a:hover {
    color: var(--color-premium-hover-alt);
}

nav ul li:first-child {
    font-family: 'Allura', cursive;
    margin-right: auto;
    font-size: 2em;
}

.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    background-color: rgba(119, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    height: 100vh;
    width: 250px;
    z-index: 999;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    transition: transform 1s ease-in-out;
    transform: translateX(100%);
}

.sidebar.show {
    display: flex;
    transform: translateX(0);
}

.sidebar li {
    width: 100%;
}

.sidebar li a {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.instagram-link {
    margin: 0;
    display: flex;
    align-items: center;
}


.instagram-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.tickets-link {
    margin: 0;
    display: flex;
    align-items: center;
}


.tickets-link svg {
    width: 30px;
    height: 30px;
    fill: var(--color-premium);
    filter: drop-shadow(4px 4px 8px rgba(251, 176, 59, 0.6));
    transition: fill 0.5s;
}

.tickets-link svg:hover {
    fill: var(--color-premium-hover);
}

.menu-button svg {
    width: 24px;
    height: 24px;
    fill: var(--color-principal);
}

.menu-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: none;
}

.close-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    align-self: flex-end;
}

#main h1 {
    color: var(--color-premium);
    font-size: 3rem;
    text-shadow: 4px 4px 8px rgba(251, 176, 59, 0.6);
    text-align: center;
}

.cdlc {
    font-weight: bolder;
    text-shadow: 4px 4px 8px rgba(251, 176, 59, 0.6);
}

section {
    padding: 6rem 1.5rem 0 1.5rem;
    max-width: 1000px;
    margin: auto;
}

section h2 {
    font-size: 2rem;
    color: var(--color-secundario);
    margin-bottom: 1em;
    text-align: center;
}

section p {
    text-align: center;
    font-size: 1.1rem;
}

#about h3 {
    padding-bottom: 1em;
    color: var(--color-premium);
}

#about p~h3 {
    padding-top: 1em;
}

#about h4 {
    padding: 0.1em 0;
}

#about p:nth-of-type(2) {
  padding-top: 2em;
}

#about h4~p {
    padding-top: 1em;
    color: var(--color-secundario);
    font-weight: bold;
}

#about swiper-container {
    width: 100%;
    padding-top: 50px;
}

#about swiper-slide {
    background-position: center;
    background-size: cover;
    width: 300px;
    height: 250px;
}

#about swiper-slide img {
    display: block;
    width: 100%;
}

#lineUp h3 {
    text-align: left;
    padding-top: 20px;
}

.Lineup-Card-Container {
    margin: 30px 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* máximo 3 en desktop */
    gap: 20px;
    justify-items: center;
}

.Lineup-Card {
    width: 100%;
    max-width: 210px;
    text-align: center;
    object-fit: cover;
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 20% cover 30%;
}

.Lineup-Card img:first-child {
    width: 210px;
    height: 276px;
    border-radius: 10px;
}

#lineUp article a svg {
    width: 20px;
    height: 20px;
    fill: white;
    transition: fill 0.5s;
}

#lineUp article a svg:hover {
    fill: var(--color-premium-hover);
}

/*TODO: BEGIN TEST*/

.Lineup-neon {
    margin-top: 20px;
    padding: 10px 0;
    border: 2px solid var(--color-secundario);
    box-shadow: 0 0 8px var(--color-secundario), 0 0 10px var(--color-secundario) inset;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.Lineup-neon a {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

#schedule h3 {
    text-align: left;
    color: var(--color-premium);
    padding: 20px 0;
}

/* Cards for schedule based on bachata sauna */

.event-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #222;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}

.event-info h4 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: bold;
}

.event-info h4 span {
  font-weight: normal;
  opacity: 0.8;
}

.event-info p {
  text-align: left;
  margin: 0.3rem 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

.event-info .dj {
  font-style: italic;
  opacity: 0.7;
}

.event-img img {
  width: 80px;
  border-radius: 10px;
}

/* 🎨 Gradients según categoría */
.purple {
  background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.blue {
  background: linear-gradient(135deg, #3498db, #2c3e50);
}

.green {
  background: linear-gradient(135deg, #1abc9c, #0e6655);
}

.red {
  background: linear-gradient(135deg, #e74c3c, #6D0000);
}

.purple-dark {
  background: linear-gradient(135deg, #8e44ad, #2c003e);
}

.orange {
  background: linear-gradient(135deg, #ff9500, #894500)
}

/* Type colors */
.color-box {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin: 0 5px;
    border-radius: 3px;
    vertical-align: middle;
}

.gridBox.headers { background-color: var(--color-secundario) }
.color-box.basic, .gridBox.basic { background-color: #264653; }
.color-box.preIntermediate, .gridBox.preIntermediate { background-color: #f4a261; }
.color-box.intermediate, .gridBox.intermediate { background-color: #e76f51; }
.color-box.advanced, .gridBox.advanced { background-color: #e63946; }
.gridBox.party { background-color: blueviolet; }

/* Legend for the schedule */
.legend {
    margin-top: 2rem;
    text-align: center;
    font-size: 14px;
}

#venue {
    text-align: center;
}

#venue .swiper {
    width: 100%;
    height: 300px;
    padding-bottom: 3rem;
}

#venue .swiper-slide {
    text-align: center;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#venue .swiper-slide img {
    display: block;
    width: 100%;
    border-radius: 1rem;
    object-fit: cover;
}

#venue .lineup-swiper {
    width: 100%;
    padding: 2rem 0 3rem; /* arriba, lados, abajo */
}

#venue h3 {
    color: var(--color-secundario);
}

#venue p a,
#contact p a,
#contact p a:visited,
#contact p a:link,
#tickets p a {
    color: rgb(228, 206, 62);
    /* color: var(--color-principal); */
    font-weight: bolder;
    font-style: italic;
    text-decoration: none;
    text-shadow: 4px 4px 8px rgba(251, 176, 59, 0.6)
}

#tickets {
    text-align: center;
}

#tickets > a {
    display: inline-block;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    color: var(--color-premium);
    text-shadow: 4px 4px 8px rgba(251, 176, 59, 0.6);
    text-align: center;
    background-image: linear-gradient(to right, rgba(60, 0, 0, 0.6), rgb(21, 0, 0, 0.6), rgb(139, 0, 0, 0.6));
    /* background-color: rgba(151, 25, 27, 0.3); */
    margin: 0 auto;
    padding: 1em 3em;
    outline: solid var(--color-secundario) 3px;
    box-shadow: 0 0 8px var(--color-secundario), 0 0 10px var(--color-secundario) inset;
    border-radius: 1000px;
    transition: 1s;
    backdrop-filter: blur(10px);
}

#tickets a:hover {
    scale: 1.1;
}

.cardContainer {
    margin: 50px 0;
    display: flex;
    row-gap: 20px;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

.card {
    border: 2px solid var(--color-secundario);
    box-shadow: 0 0 8px var(--color-secundario), 0 0 20px var(--color-secundario) inset;
    border-radius: 20px;
    text-align: center;
    width: 220px;
}

#tickets article h3 {
    font-size: 1.5rem;
    color: var(--color-premium);
    margin-top: 20px;
    margin-bottom: 10px;
    text-align: center;
}

h3 ~ hr {
    width: 80%;
    margin: 0 auto;
}

#tickets article p {
    text-align: left;
}

.card-info-container {
    text-align: left;
    padding: 1rem 1rem;
    position: relative;
}

.sold-out-warning {
    color: var(--color-secundario);
    font-size: 50px;
    font-weight: bold;
    position: absolute;
    top: 10%;
    left: 20%;
    rotate: 320deg;
}

.buy-at-door-warning {
    color: var(--color-secundario);
    font-size: 40px;
    font-weight: bold;
    position: absolute;
    top: 5%;
    left: 17%;
    rotate: 320deg;
}

.price-card {
    font-size: 1.5rem;
    font-weight: bolder;
}

.price-card-old {
    font-size: 1.5rem;
    font-weight: bolder;
    text-decoration: line-through;
    text-decoration-color: var(--color-secundario);
    text-decoration-thickness: 2px;
}
.complement-price-card {
    font-size: 0.9rem;
}

.card-info-container ul li {
    list-style: none;
    padding-top: 10px;
}

details {
    margin: 0.8rem 0.8rem;
    padding: 0.5rem 1.5rem;
    background-color: rgba(42, 40, 40, 0.2);
    box-shadow: 2px 2px 5px rgba(42, 40, 40, 0.4);
    backdrop-filter: blur(10px);
    color: var(--color-secundario);
    font-size: 1.1em;
    border-radius: 5px;
    overflow: hidden;
    interpolate-size: allow-keywords;
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 20% cover 30%;
}

details:hover {
    opacity: 0.75;
    cursor: pointer;
}

details:active {
    opacity: 1;
    cursor: pointer;
}

details::details-content {
    block-size: 0;
    transition: block-size 1s, content-visibility 1s;
    transition-behavior: allow-discrete;
}

details[open]::details-content {
    block-size: auto;
}

details summary {
    list-style-position: outside;
    font-weight: bolder;
}

details > p {
    text-align: left;
    color: var(--color-principal);
    font-size: 1rem;
    padding-top: 0.5em;
}

#Impressum, #DataProtection {
    padding-top: 10vh;
}

#Impressum h3 {
    color: var(--color-premium);
    text-align: center;
}

#DataProtection h3 {
    color: var(--color-secundario);
}

#DataProtection h3:nth-of-type(2) {
    padding-top: 2em;
}

#DataProtection h4 {
    color: var(--color-premium);
    padding-top: 2em;
    padding-bottom: 2em;
}

#DataProtection p {
    text-align: left;
}

footer {
    width: 100%;
    background-image: linear-gradient(to right, rgb(237,0,0) 5%, rgb(99, 0, 0) 60%);
    color: var(--color-principal);
    text-align: center;
    margin-top: 5rem;
    padding: 2rem 1rem;
    font-size: 0.9rem;
}

footer a {
    color: var(--color-principal);
    font-weight: bold;
    font-style: italic;
    text-decoration: none;
    text-shadow: 2px 2px 2px var(--color-terciario)
}

.footer-spacing {
    margin-top: 0.5rem;
}

img#creme {
    margin-top: 83px;
}
    
@media (max-width: 1023px) {
    img#creme {
        margin-top: 80px;
    }
    
    .Lineup-Card-Container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    img#creme {
        margin-top: 83px;
    }
    
    #main h1 {
        font-size: 2.2rem;
    }

    #main {
        margin-bottom: 0px;
    }

    #main p {
        font-size: 1rem;
    }

    .titulo-elegante {
        padding-top: 50px;
        line-height: 1;
  }

    section {
        padding: 5.5rem 1.5rem 0 1.5rem;
    }

    section h2 {
        font-size: 1.6rem;
    }

    .hideOnMobile {
        display: none;
    }


    .menu-button {
        display: flex;
    }

    #venue swiper-container {
        max-width: 40vw;
        aspect-ratio: 1 / 1;
    }

    #venue .custom-nav {
        display: none;
    }

    .Lineup-Card-Container {
        grid-template-columns: 2fr;
    }
}
@media (max-width: 480px) {
    img#creme {
        margin-top: 70px;
    }

    nav ul li:first-child {
        font-size: 1em;
    }

    nav ul li:first-child a {
        font-size: 1.5em;
    }

    section {
        padding: 3rem 1.5rem 0 1.5rem;
    }

    section h2 {
        margin-top: 0.8em;
    }

    #main h1 {
        font-size: 1.5rem;
    }

    #main a {
        font-size: 0.75rem;
    }

    nav a {
        font-size: 0.95rem;
    }

    .titulo-elegante {
        padding-top: 50px;
        line-height: 1;
  }

    .gridContainer {
        overflow-x: scroll;
    }

    #venue swiper-container {
        max-width: 70vw;
        aspect-ratio: 1 / 1;
    }
}

@keyframes reveal {
        from {
            opacity: 0;
            translate: 0 50px;
        }

        to {
            opacity: 1;
            translate: 0 0;
        }
    }

/* montserrat-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/montserrat/montserrat-v31-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-700 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/montserrat/montserrat-v31-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* allura-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Allura';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/allura/allura-v23-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
