:root {
  --rw-color-primary: #000;
  --rw-color-bg: #fff;
  --rw-color-text: #222;
  --rw-color-border: #ddd;
  --rw-color-hover: #333;
}

/* ==========================================================
   FORMULARIO DE FILTRO DE ESPECTÁCULOS / EVENTOS
   ========================================================== */
.rw-filtro-espectaculos {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
  background: var(--rw-color-bg);
  border: 1px solid var(--rw-color-border);
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 2rem;
}

.rw-filtro-espectaculos .rw-field {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 150px;
}

.rw-filtro-espectaculos label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--rw-color-text);
  margin-bottom: 0.4rem;
}

.rw-filtro-espectaculos input[type="date"],
.rw-filtro-espectaculos select {
  border: 1px solid var(--rw-color-border);
  border-radius: 4px;
  padding: 0.55rem 0.6rem;
  font-size: 0.95rem;
  color: var(--rw-color-text);
  background: var(--rw-color-bg);
  transition: border 0.2s ease;
}

.rw-filtro-espectaculos input[type="date"]:focus,
.rw-filtro-espectaculos select:focus {
  outline: none;
  border-color: var(--rw-color-primary);
}

.rw-filtro-espectaculos button {
  background: var(--rw-color-primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.7rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.rw-filtro-espectaculos button:hover {
  background: var(--rw-color-hover);
}
/* Línea de fecha/horas estilo Figma bajo la imagen del evento */
.cew-card__date {
  font-family: "Antonio", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase;
  color: #000000;
  margin-top: 24px;
  margin-bottom: 8px;
}

/* ==========================================================
   RESULTADOS DE EVENTOS / TARJETAS
   ========================================================== */
.rw-resultados {
  display: grid;
  gap: 1.5rem;
}

/*
.rw-event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}
  */
/* ==========================================================
   GRID DE EVENTOS (3 columnas en desktop)
   ========================================================== */
.rw-event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 👈 3 columnas fijas en desktop */
  gap: 1rem;
}

/* 2 columnas en pantallas medianas */
@media (max-width: 1024px) {
  .rw-event-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 1 columna en móviles */
@media (max-width: 640px) {
  .rw-event-grid {
    grid-template-columns: 1fr;
  }
}


.rw-event-card {
  background: var(--rw-color-bg);
  border: none;
  border-radius: 0px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin-bottom: 50px;
}


/* CTA Button */
.cew-card__cta {
    margin-top: 24px;
}

/* Botón CEW */
.cew-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #B82121; /* color base Figma */
    color: #ffffff;
    padding: 16px 32px;
    border-radius: 999px; /* pastilla */
    font-family: "Space Grotesk", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
    transition: background 0.25s ease;
}

/* Hover CEW (oscurecido suave del base) */
.cew-card__cta a:hover {
    background: #9A1C1C;
    color: #fff;
}

/* Icono dentro del botón */
.cew-btn__icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    stroke: #ffffff;
    transform: translateY(1px); /* pequeño ajuste estético */
}

.cew-card__excerpt a:hover{
  color: #000; 
}
.rw-event-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.rw-event-info {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.cew-card__thumb img {
    width: 100%;
    height: auto;
    display: block;
}
.cew-card__date {
    font-family: "Antonio", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;
    text-transform: uppercase;
    color: #000000;
    margin-top: 24px;
    margin-bottom: 12px;
}
.cew-card__title {
    font-family: "Space Grotesk", sans-serif;
    font-size: 32px;
    font-weight: 500;
    line-height: 1.2;
    margin: 0 0 16px 0;
}

.cew-card__title a {
    color: #B82121;
    text-decoration: none;
}

.cew-card__excerpt {
    font-family: "Space Grotesk", sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
    color: #000000;
    margin: 0 0 24px 0;
}

.cew-card__excerpt a {
    color: inherit;
    text-decoration: none;
}
.cew-card__cta {
    margin-top: 8px;
}

.cew-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #000000;
    color: #ffffff;
    padding: 16px 32px;
    border-radius: 999px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 18px;
    font-weight: 400;
    text-decoration: none;
    transition: background 0.2s ease;
}

