/* ==========================================
   Floc Teatre - CSS
   Theatrical, artistic and professional design
   ========================================== */

/* Scalter font for headings – place font files in assets/fonts/ */
@font-face {
    font-family: 'Scalter';
    src: url('assets/fonts/Scalter-Bold-Semi-Condensed-Sans.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* BobbyJonesSoft font for body text – place font files in assets/fonts/ */
@font-face {
    font-family: 'BobbyJonesSoft';
    src: url('assets/fonts/bobbyjonessoft.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Color palette (overridden per template — see templates/<id>/colors.css) */
:root {
    --color-primary: #5A1F4D;
    --color-primary-mid: #7B2D6B;
    --color-primary-dark: #3D1433;
    --color-accent: #E9A3CF;
    --color-accent-light: #E8D1E0;
    /* Shadow color under the presentation blob shape, and whether it sits
       outside (default) or inside the shape (set to "inset" when the
       admin toggles the invert option). */
    --color-forma-sombra: rgba(90, 31, 77, 0.3);
    --forma-sombra-inset: ;
    --color-bg: #FFF;
    --color-surface: #FFF;
    --presentation-text: var(--color-accent);
    --presentation-highlight: var(--color-primary);
    /* Hover color for links/icons; can be overridden per section from admin. */
    --color-hover: var(--color-accent);
    --color-active: var(--color-accent);
    /* Show-detail modal text colors; overridable from the "Produccions /
       Espectacles" admin card (see seccionEstiloModalGlobal()). */
    --color-modal-titulo: var(--color-primary);
    --color-modal-texto: var(--color-accent);
    /* Extra show-detail modal colors: card background, big header title,
       poster image tint, CTA/close-button pair (swap on hover, decoupled
       from the site-wide primary/accent) and info-box left border. */
    --color-modal-fondo: var(--color-bg);
    --color-modal-titulo-principal: var(--color-modal-texto);
    --color-modal-overlay: rgba(90, 31, 77, 0.7);
    --color-modal-boton-a: var(--color-primary);
    --color-modal-boton-b: var(--color-accent);
    --color-modal-detalle: var(--color-accent);
    /* Bottom shadow gradient under the hero slider; overridable per template
       install from the admin's "Portada (Hero)" card. */
    --hero-overlay-color: rgba(123, 45, 107, 0.85);
    --hero-overlay-height: 30%;
    /* VAL/CAS language switcher buttons; overridable from the "Menú de
       navegació" admin card. */
    --lang-btn-accent: var(--color-accent);
    --lang-btn-primary: var(--color-primary);
    /* Contact form submit button; overridable from the "Contacte" admin
       card. Dedicated vars (not var() references to --color-accent/
       --color-primary/--color-bg, which the section's title/text/fondo
       pickers also scope to #contacte) so the button stays fully
       independent from the title/text colors. Per-template literal
       defaults live in each template's colors.css; these are just a
       generic fallback. */
    --contact-btn-fondo: #E9A3CF;
    --contact-btn-texto: #5A1F4D;
    --contact-btn-fondo-hover: #FFF;
    --contact-btn-texto-hover: #5A1F4D;
    /* Social icons row (phone/WhatsApp/email/Instagram) below the form;
       also dedicated so they don't move when "color de texto" changes. */
    --contact-social-icono: #E9A3CF;
    --contact-social-icono-hover: #5A1F4D;
    /* Contact info card ("fitxa") opened by the phone icon. It's rendered
       outside #contacte, so overrides arrive as global :root vars. */
    --contact-modal-fondo: #5A1F4D;
    --contact-modal-titulo: #FFF;
    --contact-modal-etiqueta: #FFF;
    --contact-modal-texto: #E9A3CF;
    --contact-modal-item-fondo: #6B2A5C;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'BobbyJonesSoft', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    color: var(--color-accent);
    background-color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Scalter', 'Baloo 2', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-primary);
    position: relative;
    animation: fadeInUp 0.8s ease-out;
}

.section-title.white-title {
    color: var(--color-bg);
}

.section-title.large-title {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 4px;
    margin-left: 1rem;
}

.lang-btn {
    background: none;
    border: 2px solid var(--lang-btn-accent);
    color: var(--lang-btn-primary);
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.lang-btn:hover {
    background-color: var(--lang-btn-accent);
    color: var(--lang-btn-primary);
}

.lang-btn.active {
    background-color: var(--lang-btn-primary);
    color: var(--lang-btn-accent);
    border-color: var(--lang-btn-primary);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-expanded-height, auto);
    background-color: var(--color-surface);
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: height 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
}

.header.header-compact {
    height: var(--header-compact-height);
    padding: 0.25rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    transition: height 0.35s ease;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
    max-height: 100%;
    flex-shrink: 0;
}

.logo h1 {
    color: var(--color-accent);
    font-size: 1.8rem;
    letter-spacing: 2px;
}

.logo-img {
    height: 50px;
    max-height: 100%;
    width: auto;
    display: block;
    transition: height 0.35s ease, max-height 0.35s ease;
}

.header.header-compact .logo-img {
    height: var(--header-logo-compact-height) !important;
    max-height: calc(100% - 0.5rem);
}

.header.header-compact .nav-list a,
.header.header-compact .nav-list a.active {
    font-size: 0.9rem;
}

.header.header-compact .lang-btn {
    padding: 2px 8px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-list a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.nav-list a.active{
    color: var(--color-active);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


.nav-list a:hover {
    color: var(--color-hover);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-accent);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 90px;
    overflow: hidden;
}

/* Hero Slider */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary-mid) 0%, var(--color-primary) 50%, var(--color-primary-dark) 100%);
}

.hero-slider .hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slider .hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--hero-overlay-height);
    background: linear-gradient(to top, var(--hero-overlay-color) 0%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-bg);
    animation: fadeInScale 1s ease-out;
}

