/*
 Theme Name: GeneratePress Child
 Theme URI: https://yogagenda.eu
 Description: Child theme de GeneratePress para Yogagenda
 Author: Musa
 Template: generatepress
 Version: 1.0
*/
.retiros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin: 24px 0;
}

.retiro-card {
  padding: 18px;
  border: 1px solid #eee;
  border-radius: 12px;
  background-color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.retiro-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  border-color: #ddd;
}

.retiro-card-title {
  margin: 0 0 10px;
}

.retiro-meta>div {
  margin: 6px 0;
}

.retiro-excerpt {
  margin-top: 12px;
}


.breadcrumbs {
  font-size: 14px;
  margin: 10px 0 20px;
  color: #777;
}

.breadcrumbs a {
  color: #555;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.tax-chips {
  margin: 18px 0 26px;
}

.tax-chips__title {
  font-weight: 600;
  margin-bottom: 10px;
}

.tax-chips__wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid #e6e6e6;
  border-radius: 999px;
  text-decoration: none;
  line-height: 1;
}

.chip.is-active {
  border-color: #111;
  font-weight: 600;
}

.combo-h2 {
  margin: 16px 0 6px;
  font-size: 1.25rem;
}

.combo-p {
  margin: 0 0 18px;
  opacity: .9;
}

/* =========================================================
   HUB DESTINOS – GRID DE TAXONOMÍAS
   ---------------------------------------------------------
   Uso:
   - Página /destinos/
   - Shortcode: [hub_destinos]
   - Muestra un grid de destinos (taxonomía destino)
   - Cada card enlaza a /destinos/{slug}/
   - Pensado para SEO (hubs + enlazado interno)
   ========================================================= */

/* Contenedor principal del grid de destinos */
.hub-grid {
  /* Grid responsive automático */
  display: grid;

  /* Columnas flexibles según ancho de pantalla */
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

  /* Espacio entre cards */
  gap: 16px;

  /* Separación vertical respecto a otros bloques */
  margin: 22px 0;
}

/* Card individual de destino */
.hub-card {
  /* Hacemos toda la card clicable */
  display: block;

  /* Estilo visual neutro (GeneratePress friendly) */
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 16px;

  /* Quitamos subrayado del enlace */
  text-decoration: none;
}

/* Nombre del destino (ej: Ibiza, Barcelona, etc.) */
.hub-card__title {
  font-weight: 600;
  margin-bottom: 6px;
}

/* Meta secundaria: número de retiros */
.hub-card__meta {
  /* Menos protagonismo visual */
  opacity: 0.75;
  font-size: 0.95rem;
}

/* =========================================================
   HUB CALENDARIO – LISTADO DE RETIROS POR MES
   ---------------------------------------------------------
   Uso:
   - Página tipo hub (ej: /calendario-retiros/)
   - Shortcode: [hub_calendario months="12" limit_per_month="12"]
   - Agrupa retiros futuros por mes de inicio
   - Pensado para:
     · UX (navegación temporal clara)
     · SEO (long-tail por fechas + enlazado interno)
   ========================================================= */

/* Bloque de un mes (ej: "Marzo 2026") */
.cal-month {
  /* Separación vertical entre meses */
  margin: 26px 0;
}

/* Título del mes (H2 generado por el shortcode) */
.cal-month__h2 {
  /* Sin margen superior para compactar */
  margin: 0 0 10px;

  /* Tamaño ligeramente menor que un H1 */
  font-size: 1.25rem;
}

/* Lista de retiros dentro del mes */
.cal-list {
  /* Quitamos márgenes por defecto del UL */
  margin: 0;

  /* Sangría ligera para mantener jerarquía visual */
  padding-left: 18px;
}

/* Item individual (un retiro concreto) */
.cal-item {
  /* Separación entre retiros del mismo mes */
  margin: 8px 0;
}

/* Meta del retiro: fechas y destino */
.cal-item__meta {
  /* Menos protagonismo que el título */
  opacity: 0.75;

  /* Tamaño un poco menor */
  font-size: 0.95rem;
}

/* =========================================
   Miniaturas en cards (archive / taxonomías)
   ========================================= */