.cew-btn:hover {
    background: #222222;
}

.cew-btn__icon {
    font-size: 22px;
    line-height: 0;
    display: inline-block;
    transform: translateY(2px);
}

/* Título del evento */
.rw-event-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: 32px;
    font-weight: 500;
    line-height: 1.2;
    color: #B82121;
    margin: 12px 0 16px 0;
}
.rw-event-title a {
    color: inherit;
    text-decoration: none;
}

.rw-event-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  color: #555;
}

.rw-event-meta li {
  margin-bottom: 0.3rem;
}

.rw-event-desc {
    font-family: "Space Grotesk", sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
    color: #000;
    margin-bottom: 24px;
}
.rw-event-desc a {
    color: inherit;
    text-decoration: none;
}
.rw-event-link {
  margin-top: auto;
}

.rw-btn-entradas {
  display: inline-block;
  background: var(--rw-color-primary);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s ease;
}

.rw-btn-entradas:hover {
  background: var(--rw-color-hover);
}

/* ==========================================================
   RELACIONES ENTRE CPTs
   ========================================================== */
.rw-relacionados {
  margin-top: 2rem;
  border-top: 1px solid var(--rw-color-border);
  padding-top: 1rem;
}

.rw-relacionados h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--rw-color-primary);
}

.rw-listado-rel {
  list-style: none;
  margin: 0 0 1rem 0;
  padding: 0;
}

.rw-listado-rel li {
  margin-bottom: 0.3rem;
}

