:root {
    --primary-color: #1a1e2a;
    --secondary-color: #e6007e;
    --accent-color: var(--secondary-color);
    --light-bg: #f8f9fa;
    --dark-bg: #1a1e2a;
    --text-color: #7e93b6;
    --text-color-light: #fefefe;
    --text-color-dark-light: #384e6b;
    --text-color-dark: #29235C;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --wild-strawberry-50: #ffecf1;
    --wild-strawberry-100: #ffa5c2;
    --wild-strawberry-200: #ff78aa;
    --wild-strawberry-300: #e6007e;
    --wild-strawberry-400: #9d0054;
    --wild-strawberry-500: #70003a;
    --wild-strawberry-600: #2b0013;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.7;
    background-color: var(--light-bg);
    color: var(--text-color-dark);
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 25px;
}

h1,
h2,
h3,
h4 {
    font-family: 'Poppins', serif;
    font-weight: 700;
    color: var(--accent-color);
    /* color: var(--primary-color); */
}

img {
    max-width: 100%;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    cursor: pointer !important;
}

a:hover {
    text-decoration: none;
    color: var(--wild-strawberry-500);
}

input,
select,
textarea {
    border: 1px solid var(--text-color);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: clamp(14px, 2vw, 16px);
    accent-color: var(--accent-color);
    outline: none;

}

input,
select {
        height: 48px;
    align-content: center;
    align-items: center;
}

input:active,
input:focus,
input:focus-visible,
input:focus-within,
select:active,
select:focus,
select:focus-visible,
select:focus-within,
textarea:active,
textarea:focus,
textarea:focus-visible,
textarea:focus-within {
    border: 1px solid var(--accent-color) !important;
}

#search{
    border: none !important;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px #fff inset;
}

/* Encabezado */
.main-header {
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 0px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.logo {
    /* font-size: 2rem;
    font-weight: 700; */
    text-decoration: none;
    color: var(--primary-color);
    transition: 0.5s ease-in-out;

    img {
        max-width: 180px;
    }
}

.logo span {
    color: var(--secondary-color);
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-nav li {
    margin-left: 2.5rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color-dark);
    font-weight: 600;
    font-size: clamp(14px, 2vw, 15px) !important;
    position: relative;
    transition: color 0.3s ease;
}

.blur {
    filter: blur(41px);
}

.main-nav a:hover {
    color: var(--secondary-color);
}

.nav-button {
    text-wrap: nowrap;
    text-wrap-mode: nowrap;
    background-color: var(--secondary-color);
    color: var(--text-color-light) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: var(--secondary-color) solid 1px;

}


.nav-button:hover {
    background-color: #c40a5a;
    transform: scale(1.05);

    transition: background-color 0.3s ease, transform 0.2s ease;

    background-image: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    border: var(--wild-strawberry-400) solid 1px;
}


.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    position: relative;
    width: 100%;
    gap: 30px;
}

.nav__logo a {
    /* color: #fff; */
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
}

.nav__menu {
    list-style: none;
    display: flex;
    gap: 2%;
    margin: 0;
}

.nav__menuli a {
    /* color: #fff; */
    text-decoration: none;
    transition: color 0.2s;
}

.nav__menuli a:hover {
    /* color: #e2c400; */
}



/* .nav__toggle-bar {
  width: 27px;
  height: 3px;
  background: var(--secondary-color);
} */



.nav__toggle {
    cursor: pointer;
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    z-index: 20;
    transition: all 0.3s;
}

.nav__toggle:hover {
    background: none !important;
}


.nav__toggle-bar {
    width: 28px;
    height: 3px;
    background: var(--secondary-color);

    border-radius: 2px;
    transition: all 0.3s;
}

/* Estado abierto ("X") */
.nav__toggle.open .nav__toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.nav__toggle.open .nav__toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav__toggle.open .nav__toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}



.dropdown-menu {
    position: absolute;
    z-index: 5;
    display: none;
    min-width: 10rem;
    padding: .5rem 0;
    margin: 0;
    font-size: 1rem;
    color: #3f3f3f;
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: .25rem;

    ul {
        display: flex;
        flex-wrap: wrap;
    }
}

.header-info-dropdown .btn-info {
    background-color: transparent;
    border: none;
    box-shadow: none;
    color: #494343;
    cursor: pointer;
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    margin-right: 0;
    padding: 0 36px 0 19px;
    position: relative;
    transition: all 0.3s ease 0s;
}

.header-info-dropdown .dropdown-menu {
    background: #FFFFFF;
    border-radius: 6px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin: 0;
    min-width: 120px;
    max-width: 120px;
    overflow: hidden;
    padding: 0 15px;
    top: 53px !important;
    z-index: 999;
    right: 0 !important;
    left: auto !important;
    display: none;
}