.retiro-thumb {
  display: block;
  margin-bottom: 14px;
  /* separa imagen del título */
}

.retiro-thumb-img {
  width: 100%;
  height: 180px;
  /* altura fija para cards consistentes */
  object-fit: cover;
  /* recorte elegante sin deformar */
  border-radius: 14px;
  display: block;
}

/* HERO tipo banner (recorte elegante) */
.retiro-hero {
  max-width: 900px;
  margin: 0 auto 24px;
}

.retiro-hero-img {
  width: 100%;
  height: 420px;
  /* ajusta altura: 320 / 380 / 420 */
  object-fit: cover;
  /* recorta sin deformar */
  border-radius: 12px;
  display: block;
}

@media (max-width: 768px) {
  .retiro-hero-img {
    height: 260px;
  }
}

/* =========================================================
   SINGLE RETIRO — Landing de Conversión
   ========================================================= */

/* ── Variables ──────────────────────────────────────────── */
:root {
  --yg-accent: #e85d50;
  --yg-accent-dk: #c94a3d;
  --yg-dark: #1a1a2e;
  --yg-text: #333;
  --yg-muted: #666;
  --yg-border: #e8e8e8;
  --yg-bg-soft: #f8f8f6;
  --yg-radius: 12px;
  --yg-sidebar-w: 340px;
}

/* ── Wrapper global ─────────────────────────────────────── */
.yg-single-retiro {
  --yg-body-max: 1200px;
}

/* ══════════════════════════════════════════════════════════
   1. HERO
   ══════════════════════════════════════════════════════════ */
.yg-hero {
  position: relative;
  min-height: 520px;
  height: 65vh;
  overflow: hidden;
  background-color: var(--yg-dark);
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center;
}

.yg-hero--no-img {
  min-height: 320px;
  height: auto;
}

.yg-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg,
      rgba(15, 15, 30, .35) 0%,
      rgba(15, 15, 30, .80) 60%,
      rgba(15, 15, 30, .95) 100%);
  display: flex;
  align-items: flex-end;
}

.yg-hero--no-img .yg-hero__overlay {
  position: relative;
  background: var(--yg-dark);
  padding: 60px 0 40px;
}

.yg-hero__container {
  color: #fff;
  padding-bottom: 48px;
  padding-top: 24px;
  width: 100%;
}

/* Badges */
.yg-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.yg-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.yg-badge--destino {
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff;
}

.yg-badge--estilo {
  background: var(--yg-accent);
  color: #fff;
}

/* Título */
.yg-hero__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
  font-weight: 800;
  color: #fff;
  margin: 0 0 18px;
}

/* Resumen compacto debajo del título (destino · fechas · duración · precio) */
.yg-hero__summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-bottom: 26px;
  font-size: .95rem;
  opacity: .92;
  color: #fff;
}

.yg-hero__summary-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.yg-hero__summary-item--price {
  font-weight: 700;
  font-size: 1.05rem;
  background: rgba(255, 255, 255, .15);
  padding: 3px 10px;
  border-radius: 99px;
}

/* Precio + CTA */
.yg-hero__cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.yg-hero__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.yg-hero__price-label {
  font-size: .9rem;
  opacity: .75;
}

.yg-hero__price-value {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1;
}

/* Botón hero */
.yg-btn-hero {
  display: inline-block;
  padding: 14px 32px;
  background: var(--yg-accent);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}

.yg-btn-hero:hover {
  background: var(--yg-accent-dk);
  transform: translateY(-2px);
  color: #fff;
}

@media (max-width: 640px) {
  .yg-hero {
    min-height: 380px;
    height: auto;
  }

  .yg-hero__container {
    padding-bottom: 32px;
  }

  .yg-hero__price-value {
    font-size: 1.7rem;
  }

  .yg-btn-hero {
    width: 100%;
    text-align: center;
  }
}

/* ══════════════════════════════════════════════════════════
   2. BODY: 2 COLUMNAS
   ══════════════════════════════════════════════════════════ */
.yg-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--yg-sidebar-w);
  gap: 48px;
  align-items: start;
  padding-top: 40px;
  padding-bottom: 60px;
}