.rw-listado-rel a {
  color: var(--rw-color-text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

.rw-listado-rel a:hover {
  color: var(--rw-color-primary);
  border-bottom-color: var(--rw-color-primary);
}

/* ==========================================================
   BOTONES Y CAMPOS GLOBALES
   ========================================================== */
.rw-btn-reset {
  background: #eee;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s ease;
}

.rw-btn-reset:hover {
  background: #ddd;
}

/* ============================================
   PAGINACIÓN CEW — VERSIÓN FINAL LIMPIA
   ============================================ */

.rw-cew-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  margin: 60px 0;
}

/* Flechas */
/* Flechas circulares siempre */
.rw-page-arrow {
    width: 56px;
    height: 56px;
    background: #B82121;
    color: #fff;
    border-radius: 50%;
    border: none;
    font-size: 24px;

    display: inline-flex;      /* 👈 ESTO ES LA CLAVE */
    align-items: center;
    justify-content: center;

    cursor: pointer;
    line-height: 0;            /* 👈 evita estiramientos */
    padding: 0;
    box-sizing: content-box;   /* 👈 asegura forma perfecta */
}

.rw-page-arrow.rw-disabled {
    background: #e4bcbc;
    cursor: default;
}

/* Contenedor números */
.rw-numbers {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Números */
.rw-page-num {
  font-family: "Inter", sans-serif;
  font-size: 20px;
  line-height: 155%;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #000;
  padding: 0;
}

.rw-page-num.rw-active {
  font-weight: 600;
  color: #B82121;
  cursor: default;
}

/* La línea entre el activo y el siguiente */
.rw-line {
  display: block;
  height: 2px;
  background: #000;
  opacity: .35;
  flex-grow: 1;
  margin: 0 8px;
  min-width: 80px; /* ajustable para que tenga largo visible */
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 768px) {
  .rw-filtro-espectaculos {
    flex-direction: column;
    align-items: stretch;
  }

  .rw-filtro-espectaculos .rw-field {
    width: 100%;
  }

  .rw-event-grid {
    grid-template-columns: 1fr;
  }

  .rw-event-card {
    /* border-radius: 8px; */
  }
}

/* ==========================================================
   Barra de filtros moderna (horizontal)
   Aplica a: <form id="rw-cew-filters" class="rw-cew-filters">
   ========================================================== */
.rw-cew-filters{
  display:grid;
  grid-template-columns: repeat(6, minmax(140px,1fr));
  gap:12px;
  align-items:center;
  background: var(--rw-color-bg);
  padding: 14px;
}

/* Inputs/Selects base */
.rw-cew-filters input[type="text"],
.rw-cew-filters input[type="date"],
.rw-cew-filters select{
  width:100%;
  padding:10px 12px;
  border:1px solid var(--rw-color-border);
  border-radius:8px;
  background:#fff;
  color:var(--rw-color-text);
  font-size:.95rem;
  line-height:1;
  transition:border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

/* Select moderno con caret */
.rw-cew-filters select{
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  background-image:
    linear-gradient(transparent,transparent),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20' fill='%23222'><path d='M5.5 7l4.5 6 4.5-6z'/></svg>");
  background-repeat:no-repeat;
  background-position: right 10px center;
  background-size:14px;
  padding-right:34px;
}

.rw-cew-filters input:focus,
.rw-cew-filters select:focus{
  outline:none;
  border-color:#999;
  box-shadow:0 0 0 3px rgba(0,0,0,.06);
}

/* Distribución en una fila (6 columnas) */
.rw-cew-filters input[name="search"]{ grid-column: span 1; }
.rw-cew-filters select[name="ciudad"]{ grid-column: span 1; }
.rw-cew-filters select[name="artista"]{ grid-column: span 1; }
.rw-cew-filters select[name="espectaculo"]{ grid-column: span 1; }
.rw-cew-filters select[name="idioma"]{ grid-column: span 1; }
.rw-cew-filters select[name="edad"]{ grid-column: span 1; }
.rw-cew-filters input[name="fecha"]{ grid-column: span 1; }

/* Botón reset alineado al final */
.rw-cew-filters .rw-filter-actions{
  grid-column: -2 / -1; /* penúltima a última col */
}
.rw-cew-filters .rw-btn-reset{
  width:100%;
  background:#f2f2f2;
  color:#222;
  border:none;
  padding:10px 12px;
  border-radius:8px;
  font-weight:600;
  cursor:pointer;
  transition:background .15s ease, transform .05s ease;
}
.rw-cew-filters .rw-btn-reset:hover{ background:#e8e8e8; }
.rw-cew-filters .rw-btn-reset:active{ transform: translateY(1px); }

/* ===============================
   Ajuste de tamaños por campo
   =============================== */

.rw-cew-filters input[name="search"]{
  grid-column: span 1.5; /* un poco más corto */
  min-width: 180px;
}

.rw-cew-filters select[name="ciudad"],
.rw-cew-filters select[name="artista"],
.rw-cew-filters select[name="espectaculo"],
.rw-cew-filters select[name="idioma"],
.rw-cew-filters select[name="edad"],
.rw-cew-filters input[name="fecha"]{
  min-width: 150px;
}

/* Ajuste del datepicker */
.rw-cew-filters input[type="date"]{
  font-size: 0.9rem;
  padding-right: 8px;
}

/* Centrado vertical y altura consistente */
.rw-cew-filters input,
.rw-cew-filters select{
  height: 42px;
  display: flex;
  align-items: center;
}

/* Espaciado extra entre buscador y resto */
.rw-cew-filters input[name="search"]{
  margin-right: 8px;
}
/* ==========================================================
   PLACEHOLDER VISUAL CORRECTO PARA CAMPO FECHA
   ========================================================== */
.rw-date-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.rw-date-wrapper input[type="date"] {
  position: relative;
  z-index: 3;
  background: transparent;
  color: #000;
  font-size: 0.95rem;
  height: 42px;
  line-height: 42px;
  padding-left: 70px; /* espacio para el texto “Fecha” */
  border: 1px solid var(--rw-color-border);
  border-radius: 8px;
}

/* Texto “Fecha” (placeholder simulado) */
.rw-date-placeholder {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #bbb; /* mismo tono que placeholder de “Buscar…” */
  font-size: 0.9rem;
  font-weight: 400;
  font-style: normal;
  pointer-events: none;
  z-index: 2;
  transition: all 0.2s ease;
}

/* Oculta el texto cuando hay valor o se enfoca */
.rw-date-wrapper input[type="date"]:focus + .rw-date-placeholder,
.rw-date-wrapper input[type="date"].has-value + .rw-date-placeholder {
  opacity: 0;
  transform: translateY(-5px);
}


/* Ocultar el placeholder visual al escribir/seleccionar */
.rw-date-wrapper input[type="date"]:focus + .rw-date-placeholder,
.rw-date-wrapper input[type="date"].has-value + .rw-date-placeholder{
  opacity:0; transform:translateY(-6px);
}
/* ==========================================================
   Rango de fechas (Desde / Hasta)
   ========================================================== */
.rw-date-range {
  display: flex;
  gap: 10px;
  align-items: center;
  grid-column: span 2;
}

.rw-date-range input[type="date"] {
  flex: 1;
  height: 42px;
  border: 1px solid var(--rw-color-border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.9rem;
  background: #fff;
  color: var(--rw-color-text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rw-date-range input[type="date"]:focus {
  outline: none;
  border-color: var(--rw-color-primary);
  box-shadow: 0 0 0 3px rgba(0,0,0,.05);
}
.rw-date-range label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 0.85rem;
}

.rw-date-pair {
  display: flex;
  gap: 8px;
  align-items: center;
}

.rw-date-separator {
  color: #999;
  font-weight: 600;
}




/* Estado compacto en pantallas medianas (3 columnas) */
@media (max-width: 1024px){
  .rw-cew-filters{
    grid-template-columns: repeat(3, minmax(160px,1fr));
  }
  .rw-cew-filters input[name="search"]{ grid-column: span 3; }
  .rw-cew-filters .rw-filter-actions{ grid-column: span 1; }
}

/* Móvil (1 columna) */
@media (max-width: 640px){
  .rw-cew-filters{
    grid-template-columns: 1fr;
    gap:10px;
    padding:12px;
    border-radius:8px;
  }
  .rw-cew-filters input[name="search"],
  .rw-cew-filters select,
  .rw-cew-filters input[name="fecha"]{
    grid-column: 1 / -1;
  }
  .rw-cew-filters .rw-filter-actions{
    grid-column: 1 / -1;
  }
}


.rw-artistas-grid {
  display: grid;
  gap: 24px;
}
.rw-artistas-grid.rw-cols-1 { grid-template-columns: 1fr; }
.rw-artistas-grid.rw-cols-2 { grid-template-columns: repeat(2, 1fr); }
.rw-artistas-grid.rw-cols-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 1024px) {
  .rw-artistas-grid.rw-cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .rw-artistas-grid { grid-template-columns: 1fr !important; }
}

/* ==========================================================
   ARCHIVOS DE ARTISTAS
   ========================================================== */

.rw-artista-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}
.rw-artista-thumb-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.rw-artista-overlay {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: rgba(60, 75, 80, 0.85);
  backdrop-filter: blur(2px);
  border-radius: 999px;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}
.rw-artista-roles {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.9;
}
.rw-artista-name {
  grid-column: 1 / -1;
  font-size: 22px;
  margin: 0;
  line-height: 1.1;
}
.rw-artista-name a { color: #fff; text-decoration: none; }
.rw-artista-btn {
  justify-self: end;
  padding: 10px 18px;
  border-radius: 999px;
  background: #c33;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

/* ==========================================================
   SECCIÓN EVENTO DE MES ACTUAL (INICIO)
   ========================================================== */
/* =============================
   CONTENEDOR CON SCROLL
   ============================= */
.rw-eventos-mes {
    max-height: 700px; /* ajustable */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

/* Scroll bonito */
.rw-eventos-mes::-webkit-scrollbar {
    width: 8px;
}
.rw-eventos-mes::-webkit-scrollbar-thumb {
    background: #b82121;
    border-radius: 4px;
}

.rw-list-info-container{
  display: flex;
  justify-content: space-between;
}
/* =============================
   ITEM DEL EVENTO
   ============================= */
.rw-evento-list-info{
  display: flex;
}
.rw-evento-list-item {
    display: grid;
    grid-template-columns: 445px 1fr;
    align-items: center;
    gap: 100px;
}
.rw-evento-list-item::after {
    content: none !important;
    display: none !important;
    background: transparent !important;
    border: none !important;
}
/* Imagen */
.rw-evento-list-img img {
    width: 445px;
    height: 174px !important;
    object-fit: cover;
    object-position: top;
    display: block;
}

/* =============================
   FECHA
   ============================= */
.rw-evento-list-info-data-container{
  margin-right: 80px;
}
.rw-evento-list-fecha {
    font-family: "Antonio", sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 120%;
    color: #E13337;
    margin-bottom: 6px;
    text-transform: lowercase; /* Porque va: 17 octubre 2025 */
}

/* =============================
   CIUDAD
   ============================= */
.rw-evento-list-ciudad {
    font-family: "Antonio", sans-serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 120%;
    color: #000;
    margin-bottom: 15px;
}

/* =============================
   TITULO EVENTO
   ============================= */
.rw-evento-list-titulo {
    font-family: "Space Grotesk", sans-serif;
    font-size: 40px;
    font-weight: 500;
    line-height: 120%;
    text-transform: uppercase;
    color: #000;
    margin: 0;
}

/* =============================
   BOTON: Comprar entradas
   Ajustado EXACTO a Figma
   ============================= */
.rw-evento-list-cta .boton-rojo {
    background-color: #B82121;
    color: #fff !important;
    font-family: "Space Grotesk", sans-serif;
    font-size: 16px;
    font-weight: 400;
    text-transform: none;
    padding: 11px 26px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.rw-evento-list-cta .boton-rojo:hover {
    background-color: #831616;
    transform: translateY(-2px);
}

/* Alineación a la derecha */

/* Flechas Swiper dinámicas RW */
.swiper-button-next,
.swiper-button-prev {
    color: #B82121 !important;
    fill: #B82121 !important;
}

/* Para iconos SVG que usa Elementor */
.swiper-button-next:after,
.swiper-button-prev:after {
    color: #B82121 !important;
}


/* ==========================================================
   LISTADO DE EVENTOS (AGENDA) — MISMO COMPORTAMIENTO QUE HOME
   ========================================================== */

.rw-event-list {
    max-height: 700px;           /* igual que home */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

/* Scroll bonito (igual que home) */
.rw-event-list::-webkit-scrollbar {
    width: 8px;
}
.rw-event-list::-webkit-scrollbar-thumb {
    background: #b82121;
    border-radius: 4px;
}
/* Asegura alineación correcta del CTA en agenda */
.rw-evento-list-cta {
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {

    .rw-event-list {
        max-height: none;
        overflow: visible;
        gap: 32px;
    }

    .rw-evento-list-item {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .rw-evento-list-img img {
        width: 100%;
        height: auto !important;
    }

    .rw-evento-list-info {
        flex-direction: column;
    }

    .rw-evento-list-info-data-container {
        margin-right: 0;
        margin-bottom: 16px;
    }

    .rw-evento-list-titulo {
        font-size: 28px;
    }
}

/* ================================
   AGENDA – lista SIN scroll interno
   ================================ */
.rw-cew-results[data-layout="list"] .rw-event-list {
    max-height: none;
    overflow: visible;
}

.rw-evento-list-cta{
  min-width: fit-content;
}