.header-info-dropdown .dropdown-menu .dropdown-item {
    border-bottom: 1px solid #efefef;
    color: var(--dark-bg);
    cursor: pointer;
    display: inline-block;
    font-size: 12px;
    padding: 14px 7px;
    transition: all 0.3s ease 0s;
    margin: 0px;

    a {
        display: flex;
        align-items: center;
        gap: 10px;
    }


}

.dropdown-item.active a {
    color: var(--secondary-color);
}

.header-info-dropdown .dropdown-menu .dropdown-item.active,
.lang:hover,
.header-info-dropdown .dropdown-menu .dropdown-item:hover {
    background-color: transparent;
    color: var(--secondary-color) !important;
}


/* Sección Héroe */
.hero-section {
    background: linear-gradient(rgba(14, 30, 64, 0.8), rgba(14, 30, 64, 0.8)), url('https://images.unsplash.com/photo-1511671782779-c97d3d27a1ae?ixlib=rb-4.0.3&q=80&fm=jpg&crop=entropy&cs=tinysrgb') no-repeat center center/cover;
    color: #fff;
    padding: 8rem 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    /* font-size: clamp(2.5rem, 5vw, 4rem); */
    font-size: clamp(25px, 5vw, 4rem);
    line-height: 30px;
    margin-bottom: 2rem;
    color: #fff;
}

.search-bar {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.search-bar input {
    flex-grow: 1;
    border: none;
    padding: 1.25rem 2rem;
    font-size: 1rem;
    outline: none;
    border-radius: 0px;
    height: auto;
}

.search-btn {
    padding: 1.25rem 2.5rem;
    border: none;
    background-color: var(--secondary-color);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background-color: var(--wild-strawberry-400);
}

/* Secciones de Contenido */
section {
    padding: 5rem 0;
    position: relative;
    z-index: 1;
}



section h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 3.5rem;
    position: relative;
}

/* Carrusel de Eventos */
.event-carousel {
    /* display: flex;
    overflow-x: auto; */
    /* gap: 25px; */
    padding: 0px;
    /* justify-content: center; */
    /* -ms-overflow-style: none; */
    /* IE and Edge */
    /* scrollbar-width: none; */
    /* Firefox */
}

.event-carousel::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.event-card {
    min-width: 270px;
    max-width: 290px;
    flex-shrink: 0;
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
    width: 100%;
}

.event-card:hover {
    transform: scale(1.05);
}

.event-card img {
    height: 220px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.4s ease-in-out;
    color: transparent;
}

.event-card:hover img {
    transform: scale(1.05);
}

.event-info {
    padding: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100%;
}

.event-info h3 {
    font-size: clamp(18px, 2vw, 20px);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    height: 50px;
    /* padding-bottom: 10px; */
    margin-bottom: 30px;
}

.event-meta {
    color: var(--wild-strawberry-400);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.btn-primary {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    text-decoration: none;
    padding: 6px 18px;
    border-radius: 50px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: var(--secondary-color) solid 1px;

}

.btn-primary:hover {
    /* background-color: var(--wild-strawberry-200); */
    transform: scale(1.02);

    background-image: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    border: var(--wild-strawberry-400) solid 1px;
}


.btn-secondary {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: var(--primary-color) solid 1px;
    cursor: pointer;

}

.btn-secondary:hover {
    /* background-color: var(--wild-strawberry-200); */
    transform: scale(1.02);

    /* background-image: var(); */
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    border: var(--wild-strawberry-400) solid 1px;
}

/* Grid de Categorías */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 0.251fr));
    gap: 30px;
    justify-content: center;
}

.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-8px);
}

.category-card img {
    height: 80px;
    width: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
}

.category-card:hover img {
    filter: brightness(0.7);
}

.category-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 20px;
    color: var(--text-color-light);
}

.category-info h4 {
    color: #fff;
    font-size: 1.2rem;
    text-align: center;
}

/* Pie de Página */
.main-footer {
    background-color: var(--dark-bg);
    color: var(--text-color-light);
    padding: 3rem 0;
    text-align: center;
    margin-top: 4rem;
    position: relative;
    z-index: 999999999999999999999;
}

.main-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links a {
    color: var(--text-color-light);
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color);
}

.footer-style-link {
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 20px 10px 0px 10px;
    margin: 0 auto;
}

.footer-style-link a {
    color: var(--wild-strawberry-50) !important;
}

.footer-style-link a:hover {
    color: var(--wild-strawberry-300) !important;
}

/* --- Sección Hero --- */
.show-hero-section {
    position: relative;
    height: 60vh;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding-bottom: 3rem;
}

.show-hero-section img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.show-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.2));
    z-index: 2;
}

.show-hero-content {
    position: relative;
    z-index: 3;
    color: white;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.show-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    color: white;
}

.show-meta span {
    font-size: 1.1rem;
    margin-right: 2rem;
    font-weight: 500;
}

.show-meta i {
    color: var(--secondary-color);
    margin-right: 8px;
}