/* ── Tab nav ────────────────────────────────────────────── */
.yg-tab-nav {
  display: flex;
  gap: 0;
  overflow-x: auto;
  border-bottom: 2px solid var(--yg-border);
  margin-bottom: 36px;
  scrollbar-width: none;
}

.yg-tab-nav::-webkit-scrollbar {
  display: none;
}

.yg-tab-nav__link {
  flex-shrink: 0;
  padding: 10px 18px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--yg-muted);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}

.yg-tab-nav__link:hover,
.yg-tab-nav__link.active {
  color: var(--yg-accent);
  border-bottom-color: var(--yg-accent);
}

/* ── Secciones ──────────────────────────────────────────── */
.yg-section {
  margin-bottom: 56px;
}

.yg-section__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--yg-dark);
  margin: 0 0 24px;
  padding-left: 14px;
  border-left: 4px solid var(--yg-accent);
  line-height: 1.2;
}

/* ── Prosa ──────────────────────────────────────────────── */
.yg-prose {
  line-height: 1.75;
  color: var(--yg-text);
}

.yg-prose p {
  margin-bottom: 1em;
}

.yg-prose ul {
  padding-left: 1.3rem;
}

.yg-prose li {
  margin-bottom: .4em;
}

/* ── Incluye / No incluye ───────────────────────────────── */
.yg-inc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.yg-inc-block {
  border-radius: var(--yg-radius);
  padding: 20px 22px;
  border: 1px solid var(--yg-border);
}

.yg-inc-block--yes {
  background: #f0faf4;
  border-color: #b7e1c0;
}

.yg-inc-block--no {
  background: #fff5f5;
  border-color: #f5c0c0;
}

.yg-inc-block__heading {
  font-weight: 700;
  margin: 0 0 14px;
  font-size: 1rem;
}

.yg-inc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.yg-inc-list li {
  padding: 5px 0;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  font-size: .95rem;
}

.yg-inc-list li:last-child {
  border-bottom: none;
}

.yg-inc-block--yes .yg-inc-list li::before {
  content: "✅ ";
}

.yg-inc-block--no .yg-inc-list li::before {
  content: "❌ ";
}

/* ── Detalles: chips ────────────────────────────────────── */
.yg-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.yg-detail-group__label {
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--yg-muted);
  margin-bottom: 10px;
}

.yg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.yg-chip {
  display: inline-block;
  padding: 5px 13px;
  border-radius: 99px;
  border: 1px solid var(--yg-border);
  font-size: .85rem;
  background: var(--yg-bg-soft);
  color: var(--yg-text);
}

/* ── Acordeón (política cancelación) ───────────────────── */
.yg-accordion {
  border: 1px solid var(--yg-border);
  border-radius: 8px;
  overflow: hidden;
}

.yg-accordion__trigger {
  display: block;
  padding: 14px 18px;
  font-weight: 600;
  cursor: pointer;
  background: var(--yg-bg-soft);
  list-style: none;
  user-select: none;
}

.yg-accordion__trigger::-webkit-details-marker {
  display: none;
}

.yg-accordion__trigger::after {
  content: " ▾";
  float: right;
  transition: transform .2s;
}

.yg-accordion[open] .yg-accordion__trigger::after {
  transform: rotate(-180deg);
}

.yg-accordion__body {
  padding: 16px 18px;
  font-size: .95rem;
  line-height: 1.7;
  color: var(--yg-text);
  border-top: 1px solid var(--yg-border);
}

/* ── Timeline / Programa ────────────────────────────────── */
.yg-timeline {
  border-left: 2px solid var(--yg-border);
  padding-left: 24px;
  margin-left: 8px;
}

.yg-timeline__day {
  position: relative;
  margin-bottom: 36px;
}

.yg-timeline__day::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 8px;
  width: 10px;
  height: 10px;
  background: var(--yg-accent);
  border-radius: 50%;
}

.yg-timeline__badge {
  display: inline-block;
  padding: 5px 14px;
  background: var(--yg-bg-soft);
  border-radius: 6px;
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 14px;
}

.yg-schedule {
  list-style: none;
  padding: 0;
  margin: 0;
}

