/* ============================================
   COUNTDOWN — Teatro Real
   ============================================ */

/* ---- Page layout ---- */
.page-countdown {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1 {
    font-size: 55px;
    line-height: 1.2;
    font-weight: 300;
    margin: 40px auto 60px;
    text-transform: uppercase;
    text-align: center;
}

h1 span {font-weight: 600;}


/* ---- Hero countdown (100vh) ---- */
.hero-countdown {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    overflow: hidden;
    background-color: #0e0e0e;
}
.hero-subtitle-countdown{
  margin-bottom: 30px;
  font-size: 25px;
}

/* Imagen de fondo */
.hero-countdown-img-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
  opacity: 0.2;
}

.hero-countdown-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}

.fondo-animado {animation: zoom-in-zoom-out 50s ease infinite;}
@keyframes zoom-in-zoom-out {
  0% {
    scale: 100%
  }
  50% {
    scale: 125%;
  }
  100% {
    scale: 100%;
  }
}

/* Degradados sobre la imagen */
/*
.hero-countdown-img-container::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(to right,
            rgba(0,0,0,1) 0%,
            rgba(0,0,0,0.7) 12%,
            rgba(0,0,0,0) 28%,
            rgba(0,0,0,0) 72%,
            rgba(0,0,0,0.7) 88%,
            rgba(0,0,0,1) 100%
        );
}

.hero-countdown-img-container::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(to bottom,
            rgba(0,0,0,0.85) 0%,
            rgba(0,0,0,0.4) 25%,
            rgba(0,0,0,0) 45%,
            rgba(0,0,0,0.3) 80%,
            rgba(0,0,0,0.7) 100%
        );
}
*/
/* ---- Logo ---- */
.hero-countdown-logo {
    position: relative;
    z-index: 10;
    width: 220px;
    height: auto;
    margin-bottom: 80px;
    filter: brightness(0) invert(1);
    margin-top: 40px;
}

img.hero-countdown-2627 {
    height: 105px;
    margin: 20px auto;
}

/* ---- Countdown container ---- */
.countdown {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
    max-width: 1100px;
    padding: 0 40px;
}

/* ---- Cada bloque (días, horas, etc.) ---- */
.countdown-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.countdown-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 16px;
}

.countdown-value {
    font-family: 'Montserrat', sans-serif;
    font-weight: 200;
    font-size: clamp(64px, 12vw, 160px);
    line-height: 1;
    color: #ffffff;
    letter-spacing: -0.02em;
    transition: opacity 0.3s ease;
    min-width: 1.2em;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

/* ---- Separador : ---- */
.countdown-separator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 40px;
    gap: 16px;
    width: 40px;
    flex-shrink: 0;
}

.countdown-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.35);
}

/* ---- Animación de cambio de número ---- */
.countdown-value.tick {
    /*animation: countTick 0.4s ease;*/
}

@keyframes countTick {
    0%   { opacity: 1; transform: translateY(0); }
    40%  { opacity: 0;  }
    60%  { opacity: 0;  }
    100% { opacity: 1; transform: translateY(0); }
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .hero-countdown-logo {
        width: 160px;
        margin-bottom: 60px;
    }

    .countdown {
        max-width: 700px;
        padding: 0 24px;
    }

    .countdown-label {
        font-size: 9px;
        letter-spacing: 0.2em;
    }

    .countdown-separator {
        width: 24px;
        padding-top: 28px;
    }

    .countdown-dot {
        width: 4px;
        height: 4px;
    }
}

@media (max-width: 600px) {

    h1 {
        padding-inline: 20px;
        text-align: center;
        font-size: 33px;
        margin: 0 auto 20px;
    }

    img.hero-countdown-2627 {height: 80px;}

    .hero-countdown {
        min-height: 500px;
    }

    .hero-countdown-logo {
        width: 120px;
        margin-bottom: 48px;
    }

    .hero-countdown-cta {
        bottom: 24px;
    }

    .hero-countdown-cta-text {
        font-size: 12px;
    }

    .hero-countdown-cta-arrow {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }

    .countdown {
        padding: 0 16px;
    }

    .countdown-label {
        font-size: 8px;
        margin-bottom: 10px;
    }

    .countdown-separator {
        width: 14px;
        padding-top: 18px;
        gap: 10px;
    }

    .countdown-dot {
        width: 3px;
        height: 3px;
    }
}


/* ---- Hero entrance animations ---- */
.hero-countdown .hero-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-countdown.hero-animated .hero-animate {
    opacity: 1;
    transform: translateY(0);
}

.hero-countdown.hero-animated .hero-animate[data-delay="0"] { transition-delay: 0ms; }
.hero-countdown.hero-animated .hero-animate[data-delay="1"] { transition-delay: 250ms; }
.hero-countdown.hero-animated .hero-animate[data-delay="2"] { transition-delay: 500ms; }
.hero-countdown.hero-animated .hero-animate[data-delay="3"] { transition-delay: 800ms; }