.hero-title {
    font-size: 5rem;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    letter-spacing: 4px;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
}

/* Presentation Section */
.presentation {
    padding: 5rem 0;
    background-color: var(--color-bg);
}

.presentation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.presentation-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--presentation-text);
}

.presentation-text .highlight-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--presentation-highlight);
    line-height: 1.4;
}

.presentation-image {
    position: relative;
}

.image-organic {
    position: relative;
    overflow: hidden;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    box-shadow: var(--forma-sombra-inset) 0 10px 40px var(--color-forma-sombra);
    animation: morphing 8s ease-in-out infinite;
    background-color: var(--color-accent-light);
    aspect-ratio: 1 / 1;
}

.image-organic img,
.image-organic svg {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.presentation-logo {
    padding: 0;
}

@keyframes morphing {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

/* Productions Section */
.productions {
    padding: 8.5rem 0 5rem;
    background-color: var(--color-primary);
    position: relative;
}

.productions::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    height: 120px;
    background: var(--color-bg);
    clip-path: url(#torn-top);
    z-index: 2;
}

.productions::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 120px;
    background: var(--color-bg);
    clip-path: url(#torn-bottom);
    z-index: 2;
}

/* Accent-color sliver shown behind the top/bottom edge shapes above. Only
   the "onda"/"cruzada" divider styles (selected in admin > Separador entre
   secciones) reveal it; other styles keep it hidden so the boundary looks
   exactly as before. */
.edge-accent {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 120px;
    background: var(--color-accent);
    z-index: 1;
    display: none;
}

.edge-accent-top {
    top: -2px;
}

.edge-accent-bottom {
    bottom: -2px;
    transform: scaleY(-1);
}

/* "Pincelada diagonal": smoother single-tone brush swoop instead of the
   jagged torn-paper edge. */
body.separador-pincelada .productions::before {
    clip-path: url(#brush-top);
}

body.separador-pincelada .productions::after {
    clip-path: url(#brush-top);
    transform: scaleY(-1);
}

/* "Onda con doble color": the accent color peeks through above the wave's
   two crests. */
body.separador-onda .productions::before {
    clip-path: url(#wave-top-primary);
}

body.separador-onda .productions::after {
    clip-path: url(#wave-top-primary);
    transform: scaleY(-1);
}

body.separador-onda .edge-accent {
    display: block;
    clip-path: url(#wave-top-accent);
}

/* "Pinceladas cruzadas": a real crossed brush-stroke illustration (see
   #cruzada-divider symbol) replaces the torn-paper edge entirely, so it's
   hidden here and the .cruzada-edge <svg> below is shown instead. */
body.separador-cruzada .productions::before,
body.separador-cruzada .productions::after,
body.separador-cruzada .contact::before {
    display: none;
}

.cruzada-edge {
    position: absolute;
    left: 0;
    width: 100%;
    height: 130px;
    z-index: 2;
    display: none;
}

.cruzada-edge-top {
    top: -2px;
}

.cruzada-edge-bottom {
    bottom: -2px;
    transform: scaleY(-1);
}

body.separador-cruzada .cruzada-edge {
    display: block;
}

.productions-grid {
    margin-top: 2rem;
}

.production-filters {
    display: flex;
    /* Wrap onto several centered rows instead of a horizontal scroller:
       centered + overflow-x clipped the first categories out of reach on
       narrow screens, and sideways swiping wasn't discoverable. */
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem 1.5rem;
    margin: 0 0 2.5rem;
    padding: 0.5rem 0;
}

.production-filter {
    white-space: nowrap;
    color: var(--color-bg);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.production-filter:hover,
.production-filter.active {
    color: var(--color-accent);
    border-color: var(--color-accent);
}

/* The default (non-active/non-hover) filter text color above assumes a dark
   section background (--color-bg, i.e. light text). The "activitats-festa"
   showcase sits on a light background instead, so its filters need a dark
   default color — tied to --color-primary, which is exactly the variable
   the section's own "Color de título" admin field already controls. */
#activitats-festa .production-filter {
    color: var(--color-primary);
}

/* On phones, show categories as tappable pills in wrapped rows. */
@media (max-width: 768px) {
    .production-filters {
        gap: 0.6rem;
        padding: 0.5rem 0.5rem;
    }

    .production-filter {
        font-size: 0.85rem;
        padding: 0.45rem 0.9rem;
        border: 2px solid currentColor;
        border-radius: 999px;
        opacity: 0.9;
    }

    .production-filter:hover,
    .production-filter.active {
        color: var(--color-primary);
        background-color: var(--color-accent);
        border-color: var(--color-accent);
        opacity: 1;
    }
}

.productions-grid-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 320px));
    justify-content: center;
    gap: 2rem;
}

.production-card[hidden] {
    display: none;
}

.production-card {
    text-align: center;
    max-width: 320px;
    margin: 0 auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.production-card:hover {
    transform: translateY(-10px);
}

.production-image {
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 0 25px 8px rgba(255, 255, 255, 0.25), 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
}

.production-image img,
.production-image svg {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    object-fit: cover;
    aspect-ratio: 4 / 5;
}

.production-card:hover .production-image img,
.production-card:hover .production-image svg {
    transform: scale(1.05);
}

.production-name {
    color: var(--color-accent);
    font-size: 1.2rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.production-description {
    color: var(--color-bg);
    font-size: 0.9rem;
    margin: 0.5rem 0;
    opacity: 0.9;
    line-height: 1.4;
}

.production-info {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.production-duration,
.production-age {
    color: var(--color-accent);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    background-color: rgba(233, 163, 207, 0.1);
    border-radius: 15px;
}

/* Calendar Section */
.calendar {
    padding: 5rem 0;
    background-color: var(--color-bg);
}

.calendar-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.calendar-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.calendar-events-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 600px) {
    .calendar-events-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .calendar-events-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

.calendar-month-header {
    background: var(--color-primary);
    color: var(--color-bg);
    text-align: center;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.calendar-event-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.calendar-event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.calendar-event-card.pink {
    background-color: var(--color-accent);
    color: var(--color-primary);
}

.calendar-event-card.purple {
    background-color: var(--color-primary);
    color: var(--color-bg);
}

.calendar-event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 45px;
}

.calendar-event-date .day-num {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
}

.calendar-event-date .day-name {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.calendar-event-icon-wrap {
    flex-shrink: 0;
    position: relative;
}

.calendar-event-icon-wrap[data-title]:hover::after {
    content: attr(data-title);
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: var(--color-bg);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.calendar-event-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.calendar-event-emoji {
    font-size: 1.6rem;
    display: block;
    width: 44px;
    text-align: center;
}

.calendar-event-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
    min-width: 0;
}

.calendar-event-info .event-time {
    font-weight: 700;
    font-size: 0.9rem;
}

.calendar-event-info .event-place {
    font-weight: 500;
    font-size: 0.85rem;
    opacity: 0.9;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-primary {
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    background-color: var(--color-accent);
    color: var(--color-primary);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(233, 163, 207, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-primary);
    color: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(233, 163, 207, 0.4);
}

/* Contact Section */
.contact {
    padding: 8.5rem 0 5rem;
    background-color: var(--color-primary);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    height: 120px;
    background: var(--color-bg);
    clip-path: url(#torn-top);
    z-index: 2;
}

body.separador-pincelada .contact::before {
    clip-path: url(#brush-top);
}

body.separador-onda .contact::before {
    clip-path: url(#wave-top-primary);
}

.contact .section-title {
    text-align: center;
}

.contact-subtitle {
    text-align: center;
    color: var(--color-accent);
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 3rem;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    width: 100%;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-family: 'BobbyJonesSoft', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    border: none;
    border-radius: 10px;
    background-color: var(--color-bg);
    color: var(--color-primary);
    transition: box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(233, 163, 207, 0.5);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* Captcha row */
.captcha-group {
    margin-bottom: 1rem;
}
.captcha-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.captcha-question {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-bg);
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.captcha-wrap input[type="number"] {
    width: 90px;
    padding: 0.9rem 1rem;
    font-size: 1rem;
    font-family: 'BobbyJonesSoft', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    border: none;
    border-radius: 10px;
    background-color: var(--color-bg);
    color: var(--color-primary);
    transition: box-shadow 0.3s ease;
    text-align: center;
    -moz-appearance: textfield;
}
.captcha-wrap input[type="number"]::-webkit-inner-spin-button,
.captcha-wrap input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.captcha-wrap input[type="number"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(233, 163, 207, 0.5);
}
.captcha-refresh {
    background: rgba(233, 163, 207, 0.15);
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    cursor: pointer;
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    flex-shrink: 0;
}
.captcha-refresh:hover {
    background: rgba(233, 163, 207, 0.35);
}

.form-submit {
    text-align: center;
    margin-top: 2rem;
}

.btn-submit {
    padding: 1rem 4rem;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    background-color: var(--contact-btn-fondo);
    color: var(--contact-btn-texto);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 2px;
    box-shadow: 0 5px 20px rgba(233, 163, 207, 0.3);
}

.btn-submit:hover {
    background-color: var(--contact-btn-fondo-hover);
    color: var(--contact-btn-texto-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(233, 163, 207, 0.5);
}

/* Social Icons (horizontal, below form) */
.social-icons-horizontal {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

.social-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(233, 163, 207, 0.15);
    color: var(--contact-social-icono);
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-icon:hover {
    background-color: var(--color-hover);
    color: var(--contact-social-icono-hover);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(233, 163, 207, 0.4);
}

.social-icon svg {
    width: 30px;
    height: 30px;
}

/* Contact Info Modal */
.contact-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.contact-modal {
    background: var(--contact-modal-fondo);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 420px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: fadeInScale 0.3s ease;
}

.contact-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: none;
    border: none;
    color: var(--contact-modal-texto);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.contact-modal-close:hover {
    color: var(--contact-modal-titulo);
}

.contact-modal-title {
    color: var(--contact-modal-titulo);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.contact-modal-items {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-modal-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    background: var(--contact-modal-item-fondo);
    color: var(--contact-modal-texto);
    text-decoration: none;
    transition: box-shadow 0.3s, transform 0.2s;
}

.contact-modal-item:hover {
    box-shadow: inset 0 0 0 999px rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.contact-modal-item svg {
    flex-shrink: 0;
}

.contact-modal-item strong {
    color: var(--contact-modal-etiqueta);
    font-size: 0.9rem;
}

.contact-modal-item span {
    color: var(--contact-modal-texto);
    font-size: 0.95rem;
}

/* Footer */
.footer {
    padding: 2rem 0;
    background-color: var(--color-primary);
    text-align: center;
    color: var(--color-bg);
}

/* Custom (admin-created) sections */
.custom-section {
    padding: 5rem 0;
    background-color: var(--color-bg);
}

.custom-section .section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.custom-section-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.7;
    text-align: center;
    color: var(--color-accent);
}

.custom-section-content a {
    color: var(--color-primary);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.custom-section-content a:hover {
    color: var(--color-hover);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-title.large-title {
        font-size: 2.2rem;
    }

    .presentation-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .productions-grid-inner {
        grid-template-columns: repeat(auto-fit, minmax(200px, 280px));
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .lang-switcher {
        margin-left: auto;
        margin-right: 0.5rem;
    }

    .hero {
        margin-top: 60px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-title.large-title {
        font-size: 1.8rem;
    }

    .highlight-text {
        font-size: 1.2rem;
    }

    .calendar-grid {
        flex-direction: column;
    }

    .calendar-column {
        min-width: 0;
    }

    .social-icon {
        width: 50px;
        height: 50px;
    }

    .social-icon svg {
        width: 25px;
        height: 25px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .logo-img {
        height: 40px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .logo h1 {
        font-size: 1.3rem;
    }

    .btn-primary,
    .btn-submit {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .productions-grid-inner {
        grid-template-columns: 1fr;
    }
}

/* Show Modal Styles */
.show-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(43, 43, 43, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    overflow-y: auto;
}

.show-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: var(--color-modal-fondo);
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--color-modal-boton-a);
    color: var(--color-modal-boton-b);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background-color: var(--color-modal-boton-b);
    color: var(--color-modal-boton-a);
    transform: rotate(90deg);
}

.modal-header {
    background: linear-gradient(135deg, var(--color-primary-mid) 0%, var(--color-primary) 100%);
    padding: 3rem 2rem 2rem;
    border-radius: 20px 20px 0 0;
    text-align: center;
    position: relative;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.modal-emoji {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 1s ease-in-out;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.modal-title {
    color: var(--color-modal-titulo-principal);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    position: relative;
    z-index: 1;
}

.modal-subtitle {
    color: var(--color-bg);
    font-size: 1.1rem;
    opacity: 0.9;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    position: relative;
    z-index: 1;
}

.modal-body {
    padding: 2rem;
}

.modal-section {
    margin-bottom: 2rem;
}

.modal-section h3 {
    color: var(--color-modal-titulo);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.modal-section p {
    color: var(--color-modal-texto);
    font-size: 1rem;
    line-height: 1.8;
}

.modal-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 2.8rem 1.2rem;
    margin: 2.8rem 0 2rem;
}

/* Outlined "fitxa" card with its illustrated icon sitting on (and breaking)
   the top border, like a printed dossier info box. */
.detail-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.6rem 0.8rem 1.2rem;
    border: 4px solid var(--color-modal-detalle);
    border-radius: 22px;
    background-color: var(--color-modal-fondo);
    min-width: 0;
    overflow-wrap: anywhere;
}

.detail-icon {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -55%);
    width: 62px;
    height: 62px;
    padding: 0 8px;
    background-color: var(--color-modal-fondo);
    box-sizing: content-box;
}

.detail-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.detail-icon .ic-a { fill: var(--color-modal-detalle); }
.detail-icon .ic-b { fill: var(--color-modal-titulo); }
.detail-icon .ic-c { fill: var(--color-modal-fondo); }

.detail-label {
    display: block;
    color: var(--color-modal-titulo);
    font-family: 'Baloo 2', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.6rem;
}

.detail-value p {
    color: var(--color-modal-texto);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}

.detail-big {
    display: block;
    font-family: 'Baloo 2', sans-serif;
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1;
}

.detail-big-a { color: var(--color-modal-detalle); }
.detail-big-b { color: var(--color-modal-titulo); }

.modal-link {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid var(--color-accent);
    transition: color 0.3s ease;
}

.modal-link:hover {
    color: var(--color-accent);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-modal {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
}

.btn-modal.btn-primary {
    background-color: var(--color-modal-boton-a);
    color: var(--color-modal-boton-b);
}

.btn-modal.btn-primary:hover {
    background-color: var(--color-modal-boton-b);
    color: var(--color-modal-boton-a);
    transform: translateY(-3px);
}

.btn-modal.btn-secondary {
    background-color: var(--color-modal-boton-b);
    color: var(--color-modal-boton-a);
}

.btn-modal.btn-secondary:hover {
    background-color: var(--color-modal-boton-a);
    color: var(--color-modal-boton-b);
    transform: translateY(-3px);
}

.btn-modal.btn-youtube {
    background-color: #c0392b;
    color: white;
}

.btn-modal.btn-youtube:hover {
    background-color: #e74c3c;
    transform: translateY(-3px);
}

.modal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.card-hover-text {
    color: var(--color-accent);
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.production-card:hover .card-hover-text {
    opacity: 1;
}

/* YouTube embed in modal */
.youtube-embed-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.youtube-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

/* Gallery in modal */
.modal-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1rem;
}

.modal-gallery img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.modal-gallery img:hover {
    transform: scale(1.1);
}

/* Admin link */

/* Maintenance preview banner */
.preview-banner {
    background: #f39c12;
    color: #fff;
    text-align: center;
    padding: 10px 20px;
    font-size: 0.95em;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
}

.preview-banner a {
    color: #fff;
    margin-left: 10px;
    text-decoration: underline;
}

.preview-banner ~ .header {
    top: 40px;
}

.preview-banner ~ .header ~ .hero {
    margin-top: 130px;
}

/* Modal Responsive */
@media (max-width: 768px) {
    .modal-content {
        margin: 20px 0;
        max-height: none;
    }
    
    .modal-title {
        font-size: 1.8rem;
    }
    
    .modal-emoji {
        font-size: 3rem;
    }
    
    .modal-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2.6rem 0.8rem;
    }

    .detail-label {
        font-size: 0.9rem;
    }

    .detail-big {
        font-size: 2.6rem;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .btn-modal {
        width: 100%;
    }
}