.yg-schedule__item {
  display: flex;
  gap: 16px;
  margin-bottom: 10px;
}

.yg-schedule__time {
  flex-shrink: 0;
  min-width: 64px;
  font-weight: 600;
  font-size: .85rem;
  color: var(--yg-muted);
  padding-top: 2px;
}

.yg-schedule__info strong {
  display: block;
  font-size: .95rem;
}

.yg-schedule__info p {
  margin: 4px 0 0;
  font-size: .88rem;
  color: var(--yg-muted);
}

/* ── Profesores ─────────────────────────────────────────── */
.yg-team {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}

.yg-team__card {
  border: 1px solid var(--yg-border);
  border-radius: var(--yg-radius);
  overflow: hidden;
  background: #fff;
  text-align: center;
}

.yg-team__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.yg-team__img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--yg-bg-soft);
  font-size: 3rem;
}

.yg-team__info {
  padding: 16px;
}

.yg-team__info h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
}

.yg-team__info p {
  font-size: .88rem;
  color: var(--yg-muted);
  margin: 0;
}

/* ── Galería ────────────────────────────────────────────── */
.yg-gallery-wrap {
  position: relative;
}

.yg-gallery-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.yg-gallery-scroll::-webkit-scrollbar {
  display: none;
}

.yg-gallery__item {
  flex: 0 0 auto;
  width: 280px;
  height: 200px;
  border-radius: 10px;
  overflow: hidden;
  scroll-snap-align: start;
  display: block;
  transition: transform .25s;
}

.yg-gallery__item:hover {
  transform: scale(1.02);
}

.yg-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.yg-gallery__item:hover img {
  transform: scale(1.05);
}

.yg-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .18);
  cursor: pointer;
  z-index: 5;
  font-size: 16px;
  color: var(--yg-dark);
  transition: background .2s, transform .2s;
}

.yg-gallery-nav:hover {
  background: var(--yg-accent);
  color: #fff;
  transform: translateY(-50%) scale(1.08);
}

.yg-gallery-nav--prev {
  left: -18px;
}

.yg-gallery-nav--next {
  right: -18px;
}

/* ── Lightbox ───────────────────────────────────────────── */
.yg-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, .92);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  animation: yg-fadein .25s;
}

.yg-lightbox.is-open {
  display: flex;
}

@keyframes yg-fadein {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.yg-lightbox__close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 44px;
  cursor: pointer;
  line-height: 1;
  opacity: .8;
  transition: opacity .2s;
}

.yg-lightbox__close:hover {
  opacity: 1;
}

.yg-lightbox__img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 6px;
  box-shadow: 0 0 60px rgba(0, 0, 0, .5);
  animation: yg-zoomin .25s;
}

@keyframes yg-zoomin {
  from {
    transform: scale(.92);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ══════════════════════════════════════════════════════════
   3. SIDEBAR BOOKING CARD
   ══════════════════════════════════════════════════════════ */
.yg-sidebar {
  position: sticky;
  top: 90px;
}

.yg-booking-card {
  background: #fff;
  border: 1px solid var(--yg-border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .07);
}

.yg-booking-price {
  text-align: center;
  margin-bottom: 4px;
}

.yg-booking-price__label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--yg-muted);
  font-weight: 600;
  display: block;
}

.yg-booking-price__value {
  display: block;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--yg-dark);
  letter-spacing: -.03em;
  line-height: 1.1;
}

.yg-booking-price__suffix {
  display: block;
  font-size: .85rem;
  color: var(--yg-muted);
  margin-top: 2px;
}

.yg-booking-price__microcopy {
  display: block;
  font-size: .8rem;
  color: var(--yg-accent);
  margin-top: 6px;
  font-weight: 600;
}

.yg-booking-trust {
  text-align: center;
  font-size: .8rem;
  color: var(--yg-muted);
  margin: 8px 0 0;
  opacity: .85;
}

.yg-booking-divider {
  border: none;
  border-top: 1px solid var(--yg-border);
  margin: 18px 0;
}

.yg-booking-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
}

.yg-booking-meta li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--yg-border);
  font-size: .9rem;
  color: var(--yg-text);
}

.yg-booking-meta li:last-child {
  border-bottom: none;
}