/* --- Layout de Detalles (CSS Grid) --- */
.show-details-main {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.show-details-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
    align-items: start;
}

/* Columna de Información del Espectáculo */
.show-info-column h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.info-section {
    margin-bottom: 4rem;
}

.info-section p {
    font-size: 1rem;
    line-height: 1.8;
    color: #495057;
}

.cast-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.cast-list li {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--text-color-dark);
}

.cast-list i {
    color: var(--accent-color);
    margin-right: 12px;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Columna del Módulo de Compra */
.booking-column {
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

.booking-box {
    background-color: white;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
}

.price-from {
    color: #6c757d;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: baseline;
    gap: 15px;
    flex-wrap: wrap;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.booking-form {
    display: flex;
    flex-direction: column;
}

.booking-form label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.booking-form select,
.booking-form input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-family: 'Montserrat', sans-serif;

}



.btn-purchase {
    background-color: var(--secondary-color);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-purchase:hover {
    background-color: #c40a5a;
    transform: scale(1.02);
}

button[disabled="disabled"] {
    background-color: var(--text-color) !important;
    cursor: not-allowed;
}

/* Sección de Eventos Relacionados */
.related-events {
    padding-top: 2rem;
    padding-bottom: 5rem;
}

/* BARRAS SCROLL */

.selection-area-wrapper::-webkit-scrollbar,
html::-webkit-scrollbar,
html::-webkit-scrollbar:horizontal,
.selection-area-wrapper::-webkit-scrollbar:horizontal {
    -webkit-appearance: none;
    width: 6px !important;
    height: 6px;
    background: #dadada !important;
}

.selection-area-wrapper::-webkit-scrollbar-thumb,
html::-webkit-scrollbar-thumb,
html::-webkit-scrollbar-thumb:horizontal,
.selection-area-wrapper::-webkit-scrollbar-thumb:horizontal {
    background: var(--secondary-color) !important;
    border-radius: 7px !important;
}

.selection-area-wrapper::-webkit-scrollbar-track,
html::-webkit-scrollbar-track {
    background: #dadada !important;
    border-radius: 7px !important;
}


.selection-area-wrapper::-webkit-scrollbar-corner,
html::-webkit-scrollbar-corner {
    background: #F8F9FA !important;
    border-radius: 7px !important;
}

/* --- Responsividad --- */
@media (max-width: 992px) {
    .show-details-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .booking-column {
        position: static;
        top: auto;
    }

    .main-nav li {
        margin-left: 1rem;
    }
}

@media (max-width: 768px) {


    .main-header .container {
        flex-direction: column;
        text-align: center;
    }

    .main-nav ul {
        margin-top: 1.5rem;
    }

    .main-nav li {
        margin: 0 0.5rem;
        display: block;
        width: 100%;
    }

    .search-bar {
        border-radius: initial;
        flex-direction: column;
    }

    .search-bar input,
    .search-btn {
        width: 100%;
        border-radius: 50px;
    }

    .search-btn {
        margin-top: 1rem;
    }

    .main-footer .container {
        flex-direction: column;
    }

    .social-links {
        margin-top: 1.5rem;
    }

    .social-links a {
        margin: 0 10px;
    }


    .show-hero-section {
        height: 50vh;
    }

    .show-title {
        font-size: clamp(2rem, 7vw, 3rem);
    }

    .show-meta {
        font-size: 0.9rem;
    }

    .show-meta span {
        display: block;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .show-info-column h2 {
        text-align: center;
    }

    .main-nav ul {

        /* height: 100dvh; */
        display: none;
        margin: 10px 0;
        width: 100% !important;



    }

    .nav__menuli a {
        /* color: #fff; */
        text-decoration: none;
        transition: color 0.2s;
        width: 100%;
        display: block;
    }

    .dropdown-menu ul {
        display: block;
    }

    .header-info-dropdown .dropdown-menu {
        background: transparent;
        border-radius: 0;
        border: none;
        box-shadow: initial;
        margin: 0;
        min-width: 100%;
        max-width: 100%;
        /* overflow: hidden; */
        padding: 0;
        top: 0px !important;
        /* z-index: 999; */
        right: 0px !important;
        left: none;
        /* display: block; */
        position: relative;
        text-align: center;
    }

    .nav__menu {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        /* background: #222; */
        flex-direction: column;
        gap: 0;
        align-items: center;
        display: none;
    }

    .nav__menu.show {
        display: flex;
        background: white;
        align-items: end;
        gap: 20px;
        padding: 30px;
        border-radius: 11px;
        max-height: 90dvh;
        /* filter: drop-shadow(4px 4px 4px var(--card-shadow)); */
        box-shadow: 0 4px 15px rgb(171 171 171 / 55%);
    }

    .header-info-dropdown .dropdown-menu .dropdown-item {
        a {
            display: flex;
            align-items: center;
            gap: 10px;
            justify-content: center;
        }
    }



    .nav__toggle {
        display: flex;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 14px;
    }


}