/* ============================================
   SECTIONS - All section-specific styles
   ============================================ */

/* --- Container --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* --- Generic Section --- */
.section {
    padding: var(--space-4xl) 0;
    background: var(--bg-primary);
    position: relative;
}

.section--alt {
    background: var(--bg-secondary);
}

.section__header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section__label {
    font-family: var(--font-accent);
    font-size: var(--text-sm);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: var(--space-sm);
}

.section__title {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.section__divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 0 auto;
}

/* ==========================================
   NAVIGATION
   ========================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--space-md) var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.4s ease, padding 0.4s ease, border-color 0.4s ease;
    border-bottom: 1px solid transparent;
}

.nav--scrolled {
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: var(--space-sm) var(--space-xl);
    border-bottom-color: rgba(201, 168, 76, 0.1);
}

.nav--hidden {
    opacity: 0;
    pointer-events: none;
}

.nav__logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
    z-index: 1001;
}

.nav__logo-text {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.05em;
}

.nav__logo-sub {
    font-family: var(--font-accent);
    font-size: var(--text-xs);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.nav__menu {
    display: flex;
    gap: var(--space-xl);
    align-items: center;
}

.nav__link {
    font-family: var(--font-accent);
    font-size: var(--text-sm);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-secondary);
    position: relative;
    padding: var(--space-xs) 0;
    transition: color 0.3s ease;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav__link:hover,
.nav__link.active {
    color: var(--gold);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

/* Hamburger */
.nav__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

.nav__hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__hamburger.active .nav__hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav__hamburger.active .nav__hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav__hamburger.active .nav__hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================
   HERO
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background:
        radial-gradient(ellipse at 50% 40%,
            var(--spotlight-center) 0%,
            var(--spotlight-warm) 25%,
            transparent 65%
        ),
        radial-gradient(ellipse at 50% 100%,
            rgba(139, 0, 0, 0.08) 0%,
            transparent 50%
        ),
        var(--bg-primary);
    overflow: hidden;
}

/* Subtle noise texture overlay */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

.hero__content {
    text-align: center;
    position: relative;
    z-index: 2;
    padding: var(--space-lg);
}

/* All hero children start invisible */
.hero__logo-icon,
.hero__title,
.hero__divider,
.hero__tagline,
.hero__cta {
    opacity: 0;
    transform: translateY(30px);
}

.hero__logo-icon {
    margin-bottom: var(--space-lg);
}

.hero__flame {
    width: 60px;
    height: 60px;
    color: var(--gold);
    filter: drop-shadow(0 0 20px rgba(201, 168, 76, 0.4));
}

.hero__title {
    font-family: var(--font-heading);
    font-size: var(--text-hero);
    font-weight: 300;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}

.hero__title-accent {
    font-family: var(--font-accent);
    font-size: 0.5em;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-top: var(--space-xs);
}

.hero__divider {
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: var(--space-lg) auto;
}

.hero__tagline {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 300;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
}

.hero__cta {
    display: inline-block;
    font-family: var(--font-accent);
    font-size: var(--text-sm);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--bg-primary);
    background: var(--gold);
    padding: 16px 48px;
    border: 1px solid var(--gold);
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.hero__cta:hover {
    background: transparent;
    color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201, 168, 76, 0.2);
}

/* Scroll indicator */
.hero__scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    opacity: 0;
    z-index: 2;
}