.yg-booking-meta__icon {
  flex-shrink: 0;
}

/* Botones del sidebar */
.yg-booking-ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.yg-btn {
  display: block;
  text-align: center;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .2s;
  cursor: pointer;
}

.yg-btn:hover {
  transform: translateY(-1px);
}

.yg-btn--primary {
  background: var(--yg-accent);
  color: #fff;
}

.yg-btn--primary:hover {
  background: var(--yg-accent-dk);
  color: #fff;
  box-shadow: 0 4px 14px rgba(232, 93, 80, .35);
}

.yg-btn--whatsapp {
  background: #25d366;
  color: #fff;
}

.yg-btn--whatsapp:hover {
  background: #1da851;
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, .3);
}

.yg-btn--outline {
  background: transparent;
  color: var(--yg-dark);
  border: 2px solid var(--yg-border);
}

.yg-btn--outline:hover {
  border-color: var(--yg-dark);
  color: var(--yg-dark);
}

.yg-btn--large {
  padding: 16px 28px;
  font-size: 1.05rem;
}

.yg-booking-no-contact {
  font-size: .9rem;
  color: var(--yg-muted);
  text-align: center;
  margin: 0;
}

.yg-booking-cancellation {
  margin: 14px 0 0;
  text-align: center;
}

.yg-booking-cancellation__link {
  color: var(--yg-muted);
}

/* ══════════════════════════════════════════════════════════
   4. CTA FINAL
   ══════════════════════════════════════════════════════════ */
.yg-cta-final {
  background: var(--yg-dark);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}

.yg-cta-final__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
}

.yg-cta-final__text h2 {
  font-size: 1.9rem;
  font-weight: 800;
  margin: 0 0 8px;
  color: #fff;
}

.yg-cta-final__text p {
  margin: 0;
  opacity: .75;
  font-size: 1rem;
}

.yg-cta-final__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.yg-cta-final__price {
  font-size: .9rem;
  opacity: .65;
}

/* ══════════════════════════════════════════════════════════
   5. RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .yg-body {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 24px;
  }

  /* Sidebar se convierte en bloque normal, debajo del contenido */
  .yg-sidebar {
    position: static;
    order: -1;
    /* sube arriba en móvil */
  }

  .yg-booking-card {
    /* Vista compacta horizontal en tablet */
    padding: 20px;
  }

  .yg-hero {
    min-height: 340px;
    height: auto;
  }

  .yg-cta-final__inner {
    flex-direction: column;
    text-align: center;
  }

  .yg-cta-final__text h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 640px) {
  .yg-gallery__item {
    width: 240px;
    height: 170px;
  }

  .yg-team {
    grid-template-columns: 1fr 1fr;
  }

  .yg-inc-grid {
    grid-template-columns: 1fr;
  }

  .yg-details-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Prevent horizontal scroll globally */
body,
html {
  overflow-x: hidden;
}

/* =========================================================
   LOGIN & REGISTER FORMS ([yg_login] & [yg_registro])
   ========================================================= */

/* Register Container */
.yg-register-container {
  display: flex;
  flex-wrap: wrap;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  max-width: 900px;
  margin: 40px auto;
  border: 1px solid #eee;
}

/* Form Column (Left) */
.yg-register-form-col {
  flex: 1 1 50%;
  padding: 40px;
  min-width: 300px;
}

.yg-register-form-col h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
  font-size: 1.8em;
}

.yg-form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.yg-form-row input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  width: 100%;
}

.yg-required-note {
  font-size: 0.85em;
  color: #777;
  margin-bottom: 15px;
}

.yg-legal-checks {
  margin-bottom: 25px;
}

.yg-legal-checks label {
  display: block;
  font-size: 0.9em;
  color: #555;
  margin-bottom: 8px;
  cursor: pointer;
}

.yg-legal-checks input[type="checkbox"] {
  margin-right: 8px;
}