/* ---- Botón ¿Te avisamos? ---- */
.hero-countdown-cta {
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%)!important;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.hero-countdown-cta:hover {
    opacity: 0.7;
}

.hero-countdown-cta-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 1);
}

.hero-countdown-cta-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    animation: bounceDown 2s ease-in-out infinite;
}

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


/* ============================================
   FORMULARIO SUSCRIPCIÓN
   ============================================ */

.subscribe-section {
    background-color: #ffffff;
    padding: 80px 24px 96px;
}

.subscribe-inner {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

/* Logo */
.subscribe-logo {
    width: 140px;
    height: auto;
    margin-bottom: 40px;
    opacity: 0.15;
}

/* Título y subtítulo */
.subscribe-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 100;
    font-size: clamp(32px, 5vw, 62px);
    color: #c8102e;
    letter-spacing: 0.08em;
    margin: 0 0 16px;
    text-transform: uppercase;
}

.subscribe-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.7;
    color: #666666;
    margin: 0 0 48px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* Formulario */
.subscribe-form {
    text-align: left;
}

.subscribe-fields {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
}

.subscribe-field {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.subscribe-field label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #333333;
    margin-bottom: 8px;
}

.subscribe-field input {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #222222;
    padding: 14px 16px;
    border: 1px solid #cccccc;
    border-radius: 0;
    background: #ffffff;
    outline: none;
    transition: border-color 0.25s ease;
    -webkit-appearance: none;
}

.subscribe-field input:focus {
    border-color: #c8102e;
}

.subscribe-field input::placeholder {
    color: #bbbbbb;
    font-weight: 300;
}

/* RGPD */
.subscribe-rgpd {
    margin-bottom: 40px;
    padding: 32px;
    background: #f9f9f9;
    border: 1px solid #e8e8e8;
}

.rgpd-intro {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    line-height: 1.7;
    color: #555555;
    margin: 0 0 16px;
}

.rgpd-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    line-height: 1.7;
    color: #555555;
    margin: 0 0 24px;
}

.rgpd-link a {
    color: #c8102e;
    text-decoration: none;
    font-weight: 600;
}

.rgpd-link a:hover {
    text-decoration: underline;
}

/* Radios ACEPTO / NO ACEPTO */
.rgpd-radios {
    display: flex;
    gap: 40px;
    margin-bottom: 28px;
}

.rgpd-radio {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.05em;
    color: #333333;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.rgpd-radio input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: #c8102e;
    cursor: pointer;
}

/* Info protección datos */
.rgpd-info {
    margin-bottom: 28px;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
}

/* Toggle colapsable */
.rgpd-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #333333;
    text-align: left;
    gap: 12px;
}

.rgpd-toggle:hover {
    color: #c8102e;
}

.rgpd-toggle-icon {
    font-size: 12px;
    color: #999999;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.rgpd-toggle[aria-expanded="true"] .rgpd-toggle-icon {
    transform: rotate(180deg);
}

/* Contenido colapsable */
.rgpd-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
        max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s ease 0.05s;
}

.rgpd-content.is-open {
    max-height: 500px;
    opacity: 1;
    transition:
        max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.35s ease 0.1s;
}

.rgpd-disclaimer {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-style: italic;
    color: #777777;
    margin: 16px 0 16px;
}

.rgpd-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rgpd-info li {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    line-height: 1.7;
    color: #555555;
    margin-bottom: 4px;
}

.rgpd-info li strong {
    color: #333333;
}

.rgpd-info li a {
    color: #c8102e;
    text-decoration: none;
}

.rgpd-info li a:hover {
    text-decoration: underline;
}

/* Checkbox privacidad */
.rgpd-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: #333333;
}

.rgpd-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #c8102e;
    cursor: pointer;
    flex-shrink: 0;
}

.rgpd-checkbox a {
    color: #c8102e;
    text-decoration: none;
}

.rgpd-checkbox a:hover {
    text-decoration: underline;
}

/* Botón enviar */
.subscribe-btn {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    padding: 20px 48px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #ffffff;
    background-color: #c8102e;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.subscribe-btn:hover {
    background-color: #a50d25;
}

.subscribe-btn:active {
    transform: scale(0.98);
}

.subscribe-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.subscribe-btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Mensajes */
.subscribe-message {
    margin-top: 24px;
    padding: 16px 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    border-radius: 4px;
    text-align: center;
}

.subscribe-message--success {
    background-color: #edf7ed;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.subscribe-message--error {
    background-color: #fdecea;
    color: #c62828;
    border: 1px solid #f5c6cb;
}

/* ---- Responsive formulario ---- */
@media (max-width: 600px) {
    .subscribe-section {
        padding: 56px 16px 64px;
    }

    .subscribe-fields {
        flex-direction: column;
        gap: 16px;
    }

    .subscribe-rgpd {
        padding: 20px 16px;
    }

    .rgpd-radios {
        gap: 24px;
    }

    .subscribe-btn {
        max-width: 100%;
    }
}
