/* ===== HERO SLIDER ===== */
.hero-slider{
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 560px;
    max-height: 700px;
    padding: 0px;
}

.hero-slider .swiper-slide{
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

/* overlay para legibilidad del texto sobre la imagen */
.hero-slider .swiper-slide::before{
    content:"";
    position:absolute;
    inset:0;
    background: linear-gradient(90deg, rgba(20,16,15,.75) 0%, rgba(20,16,15,.45) 45%, rgba(20,16,15,.15) 100%);
}

.hero-content{
    position: relative;
    z-index: 2;
    color: var(--crema-color);
    max-width: 640px;
    padding: 0 4rem;
}

.hero-content .eyebrow{
    display:inline-block;
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: .75rem;
    color: var(--naranja-color);
    border: 1px solid var(--naranja-color);
    padding: .35rem .9rem;
    border-radius: 2px;
    margin-bottom: 1.2rem;
}

.hero-content h1{
    font-size: var(--title-font-size);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: .75rem;
}

.hero-content .fecha{
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--naranja-color);
    margin-bottom: 1rem;
}

.hero-content p{
    font-size: 1rem;
    opacity: .9;
    margin-bottom: 1.5rem;
}

.btn-teatro{
    background: var(--rojo-color);
    border: none;
    color: #fff;
    padding: .8rem 1.8rem;
    font-weight: 600;
    letter-spacing: .03em;
    border-radius: 2px;
    transition: background .2s ease;
}
.btn-teatro:hover{
    background: var(--naranja-color);
    color: var(--negro-color);
}

.btn-outline-teatro{
    border: 1px solid var(--crema-color);
    color: var(--crema-color);
    padding: .8rem 1.6rem;
    border-radius: 2px;
    margin-left: .8rem;
    transition: all .2s ease;
}
.btn-outline-teatro:hover{
    background: var(--crema-color);
    color: var(--negro-color);
}

/* Paginación (bullets) */
.hero-slider .swiper-pagination-bullet{
    width: 10px;
    height: 10px;
    background: var(--crema-color);
    opacity: .5;
}
.hero-slider .swiper-pagination-bullet-active{
    background: var(--naranja-color);
    opacity: 1;
}

/* Flechas custom */
.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev{
    color: var(--crema-color);
    width: 48px;
    height: 48px;
    background: rgba(20,16,15,.35);
    border-radius: 50%;
    transition: background .2s ease;
}
.hero-slider .swiper-button-next:hover,
.hero-slider .swiper-button-prev:hover{
    background: var(--rojo-color);
}
.hero-slider .swiper-button-next::after,
.hero-slider .swiper-button-prev::after{
    font-size: 18px;
}

@media (max-width: 576px){
    .hero-content{ padding: 0 1.5rem; }
    .btn-outline-teatro, .btn-teatro { margin-left: 0; margin-top: .6rem; display:inline-block; }
}
        
/* ==================================================
   SECCIÓN DE PRÓXIMOS EVENTOS
================================================== */

.eventos-section {
  background-color: var(--crema-color);
  color: var(--rojo-color);
  scroll-margin-top: 90px;
}

@media (max-width: 1199px){
    .eventos-section {
        scroll-margin-top: 66px;
    }
}


/* ==================================================
   ENCABEZADO
================================================== */

.eventos-header {
  margin-bottom: 38px;
  padding-bottom: 22px;
  text-align: right;
  border-bottom: 1px solid rgba(64, 28, 39, 0.65);
}

.eventos-subtitulo {
  position: relative;
  z-index: 1;
  margin: 0 0 -8px;

  font-family: var(--support-font);
  font-size: var(--subtitle-font-size);
  font-style: italic;
  font-weight: 400;
  line-height: normal;

  color: var(--rojo-color);
}

.eventos-titulo {
  margin: 0;

  font-family: var(--heading-font);
  font-size: var(--title-font-size);
  font-weight: 400;
  line-height: 0.9;

  color: var(--rojo-color);
}


/* ==================================================
   TARJETA
================================================== */

.evento-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--rojo-color);
}

.evento-imagen-link {
  display: block;
  flex-shrink: 0;
  color: inherit;
  text-decoration: none;
}

.evento-imagen {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  background-color: #dddddd;
}


/* Cortes curvos superiores */

