/*
 * Archivo: 49087.css
 * Guardado: 04 Sep 2025 | 20:36:21
 */

/* 
 * Template-part - post-evento.php
 * Template-part - post-evento-donde.php
 * Template-part - post-evento-cuando.php
 * Single - Evento, Festividad - Estilos - 49087.css
 */

/* =========================================================
 * DÓNDE
 * ========================================================= */
.evento-where-card{
  display: inline-flex;           /* ← mínimo cambio: antes era flex */
  flex-direction: column;
  gap: 25px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 15px;
  padding: 25px;
  margin: 20px 30px;
  clear: both;
  position: relative;
  z-index: 0;
  width: auto;
  max-width: 350px;
  line-height: 1.5;
  vertical-align: top;            /* para alinear con el bloque "Cuándo" */

  /* Dos columnas fluidas sin media query (cuando no estén dentro del wrapper) */
  width: clamp(260px, calc(50% - 60px), 100%);
  max-width: none;
}
.evento-where-pill{
  align-self: flex-start;
  font-size: 0.85em;
  line-height: 1;
  letter-spacing: .02em;
  background: #eef2ff;
  color: #3730a3;
  border: 1px solid #c7d2fe;
  padding: 10px 15px 7px;
  border-radius: 20px;
  font-weight: 500;
}

/* Título (emoji + texto) */
.evento-where-title{
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  flex-wrap: nowrap;             /* evita que el emoji quede solo en una línea */
}
.evento-where-title .emoji{ flex: 0 0 auto; }

