:root {
    --color-primario: #ffffffd9;
    --color-secundario: #F2A391; 
    --color-fondo: #285059;   
    --color-borde: rgba(242, 120, 75, 0.3);
    --color-acento: #F2784B;   
    --color-acento-hover: #733232;        
    --color-slide-p: ##f4f4f4;        
    --color-talon: #eed9d4;
    --color-error: #FFA09E;
    --color-exito: #275059; 
    --color-exito-texto: #75E6A3; 
    --font-family: 'Source Sans Pro', sans-serif;
    --font-display: 'Bebas Neue', cursive;
}


    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

body {
    font-family: var(--font-family);
    background-color: var(--color-fondo);
    color: var(--color-primario);
    min-height: 100vh;
    line-height: 1.6;
    display: flex;
    align-items: center;
    justify-content: center;
}

main.container {
    width: 90%;
    max-width: 700px;
    text-align: center;
    padding: 1rem 2.5rem;
    animation: fadeIn 1.5s ease-in-out;
    position: relative;
    background-image: linear-gradient(145deg, rgba(115, 50, 50, 0.85), rgba(40, 80, 89, 0.85));
    backdrop-filter: blur(4px);
    border: 1px solid var(--color-borde);

    /* ---  RECORTE --- */
    -webkit-clip-path: url(#ticket-clip-path);
    clip-path: url(#ticket-clip-path);
}





.ticket-layout {
    display: flex;
    gap: 2rem;
}

.ticket-stub {
    flex-basis: 18%;
    border-right: 2px dashed rgba(255, 255, 255, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    align-items: center;
    padding-right: 1.5rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.stub-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    color: var(--color-talon);
    opacity: 0.7;
    font-size: 0.9rem; 
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ticket-main-content {
    flex-grow: 1; 
    width: 190%; 
}


.form-control.is-invalid::placeholder {
    color: var(--color-error);
    opacity: 0.8; 
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.98); 
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#slideshow-container {
    height: 140px;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}
#slideshow-container {
    height: 140px;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}
.slide-text {
    position: absolute;
    opacity: 0;
    width: 100%;
    padding: 0 1rem;
}

.slide-text h1 {
    font-size: 1.9rem;
    font-weight: 600;
    line-height: 1.4;
    
    background-image: linear-gradient(135deg, #FBA878, #F2784B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;

    filter: drop-shadow(0 0 3px #F2784B);
}

.slide-text p {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--color-slide-p);
    margin-top: 0.5rem;
}

h2.subtitle {
    font-family: var(--font-display);
    font-size: 2.5rem;
    letter-spacing: 4px;
    font-weight: 400;
    margin-top: 2rem;
    
    background: none; 
    color: var(--color-acento);
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    opacity: 1;
}

.form-container p {
    color: #b0b0b0;
    font-style: italic;
    margin-bottom: 1.5rem;
}


.ticket-serial-number {
    font-size: 0.8rem;
    color: var(--color-talon);
    opacity: 0.6;
    letter-spacing: 0.15em; 
    margin-top: 1.5rem; 
}



.form-control {
    width: 100%;
    padding: 16px;
    background-color: rgba(255, 255, 255, 0.09);
    border: 1px solid var(--color-borde);
    border-radius: 8px;
    color: var(--color-primario);
    font-size: 1rem;
    transition: all 0.3s ease;
}
.form-control:focus {
    outline: none;
    border-color: var(--color-acento);
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(13, 110, 253, 0.5);
}
.form-control::placeholder { color: #888; }
.form-group { margin-bottom: 1.5rem; }

.submit-btn {
    width: auto;
    padding: 16px;
    background-color: var(--color-acento);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.submit-btn:hover, .submit-btn:focus {
    background-color: var(--color-acento-hover);
    color: var(--color-primario);
    transform: translateY(-2px); 
}

.message {
    padding: 1rem; margin-bottom: 1.5rem; border-radius: 8px; font-weight: 600;
    border: 1px solid transparent; 
}

.message.success {
    background-color: rgba(39, 80, 89, 0.25); 
    border-color: var(--color-exito);
    color: var(--color-exito-texto); 
}

.message.error { background-color: rgba(220, 53, 69, 0.2); color: var(--color-error); border-color: var(--color-error); }
.feedback-invalid { color: var(--color-error); text-align: left; font-size: 0.9em; margin-top: 5px; display: none; }

footer {
    position: fixed;
    height: 37px;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0.5rem 2rem;
    background-color: rgba(40, 80, 89, 0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10; 
}

/* Contenedor del logo y copyright */
.footer-left {
    display: flex;
    align-items: center;
    flex-grow: 1; 
    justify-content: flex-start; 
}

.footer-logo {
    height: 24px; 
    width: auto;
    margin-right: 1rem;
}

footer p, .footer-links a { 
    font-size: 0.8rem; 
    color: var(--color-primario);
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-acento); 
}

/* Contenedor de la navegación */
.footer-nav {
    position: relative;
}

.menu-toggle-btn {
    display: none; 
    background: none;
    border: 1px solid var(--color-borde);
    color: var(--color-secundario);
    font-size: 2rem;
    padding: 0 0.5rem;
    line-height: 1;
    border-radius: 4px;
    cursor: pointer;
}

.footer-links {
    display: flex;
}

/* LOGO */
.logo-container {
    margin: 0 auto 1.6rem;
    width: 130px;
    height: 130px;
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.logo-container img {
  object-fit: contain; 
  display: block;
  margin: auto; 
}

/* BACKGROUND*/
.background-container {
    overflow: hidden;
}

.bg-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    
    background-image: url('../img/festival-bg.avif'); 
    background-size: cover;
    background-position: center;
    filter: brightness(100%);
}

.bg-clouds {
    position: fixed;
    top: -20%;
    left: 0;
    width: 100%;
    height: 58vh;
    z-index: -1;

    background-image: url('../img/clouds-overlay.avif');
    background-repeat: repeat-x;
    background-size: auto 100%;
    opacity: 0.15;
    animation: seamless-pan 120s linear infinite;
}


@keyframes seamless-pan {
  from { background-position-x: 0; }
  to { background-position-x: 2500px; }
} /*background*/


/* --- ESTILOS PARA PROTECCIÓN DE EMAIL --- */
.email-protection-wrapper {
    position: relative;
    display: inline-block;
}

.email-protection-button {
    background: none;
    border: none;
    border-bottom: 1px dotted var(--color-acento); 
    color: var(--color-acento);
    padding: 0 2px;
    font-size: inherit; 
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.email-protection-button:hover {
    color: var(--color-acento-hover);
    border-bottom-color: var(--color-acento-hover);
}

.email-protection-menu {
    position: absolute;
    bottom: calc(100% + 5px); 
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    background-color: var(--color-fondo);
    border: 1px solid var(--color-borde);
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    z-index: 100;
    overflow: hidden;
}

.email-protection-menu button {
    color: var(--color-primario);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px; 
    width: 100%;
    text-align: left;
    border: none;
    background-color: transparent;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.email-protection-menu button:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.email-protection-menu svg {
    width: 16px;
    height: 16px;
    fill: var(--color-secundario);
}

/* --- ESTILOS PARA MÓVIL Y TABLET (VERSIÓN COMPACTA) --- */
@media (max-width: 768px) {
    main.container {
        width: 95%;
        padding: 1rem 1.4rem; 
        margin-top: 0.2rem;
        margin-bottom: 1rem;
    }

    .logo-container {
        margin-top: 0 !important;
        margin-bottom: 0 !important; 
    }

    #slideshow-container {
        height: 120px;
        margin-bottom: 1rem;
    }

    h2.subtitle {
        font-size: 1.9rem;
        margin-top: 0rem;
        margin-bottom: 1rem;
    }

    .form-container p {
        margin-bottom: 1rem;
    }

    .form-group {
        margin-bottom: 0.75rem; 
    }

    .slide-text {
        padding: 0;
    }

    .slide-text h1 {
        font-size: 1.3rem;
    }

    .slide-text p {
        font-size: 1rem;
    }

     footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 1rem;
        flex-wrap: nowrap;
    }

    .footer-left {
        order: 2; 
        justify-content: flex-end; 
        margin-bottom: 0;
    }

    .footer-nav {
        order: 1;
        display: block;
    }
    
    .menu-toggle-btn {
        display: block; 
    }

    .footer-links {
        display: none; 
        position: absolute;
        bottom: calc(100% + 5px);
        left: 0;
        background-color: var(--color-fondo);
        border: 1px solid var(--color-borde);
        border-radius: 8px;
        flex-direction: column;
        padding: 0.5rem;
        box-shadow: 0 -4px 15px rgba(0,0,0,0.3);
        white-space: nowrap;
    }
    
    .footer-links.is-active {
        display: flex;
    }

    .footer-links a {
        padding: 0.5rem 1rem;
    }
    
    nav {
       display: none;
    }

    nav {
        display: none;
    }
    
    .footer-nav {
        display: block;
    }
    
    .menu-toggle-btn {
        display: block; 
    }
    
    .footer-links.is-active {
        display: flex;
    }

    .footer-links a {
        padding: 0.5rem 1rem; 
    }
}


/* --- ESTILOS PARA ESCRITORIO --- */
@media (min-width: 769px) {
    body.align-right-desktop {
        justify-content: flex-end; 
    }

    body.align-left-desktop {
        justify-content: flex-start; 
    }
    
    main.container {
      margin: 0 5vw; 
    }
}