.evento-imagen::before,
.evento-imagen::after {
  position: absolute;
  top: -24px;
  z-index: 2;

  width: 52px;
  height: 52px;

  content: "";
  background-color: var(--crema-color);
  border-radius: 50%;
}

.evento-imagen::before {
  left: -24px;
}

.evento-imagen::after {
  right: -24px;
}

.evento-imagen img {
  display: block;
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  transition: transform 300ms ease;
}

.evento-card:hover .evento-imagen img {
  transform: scale(1.1);
}


/* ==================================================
   CONTENIDO
================================================== */

.evento-contenido {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-top: 16px;
}

.evento-titulo {
  display: flex;
  align-items: center;

  min-height: 2em;
  margin: 0 0 4px;

  font-family: var(--heading-font);
  font-size: clamp(2rem, 2.4vw, 2.5rem);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.evento-titulo a {
  display: -webkit-box;
  overflow: hidden;

  color: var(--rojo-color);
  text-decoration: none;

  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.evento-titulo a:hover {
  text-underline-offset: 4px;
  color: var(--azul-color);
}

.evento-detalle {
  margin: 0 0 16px;

  font-family: var(--default-font);
  font-size: 1rem;
  line-height: 1.35;
}

.evento-detalle em {
  font-family: var(--default-font);
  font-style: italic;
}


/* ==================================================
   ACCIONES
================================================== */

.evento-acciones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  margin-top: auto;

  border-top: 1px solid var(--rojo-color);
  border-bottom: 1px solid var(--rojo-color);
}

.evento-accion {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;

  min-width: 0;
  min-height: 40px;
  padding: 8px 10px;

  color: var(--rojo-color);

  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;

  transition:
    color 200ms ease,
    background-color 200ms ease;
}

.evento-accion + .evento-accion {
  border-left: 1px solid var(--rojo-color);
}

.evento-accion i {
  flex-shrink: 0;
  font-size: 1rem;
}

.evento-accion:hover,
.evento-accion:focus-visible {
  color: var(--crema-color);
  background-color: var(--rojo-color);
}

.evento-accion:focus-visible,
.evento-titulo a:focus-visible,
.evento-imagen-link:focus-visible {
  outline: 3px solid #ffbd80;
  outline-offset: 4px;
}


/* ==================================================
   TABLET
================================================== */

@media (max-width: 991.98px) {
  .eventos-header {
    text-align: center;
  }

  .evento-imagen {
    aspect-ratio: 4 / 3;
  }
}


/* ==================================================
   MÓVIL
================================================== */

@media (max-width: 575.98px) {
  .eventos-section {
    padding: 50px 0;
  }

  .eventos-header {
    margin-bottom: 28px;
  }

  .eventos-subtitulo {
    margin-bottom: -8px;
  }

  .evento-imagen {
    aspect-ratio: 4 / 3;
  }

  .evento-titulo {
    min-height: auto;
  }

  .evento-detalle {
    min-height: auto;
  }

  .evento-acciones {
    grid-template-columns: 1fr;
  }

  .evento-accion + .evento-accion {
    border-top: 1px solid var(--rojo-color);
    border-left: 0;
  }
}


/* ==================================================
   MOVIMIENTO REDUCIDO
================================================== */

@media (prefers-reduced-motion: reduce) {
  .evento-imagen img {
    transition: none;
  }

  .evento-card:hover .evento-imagen img {
    transform: none;
  }
}

/* ==================================================
   CTA: PROGRAMACIÓN COMPLETA
================================================== */

#programacion-destacada {
    background-color: var(--crema-color);
}

.programacion-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 48px 56px;
    border: 1px solid rgba(252, 250, 248, 0.45);
    background-color: var(--rojo-color);
    border-radius: 14px;
}

.programacion-cta__contenido {
    max-width: 780px;
}

.programacion-cta__kicker {
    display: block;
    margin-bottom: 10px;
    font-family: var(--support-font);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-style: italic;
    font-weight: 400;
    line-height: 1;
    color: #ffbd80;
}

.programacion-cta__titulo {
    margin: 0 0 16px;
    font-family: var(--heading-font);
    font-size: var(--title-font-size);
    font-weight: 400;
    line-height: 0.95;
    color: #fcfaf8;
}