/* Texto */
.evento-where-text { 
	display:flex; 
	gap: 15px; 
	flex-direction:column;
	font-weight:500;
}
.evento-where-main{ font-weight:600; font-size:1.05em; line-height:1.5; }
.evento-where-sub { color:#64748b; line-height:1.5; } /* slate 500 */

/* Bloques por nivel (Distritos/Provincias/Departamento) */
.where-label {
  display:inline-block;
  font-size:.7em;
  line-height:1;
  padding:6px 10px 5px;
  border-radius:25px;
  border:1px solid #e5e7eb;
  background:#f8fafc;
  color:#334155;
  margin-bottom:5px;
  font-weight:500;
}
.where-list{ line-height:1.55; }
.where-country{ color:#64748b; }

/* Colapso de distritos largos */
.where-toggle{
  display:inline-block;
  margin-top:6px;
  padding:4px 10px;
  font-size:.80rem;
  border-radius:999px;
  border:1px solid #cbd5e1;
  background:#fff;
  color:#0f172a;
  cursor:pointer;
}
.where-toggle:hover{ background:#f1f5f9; }
.where-hidden[hidden]{ display:none !important; }
.ellipsis{ padding-left:2px; color:#94a3b8; }

/* Tipografía de enlaces en Dónde */
.evento-where-main .where-list a{ font-weight:600; }
.evento-where-text a{ text-decoration:none; border-bottom:1px solid #e5e7eb; }
.evento-where-text a:hover{ border-color:#cbd5e1; }

/* =========================================================
 * ENLACE OPCIONAL A FESTIVIDAD RELACIONADA
 * ========================================================= */
.evento-relacion{ margin:12px 0 8px; font-size:0.95rem; }
.evento-relacion a{ text-decoration:none; border-bottom:1px solid #e5e7eb; }
.evento-relacion a:hover{ border-color:#cbd5e1; }

/* =========================================================
 * GALERÍA DEL EVENTO
 * ========================================================= */
.evento-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap:10px;
  margin-top:20px;
}
.evento-grid a{ display:block; }
.evento-thumb{ display:block; width:100%; height:auto; }

/* Paginación */
.evento-pagination{ margin-top:20px; }
.evento-pagination ul{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  list-style:none;
  padding:0;
}

/* =========================================================
 * BANNER Evento → Festividad (miniatura + “más info”)
 * ========================================================= */
.evento-parent-card{
  position:relative;
  display:flex;
  gap:15px;
  margin:15px 0 30px;
  padding:20px 25px 16px;
  border:1px solid #ddd;
  border-radius:15px;
  background: #f9f9f9;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.evento-parent-card:hover{
  border-color:#008bf8;
  box-shadow:0 2px 10px rgba(0,0,0,.2);
}

/* “Chip” decorativo como en mas-info-card */
.evento-parent-card::after{
  content:"Más información";
  position:absolute;
  top:-18px; right:22px;
  background:#3b82f6; color:#fff;
  font-size:.77em; padding:0 12px;
  border-radius:25px;
  box-shadow:0 2px 8px rgba(0,0,0,.08);
  letter-spacing:.05px;
  opacity:0; transform:translateY(-60%);
  transition: transform .35s ease, opacity .65s ease, background .35s;
  pointer-events:none;
}
.evento-parent-card:hover::after{ opacity:1; transform:translateY(0); }

/* Thumb a la izquierda */
.evento-parent-thumb{
  max-width:175px; height:180px;
  border-radius:10px; overflow:hidden;
  background:#eef2f7;
  display:flex; justify-content:center;
}
.evento-parent-img{ object-fit:cover; display:block; }

/* Texto a la derecha */
.evento-parent-body{ align-self:start; }
.evento-parent-pill {
	display: inline-block;
	font-size: .82em;
	font-weight: 500;
	padding: 3px 13px 0px;
	border-radius:20px;
	background: #eef2ff;
	color: #4b44ac;
	margin: 5px 10px;
	letter-spacing: .9px;
	border: 1px solid #aba6eb;
}
.evento-parent-title{
  margin:20px;
  font-size:1.1em; font-weight:500;
  text-align:center; line-height:1.5em;
}

/* Responsive: si no cabe, apila */
@media (max-width:520px){
  .evento-parent-card{
    grid-template-columns:64px 1fr;
    gap:10px; padding:14px;
  }
  .evento-parent-thumb{ width:64px; height:64px; }
}

/* =========================================================
 * CUÁNDO (mismo look & feel)
 * ========================================================= */
.evento-when-card{
  display: inline-flex;          /* igual que where para alinear en fila */
  flex-direction: column;
  align-items: center;
  gap: 25px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 15px;
  padding: 25px;
  margin: 20px;
  clear: both;
  position: relative;
  z-index: 0;
  width: auto;
  max-width: 350px;
  line-height: 1.5;
  vertical-align: top;

  /* Dos columnas fluidas sin media query (cuando no estén dentro del wrapper) */
  width: clamp(260px, calc(50% - 60px), 100%);
  max-width: none;
}
.evento-when-pill {
  align-self: flex-start;
  font-size: 0.85em;
  line-height: 1;
  letter-spacing: .02em;
  background: #fff9e5;
  color: #9c5326;
  border: 1px solid #fde895;
  padding: 10px 15px 7px;
  border-radius: 20px;
  font-weight: 500;
}
.evento-when-title {
  font-weight:500;
  display:flex; align-items:center; justify-content:center;
  gap: 10px;
  flex-wrap:wrap;
}
.evento-when-title .emoji{ filter:saturate(1.1); }
.evento-when-main {
    font-weight: 500;
    /*font-size: 1.05em;*/
}
.evento-when-central { margin-top:6px; color:#334155; } /* acercamos el día central */

/* =========================================================
 * CONTENEDOR Dónde + Cuándo
 * ========================================================= */
.evento-meta-row{
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  margin: 20px;
}
.evento-meta-row.only-where .evento-where-card {
	flex:0 1 400px;
	max-width: 400px;
}
.evento-where-text {
	max-width:30ch
} /* para que no se haga eterno en una línea */

/* Igualar “caja” y flex-basis dentro de la fila */
.evento-meta-row .evento-where-card,
.evento-meta-row .evento-when-card{
  box-sizing: border-box;      /* asegura que el padding cuente dentro del ancho */
  flex: 1 1 320px;             /* base igual para ambas (puedes subir/bajar 320) */
  width: auto;                 /* ignora cualquier width previo */
  max-width: none;             /* evita topes anteriores */
  margin: 0;                   /* ya tienes gap en el contenedor */
  padding: 25px;               /* mismo padding para las dos */
}

/* Normalización compartida de títulos (emoji + texto) */
.evento-where-title,
.evento-when-title{
  display:flex;
  align-items:flex-start;
  justify-content:center;
  gap:10px;
  flex-wrap:nowrap;            /* que no se separen emoji y texto */
}
.evento-where-title .emoji,
.evento-when-title .emoji{
  flex:0 0 auto;               /* que el emoji no empuje el ancho */
}

/* =========================================================
 * EMOJI SVG
 * ========================================================= */
.emoji-svg{
  display:inline-block !important;
  width:1.2em; height:1.2em;
  max-width:none !important;
  vertical-align:middle;
  margin-right:4px;
}

/* === CUÁNDO: fila compacta icono + cuerpo === */
.evento-when-row{
  display: flex;
  align-items: baseline;   /* alinea el emoji con la 1ª línea del texto */
  gap: 8px;
  flex-wrap: nowrap;       /* que no se separen */
}
.evento-when-row .emoji{ flex: 0 0 auto; }
.evento-when-body {
    flex: 1 1 auto;
    min-width: 0;
    gap: 5px;
    display: flex;
    flex-direction: column;
}

/* normaliza el emoji por si hay resets globales */
.evento-when-row .emoji .emoji-svg{
  display: inline-block !important;
  width: 1.2em; height: 1.2em;
  max-width: none !important;
  vertical-align: middle;
}


/* === CUÁNDO: tipografía de la fecha principal (como la querías) === */
span.evento-when-text{
  font-weight: 500;        /* antes lo subimos: lo regresamos */
  font-size: 1.05em;
}



/* Cuándo: modo apilado */
.evento-when-stack{
  display:flex;
  flex-direction:column;
  gap:6px;
  line-height:1.35;
}
.evento-when-stack .when-arrow{
  display:flex;
  justify-content:center;
  font-size:18px;
  opacity:.65;
  line-height:1;
}
.evento-when-stack .when-line{
  display:block;
}
.evento-when-row{
  display:grid;
  grid-template-columns: 24px 1fr; /* icono | contenido */
  align-items:start;
  column-gap:10px;
}

.evento-when-body{ text-align:center; }

.sr-only{
  position:absolute !important; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}



/* ====== “Cuándo” · timeline vertical con chips ====== */
/* ===== Mini-calendarios apilados ===== */
.when-mini-cal{
  display:flex; flex-direction:column; align-items:center; gap:12px;
}

.cal-item { 
	display:flex; flex-direction:column; align-items:center; gap:10px;
}

.cal-tag{
  font-size:11px; line-height:1;
  padding:3px 8px; border-radius:999px;
  background:#fef3c7; border:1px solid #f59e0b;
  user-select:none;
}

.cal-badge {
    display: inline-grid;
    grid-template-rows: 20px 0fr auto;
    justify-items: center;
    align-items: center;
    width: 65px;
    min-height: 75px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .03);
    overflow: hidden;
    gap: 5px;
    padding-bottom: 2px;
}
.cal-top {
    width: 100%;
    text-align: center;
    font-size: .7em;
    font-weight: 500;
    letter-spacing: 1px;
    color: #fff;
    background: #f59e0b;
}
.cal-day {
    font-size: 1.7em;
    font-weight: 700;
    line-height: 1.05;
}
.cal-year { 
	font-size: .7em; 
	color: #6b7280;
}

/* conector vertical entre ambos */
.cal-connector{
  width:2px; height:18px; background:#e5e7eb; border-radius:2px;
}

/* respeta layout actual */
.evento-when-row{ display:grid; grid-template-columns:24px 1fr; column-gap:10px; align-items:start; }
.evento-when-body{ text-align:center; }




/* ===== Mini-calendarios en fila (dos columnas) ===== */
.when-mini-cal.when-mini-cal--row{
  display: grid !important;
  grid-template-columns: 1fr 16px 1fr; /* cal | separador | cal */
  align-items: center;
  justify-items: center;
  column-gap: 16px;
  row-gap: 0;
  text-align: center;
}

/* Ajustes de los ítems dentro del grid horizontal */
.when-mini-cal.when-mini-cal--row .cal-item{
  align-items: center;
  gap: 6px;
}

/* El separador central: línea vertical */
.when-mini-cal.when-mini-cal--row .cal-connector{
  width: 2px;
  height: 44px;              /* ajusta si quieres más/menos */
  background: #e5e7eb;
  border-radius: 2px;
  justify-self: center;
}

/* Responsivo: si no cabe, apila y oculta el separador */
@media (max-width: 520px){
  .when-mini-cal.when-mini-cal--row{
    grid-template-columns: 1fr;
    row-gap: 12px;
  }
  .when-mini-cal.when-mini-cal--row .cal-connector{
    display: none;
  }
}
/* 1) Píldoras Inicio/Fin: más sutiles (no compiten con el título) */
.cal-tag{
  font-size: 10px;
  line-height: 1;
  padding: 2px 8px;
  border-radius: 999px;
  background: transparent;      /* sin relleno */
  border: 1px solid #e5e7eb;    /* gris suave */
  color: #64748b;               /* slate-600 */
  letter-spacing: .02em;
  margin-bottom: 4px;
}

/* 2) Conector HORIZONTAL (en modo dos columnas) con azul molón */
.when-mini-cal.when-mini-cal--row{
  grid-template-columns: 1fr 48px 1fr; /* cal | conector | cal */
}

.when-mini-cal.when-mini-cal--row .cal-connector{
  width: 42px;                  /* largo de la raya */
  height: 2px;                  /* horizontal */
  background: #3b82f6;          /* azul */
  border-radius: 2px;
  justify-self: center;
  align-self: center;           /* centrada verticalmente con las tarjetas */
}

/* En móvil (se apila): ocultamos el conector horizontal */
@media (max-width: 520px){
  .when-mini-cal.when-mini-cal--row{
    grid-template-columns: 1fr;
  }
  .when-mini-cal.when-mini-cal--row .cal-connector{
    display: none;
  }
}