.yg-submit-btn {
  width: 100%;
  background-color: #ffb400;
  /* Inspira yellow/orange */
  color: #fff;
  border: none;
  padding: 14px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

.yg-submit-btn:hover {
  background-color: #e5a200;
}

.yg-login-link {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9em;
}

/* Promo Column (Right) */
.yg-register-promo-col {
  flex: 1 1 40%;
  background-size: cover;
  background-position: center;
  min-height: 400px;
  position: relative;
  display: flex;
  align-items: flex-end;
}

.yg-register-promo-col::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.7));
}

.yg-promo-content {
  position: relative;
  z-index: 2;
  padding: 30px;
  color: #fff;
}

.yg-promo-content h3 {
  color: #ffb400;
  margin-bottom: 10px;
  font-size: 1.6em;
}

.yg-promo-content p {
  font-size: 1em;
  line-height: 1.5;
  color: #f0f0f0;
}

/* Messages */
.yg-message {
  padding: 15px;
  margin-bottom: 25px;
  border-radius: 4px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.yg-message.error {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ffcdd2;
}

.yg-message.success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

/* Login Form Specifics */
#yg-login-form {
  max-width: 400px;
  margin: 0 auto;
  padding: 30px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

#yg-login-form p {
  margin-bottom: 15px;
}

#yg-login-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

#yg-login-form input[type="text"],
#yg-login-form input[type="password"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

#yg-login-form input[type="submit"] {
  width: 100%;
  background: #ffb400;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  margin-top: 10px;
}

#yg-login-form input[type="submit"]:hover {
  background: #e5a200;
}

.yg-login-links {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9em;
}

/* Responsive Forms */
@media (max-width: 768px) {
  .yg-register-container {
    flex-direction: column;
  }

  .yg-form-row {
    flex-direction: column;
    gap: 10px;
  }

  .yg-register-promo-col {
    min-height: 200px;
    order: -1;
  }
}


/* =========================================================
   SEARCH & FILTER LAYOUT (archive-retiro.php)
   ========================================================= */

/* Main Container */
.yg-archive-container {
  display: flex;
  gap: 40px;
  margin-top: 30px;
  position: relative;
}

/* Filters Sidebar */
.yg-filters {
  flex: 0 0 250px;
  background: #fdfdfd;
  padding: 25px;
  border: 1px solid #eee;
  border-radius: 8px;
  height: fit-content;
  position: sticky;
  top: 100px;
  /* Adjusted for sticky header */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  /* Subtle shadow */
  transition: all 0.3s ease;
}

.yg-results-wrapper {
  flex: 1;
}

/* Filters Typography & Inputs */
.yg-filters h3 {
  margin-top: 0;
  font-size: 1.2rem;
  border-bottom: 2px solid #ffb400;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.yg-filter-group {
  margin-bottom: 20px;
}

.yg-filter-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: #555;
}

.yg-filter-group select,
.yg-filter-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  transition: border-color 0.3s;
}

.yg-filter-group select:focus,
.yg-filter-group input:focus {
  border-color: #ffb400;
  outline: none;
}

.yg-btn-clean {
  background: none;
  border: none;
  color: #999;
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0;
  transition: color 0.3s;
}

.yg-btn-clean:hover {
  color: #333;
}

/* Filter Loading State */
/* Filter Loading State */
.yg-loading {
  opacity: 0.6;
  pointer-events: none;
  transition: opacity 0.3s;
  position: relative;
  min-height: 200px;
}

.yg-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #ffb400;
  /* Inspira color */
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 10;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Optional: Add spinner if needed */

/* Responsive Filters */
@media (max-width: 900px) {
  .yg-archive-container {
    flex-direction: column;
  }

  .yg-filters {
    position: static;
    width: 100%;
    margin-bottom: 30px;
  }
}

/* Fix truncated year in datepicker */
.ui-datepicker select.ui-datepicker-year,
.ui-datepicker select.ui-datepicker-month {
  width: auto !important;
  padding-right: 20px !important;
}

/* Inclusiones List Styles */
.check-list,
.cross-list {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}

.check-list li,
.cross-list li {
  margin-bottom: 6px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* Hide old inclusion fields (Text Areas) */
.acf-field[data-name='inclusiones'],
.acf-field[data-name='no_inclusiones'],
.acf-field[data-key='field_inclusiones'],
.acf-field[data-key='field_no_inclusiones'] {
  display: none !important;
}