.programacion-cta__texto {
    max-width: 700px;
    margin: 0;
    color: #fcfaf8;
    font-size: 1rem;
    line-height: 1.7;
}

.btn-outline-crema {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-height: 48px;
    padding: 12px 24px;
    border: 1px solid #fcfaf8;
    color: #fcfaf8;
    text-decoration: none;
    transition:
        background-color 200ms ease,
        color 200ms ease;
}

.btn-outline-crema:hover,
.btn-outline-crema:focus-visible {
    color: #004680;
    background-color: #fcfaf8;
}

@media (max-width: 991.98px) {
    .programacion-cta {
        align-items: flex-start;
        flex-direction: column;
        padding: 40px;
    }
}

@media (max-width: 575.98px) {
    #programacion-destacada {
        padding: 45px 0;
    }

    .programacion-cta {
        gap: 28px;
        padding: 30px 24px;
    }

    .btn-outline-crema {
        width: 100%;
    }
}

/* ==================================================
   NOTICIAS
================================================== */

.noticias-section {
    background-color: var(--crema-color);
    color: var(--rojo-color);
}

.noticias-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 38px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--rojo-color);
}

.noticias-header__titulo {
    min-width: 0;
}

.noticias-header__kicker {
    display: block;
    margin: 0 0 -8px;
    font-family: var(--support-font);
    font-size: var(--subtitle-font-size);
    font-style: italic;
    font-weight: 400;
    line-height: 1;
    color: var(--rojo-color);
}

.noticias-header__heading {
    margin: 0;
    font-family: var(--heading-font);
    font-size: var(--title-font-size);
    font-weight: 400;
    line-height: 0.9;
    color: var(--rojo-color);
}

.noticias-header__link,
.noticias-footer__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    padding: 8px 0;
    color: var(--azul-color);
    font-family: var(--default-font);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
}

.noticias-header__link i,
.noticias-footer__link i {
    transition: transform 180ms ease;
}

.noticias-header__link:hover,
.noticias-footer__link:hover {
    color: var(--rojo-color);
}

.noticias-header__link:hover i,
.noticias-footer__link:hover i {
    transform: translateX(4px);
}


/* Tarjeta */

.noticia-card {
    display: flex;
    flex-direction: column;
    height: 100%;

    color: var(--rojo-color);
}

.noticia-card__imagen-link {
    display: block;
    flex-shrink: 0;

    color: inherit;
    text-decoration: none;
}

.noticia-card__imagen {
    position: relative;

    width: 100%;
    aspect-ratio: 4 / 3;
    margin: 0;

    overflow: hidden;
    background-color: #dddddd;
}

/* Cortes curvos, iguales a los eventos */

.noticia-card__imagen::before,
.noticia-card__imagen::after {
    position: absolute;
    top: -24px;
    z-index: 2;

    width: 52px;
    height: 52px;

    content: "";
    background-color: var(--crema-color);
    border-radius: 50%;
}

.noticia-card__imagen::before {
    left: -24px;
}

.noticia-card__imagen::after {
    right: -24px;
}

.noticia-card__imagen img {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition: transform 300ms ease;
}

.noticia-card:hover .noticia-card__imagen img {
    transform: scale(1.1);
}


/* ==================================================
   CONTENIDO
================================================== */

.noticia-card__contenido {
    display: flex;
    flex: 1;
    flex-direction: column;

    padding-top: 16px;
}

.noticia-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    min-height: 28px;
    margin-bottom: 12px;

    font-family: var(--default-font);
    font-size: 0.78rem;
    line-height: 1.4;

    color: #666666;
}