.hero__scroll-text {
    font-family: var(--font-accent);
    font-size: var(--text-xs);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hero__scroll-arrow {
    color: var(--text-muted);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ==========================================
   ABOUT / NOSOTROS
   ========================================== */
.about {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about__image-wrapper {
    position: relative;
}

.about__image {
    width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(201, 168, 76, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Gold corner accents */
.about__image-wrapper::before,
.about__image-wrapper::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border-color: var(--gold);
    border-style: solid;
    z-index: 1;
}

.about__image-wrapper::before {
    top: -8px;
    left: -8px;
    border-width: 1px 0 0 1px;
}

.about__image-wrapper::after {
    bottom: -8px;
    right: -8px;
    border-width: 0 1px 1px 0;
}

.about__content {
    max-width: 600px;
}

.about__text {
    font-size: var(--text-lg);
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.about__text:first-of-type::first-letter {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: 600;
    color: var(--gold);
    float: left;
    line-height: 1;
    margin-right: var(--space-xs);
    margin-top: 4px;
}

.about__stats {
    display: flex;
    gap: var(--space-2xl);
    margin-top: var(--space-2xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid rgba(201, 168, 76, 0.15);
}

.about__stat {
    text-align: center;
}

.about__stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 600;
    color: var(--gold);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.about__stat-label {
    font-family: var(--font-accent);
    font-size: var(--text-xs);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ==========================================
   SHOWS / PRODUCCIONES
   ========================================== */
.shows-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

.show-card {
    background: var(--bg-card);
    border: 1px solid rgba(201, 168, 76, 0.08);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.show-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(201, 168, 76, 0.08);
    border-color: rgba(201, 168, 76, 0.2);
}

.show-card__image {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    filter: brightness(0.85);
    transition: filter 0.4s ease;
}

.show-card:hover .show-card__image {
    filter: brightness(1);
}

.show-card__content {
    padding: var(--space-lg);
}

.show-card__badge {
    display: inline-block;
    font-family: var(--font-accent);
    font-size: var(--text-xs);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(201, 168, 76, 0.1);
    padding: 4px 12px;
    margin-bottom: var(--space-sm);
}

.show-card__badge--upcoming {
    color: var(--curtain-red-light);
    background: rgba(178, 34, 34, 0.1);
}

.show-card__badge--past {
    color: var(--text-muted);
    background: rgba(107, 101, 96, 0.15);
}

.show-card__title {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.show-card__dates {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.show-card__synopsis {
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-md);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.show-card__link {
    font-family: var(--font-accent);
    font-size: var(--text-sm);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    position: relative;
    padding-bottom: 2px;
}

.show-card__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.show-card__link:hover::after {
    width: 100%;
}

/* ==========================================
   CAST / ELENCO
   ========================================== */
.cast-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl);
    justify-items: center;
}

.cast-member {
    text-align: center;
}

.cast-member__photo-wrapper {
    width: 160px;
    height: 160px;
    margin: 0 auto var(--space-md);
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.cast-member:hover .cast-member__photo-wrapper {
    transform: scale(1.08);
    box-shadow: 0 0 40px rgba(201, 168, 76, 0.25);
}

.cast-member__photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg-secondary);
}

.cast-member__name {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.cast-member__role {
    font-family: var(--font-accent);
    font-size: var(--text-xs);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ==========================================
   GALLERY / GALERÍA
   ========================================== */
.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

.gallery__item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 3/2;
}

.gallery__item--tall {
    grid-row: span 2;
    aspect-ratio: auto;
}

.gallery__item--wide {
    grid-column: span 2;
    aspect-ratio: auto;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery__item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    transition: opacity 0.4s ease;
}

.gallery__item:hover::after {
    opacity: 0;
}

.gallery__item:hover img {
    transform: scale(1.06);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox__close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    font-size: var(--text-3xl);
    color: var(--text-primary);
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
    z-index: 1;
}

.lightbox__close:hover {
    color: var(--gold);
}

.lightbox__image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

/* ==========================================
   CONTACT / CONTACTO
   ========================================== */
.contact {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.contact-form__group {
    display: flex;
    flex-direction: column;
}

.contact-form__label {
    font-family: var(--font-accent);
    font-size: var(--text-xs);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

.contact-form__input {
    background: transparent;
    border-bottom: 1px solid rgba(107, 101, 96, 0.4);
    color: var(--text-primary);
    font-size: var(--text-base);
    padding: var(--space-sm) 0;
    transition: border-color 0.3s ease;
}

.contact-form__input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.contact-form__input:focus {
    border-bottom-color: var(--gold);
}

.contact-form__textarea {
    min-height: 120px;
}

.contact-form__submit {
    align-self: flex-start;
    font-family: var(--font-accent);
    font-size: var(--text-sm);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--bg-primary);
    background: var(--gold);
    padding: 16px 48px;
    border: 1px solid var(--gold);
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
    margin-top: var(--space-sm);
}

.contact-form__submit:hover {
    background: transparent;
    color: var(--gold);
    transform: translateY(-2px);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}

.contact-info__title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.contact-info__text {
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.8;
}

.contact-info__link {
    color: var(--gold);
    transition: color 0.3s ease;
}

.contact-info__link:hover {
    color: var(--gold-light);
}

.contact-info__social {
    display: flex;
    gap: var(--space-md);
}

.social-link {
    color: var(--text-muted);
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-link:hover {
    color: var(--gold);
    transform: translateY(-2px);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--bg-primary);
    padding: var(--space-2xl) 0 var(--space-lg);
    border-top: 1px solid rgba(201, 168, 76, 0.1);
}

.footer__content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.footer__logo {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--gold);
}

.footer__tagline {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-top: 4px;
}

.footer__links {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.footer__link {
    font-family: var(--font-accent);
    font-size: var(--text-xs);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.footer__link:hover {
    color: var(--gold);
}

.footer__bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(107, 101, 96, 0.15);
}

.footer__copy {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-align: center;
}