.noticia-card__categoria {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 24px;
    padding: 4px 10px;

    background-color: var(--naranja-color);
    color: var(--rojo-color);

    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.noticia-card__titulo {
    display: flex;
    align-items: flex-start;

    min-height: 2em;
    margin: 0 0 12px;

    font-family: var(--heading-font);
    font-size: clamp(2rem, 2.4vw, 2.5rem);
    font-weight: 400;
    line-height: 1;

    color: var(--rojo-color);
}

.noticia-card__titulo a {
    display: -webkit-box;
    overflow: hidden;

    color: inherit;
    text-decoration: none;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.noticia-card__titulo a:hover {
    color: var(--azul-color);
}

.noticia-card__resumen {
    display: -webkit-box;
    overflow: hidden;

    margin: 0 0 20px;

    color: var(--rojo-color);

    font-family: var(--default-font);
    font-size: 1rem;
    line-height: 1.6;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.noticia-card__enlace {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    width: 100%;
    min-height: 42px;
    margin-top: auto;
    padding: 9px 10px;

    border-top: 1px solid var(--rojo-color);
    border-bottom: 1px solid var(--rojo-color);

    color: var(--rojo-color);

    font-family: var(--default-font);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;

    transition:
        color 200ms ease,
        background-color 200ms ease;
}

.noticia-card__enlace i {
    flex-shrink: 0;
    transition: transform 180ms ease;
}

.noticia-card__enlace:hover,
.noticia-card__enlace:focus-visible {
    color: var(--crema-color);
    background-color: var(--rojo-color);
}

.noticia-card__enlace:hover i {
    transform: translateX(4px);
}


/* ==================================================
   FOCUS
================================================== */

.noticia-card__imagen-link:focus-visible,
.noticia-card__titulo a:focus-visible,
.noticia-card__enlace:focus-visible {
    outline: 3px solid var(--naranja-color);
    outline-offset: 4px;
}


/* ==================================================
   TABLET
================================================== */

@media (max-width: 991.98px) {
    .noticia-card__imagen {
        aspect-ratio: 4 / 3;
    }

    .noticia-card__titulo {
        min-height: 2em;
    }
}


/* ==================================================
   MÓVIL
================================================== */

@media (max-width: 575.98px) {
    .noticia-card__imagen {
        aspect-ratio: 4 / 3;
    }

    .noticia-card__meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;

        min-height: auto;
    }

    .noticia-card__titulo {
        min-height: auto;
    }

    .noticia-card__resumen {
        min-height: auto;
    }
}


/* ==================================================
   MOVIMIENTO REDUCIDO
================================================== */

@media (prefers-reduced-motion: reduce) {
    .noticia-card__imagen img,
    .noticia-card__enlace i {
        transition: none;
    }

    .noticia-card:hover .noticia-card__imagen img {
        transform: none;
    }
}


/* ==================================================
   REGISTRO
================================================== */

.registro-section {
    background-color: var(--crema-color);
}

.registro-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 64px;
    align-items: center;
    padding: 64px;
    overflow: hidden;
    background-color: var(--rojo-color);
    color: var(--cal-color);
    border-radius: 15px;
}

/* Línea decorativa */

.registro-panel::before {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 94px;
    height: 32px;
    content: "";
    border-top: 1px solid rgba(255, 255, 255, 0.8);
    border-right: 1px solid rgba(255, 255, 255, 0.8);
}
.registro-panel::after {
    position: absolute;
    bottom: 24px;
    left: 24px;
    width: 94px;
    height: 32px;
    content: "";
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
    border-left: 1px solid rgba(255, 255, 255, 0.8);
}

.registro-panel__contenido {
    position: relative;
    z-index: 1;
    max-width: 520px;
}

.registro-panel__kicker {
    display: block;
    margin: 0 0 4px;
    font-family: var(--support-font);
    font-size: clamp(1.5rem, 2vw, 2rem);
    font-style: italic;
    font-weight: 400;
    line-height: 1;
    color: var(--naranja-color);
}

.registro-panel__titulo {
    margin: 0 0 20px;
    font-family: var(--heading-font);
    font-size: var(--title-font-size);
    font-weight: 400;
    line-height: 0.92;
    letter-spacing: -0.02em;
    color: var(--cal-color);
}

.registro-panel__texto {
    max-width: 480px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--default-font);
    font-size: 1rem;
    line-height: 1.7;
}

.registro-panel__formulario {
    position: relative;
    z-index: 1;
}

.registro-form {
    width: 100%;
}

.registro-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.registro-form__grupo {
    min-width: 0;
}

.registro-form__grupo label {
    display: block;
    margin-bottom: 7px;
    color: var(--cal-color);
    font-family: var(--default-font);
    font-size: 0.75rem;
    font-weight: 600;
}

.registro-form__control {
    display: block;
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 0;
    outline: none;
    background-color: var(--cal-color);
    color: var(--negro-color);
    font-family: var(--default-font);
    font-size: 1rem;
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.registro-form__control::placeholder {
    color: #777777;
    opacity: 1;
}

.registro-form__control:hover {
    border-color: var(--naranja-color);
}

.registro-form__control:focus {
    border-color: var(--naranja-color);
    box-shadow: 0 0 0 3px rgba(255, 189, 128, 0.3);
}

.registro-form__control[aria-invalid="true"] {
    border-color: #ffcccc;
    box-shadow: 0 0 0 3px rgba(255, 204, 204, 0.22);
}

.registro-form__consentimiento {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 20px;
}

.registro-form__consentimiento input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--naranja-color);
}

.registro-form__consentimiento label {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--default-font);
    font-size: 1rem;
    line-height: 1.5;
}

.registro-form__consentimiento a {
    color: var(--naranja-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.registro-form__consentimiento a:hover {
    color: var(--cal-color);
}

.registro-form__boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 50px;
    margin-top: 24px;
    padding: 12px 24px;
    border: 1px solid var(--naranja-color);
    border-radius: 0;
    background-color: var(--naranja-color);
    color: var(--rojo-color);
    font-family: var(--default-font);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition:
        background-color 180ms ease,
        color 180ms ease,
        border-color 180ms ease;
}

.registro-form__boton i {
    transition: transform 180ms ease;
}

.registro-form__boton:hover {
    border-color: var(--cal-color);
    background-color: var(--cal-color);
    color: var(--azul-color);
}

.registro-form__boton:hover i {
    transform: translateX(4px);
}

.registro-form__boton:focus-visible,
.noticias-header__link:focus-visible,
.noticias-footer__link:focus-visible,
.noticia-card a:focus-visible {
    outline: 3px solid var(--naranja-color);
    outline-offset: 4px;
}

.registro-form__boton:disabled {
    cursor: wait;
    opacity: 0.7;
}

.registro-form__error {
    display: block;
    min-height: 18px;
    margin-top: 5px;
    color: #ffe0e0;
    font-family: var(--default-font);
    font-size: 0.75rem;
    line-height: 1.3;
}

.registro-form__respuesta {
    min-height: 24px;
    margin: 18px 0 0;
    color: var(--cal-color);
    font-family: var(--default-font);
    font-size: 1rem;
    line-height: 1.5;
}

.registro-form__respuesta.is-success {
    color: #e7ffdf;
}

.registro-form__respuesta.is-error {
    color: #ffe0e0;
}


/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 991.98px) {
    .noticias-section,
    .registro-section {
        padding: 68px 0;
    }

    .noticia-card__imagen {
        height: 300px;
    }

    .registro-panel {
        grid-template-columns: 1fr;
        gap: 42px;
        padding: 48px;
    }

    .registro-panel__contenido {
        max-width: 680px;
    }
}

@media (max-width: 767.98px) {
    .noticias-header {
        align-items: flex-start;
    }

    .noticias-header__link {
        display: none;
    }

    .noticias-footer {
        display: block;
    }

    .noticia-card__imagen {
        height: 340px;
    }

    .registro-form__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .noticias-section,
    .registro-section {
        padding: 52px 0;
    }

    .noticias-header {
        margin-bottom: 30px;
        padding-bottom: 18px;
    }

    .noticias-header__kicker {
        margin-bottom: -3px;
    }

    .noticia-card__imagen {
        height: 300px;
    }

    .noticia-card__meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .registro-panel {
        gap: 32px;
        padding: 38px 24px;
    }

    .registro-panel::before {
        top: 14px;
        right: 14px;
        width: 60px;
    }

    .registro-panel::after {
        bottom: 14px;
        left: 14px;
        width: 60px;
    }

    .registro-form__boton {
        width: 100%;
    }
}


/* ==================================================
   MOVIMIENTO REDUCIDO
================================================== */

@media (prefers-reduced-motion: reduce) {
    .noticia-card__imagen img,
    .noticia-card__enlace i,
    .noticias-header__link i,
    .noticias-footer__link i,
    .registro-form__boton i {
        transition: none;
    }

    .noticia-card:hover .noticia-card__imagen img {
        transform: none;
    }
}

/* ==================================================
   ESTADO VACÍO DE NOTICIAS
================================================== */

.home-noticias-vacio {
    padding: 32px 0 0;
    text-align: center;
    color: var(--rojo-color);
}

