/* Landings públicas (Legal, FAQs, Promociones) */
.aether-landing-resumen {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.aether-landing-figure {
  margin: 0;
}

.aether-landing-figure img {
  width: 100%;
  height: auto;
}

/* Legal */
.aether-landing-legal-hero {
  background: #E40046;
  color: #fff;
  padding: 3rem 0;
}

.aether-landing-legal-hero h1 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.aether-landing-legal-hero__sub {
  opacity: 0.92;
  max-width: 36rem;
  margin: 0 auto;
}

.aether-landing-legal-hero.is-left .aether-landing-legal-hero__sub {
  margin-left: 0;
  margin-right: auto;
}

.aether-landing-title-plain {
  padding-top: 3.75rem;
  padding-bottom: 1rem;
}

.aether-landing-title-plain .aether-vlog-title {
  margin-top: 0;
}

/* Sin banner y sin barra roja: el logo baja de la barra y el título quedaba pegado. */
.aether-landing-page:not(.aether-landing-destino):not(:has(.aether-vlog-banner)):not(:has(.aether-landing-legal-hero)):not(:has(.aether-landing-title-plain)) > .clic-section.ae-py-8 {
  padding-top: 3.75rem;
}

.aether-landing-legal__content {
  max-width: 52rem;
  margin: 0 auto;
}

.aether-landing-intro {
  background: var(--ae-surface, #fff);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  line-height: 1.7;
}

.aether-landing-contrato-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(228, 0, 70, 0.06), rgba(228, 0, 70, 0.02));
  border: 2px solid rgba(228, 0, 70, 0.2);
  border-radius: 16px;
  padding: 1.75rem;
  margin-bottom: 2rem;
}

.aether-landing-contrato-card__icon {
  font-size: 2.5rem;
  color: var(--ae-primary, #e40046);
  line-height: 1;
}

.aether-pdf-modal[hidden] { display: none !important; }
.aether-pdf-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.72);
}
.aether-pdf-modal__panel {
  width: min(960px, 100%);
  height: min(86vh, 900px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
}
.aether-pdf-modal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e7eb;
}
.aether-pdf-modal__bar h2 {
  margin: 0;
  font-size: 1rem;
}
.aether-pdf-modal iframe {
  flex: 1 1 auto;
  width: 100%;
  border: 0;
  background: #f8fafc;
}

.aether-landing-accordion .accordion-item {
  border-radius: 12px !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--ae-border, #e5e7eb);
}

.aether-landing-accordion .accordion-item.is-contrato {
  border-color: rgba(228, 0, 70, 0.35);
}

.aether-landing-accordion .accordion-button {
  font-weight: 700;
  padding: 1.1rem 1.25rem;
}

.aether-landing-accordion .accordion-button:not(.collapsed) {
  background: rgba(228, 0, 70, 0.05);
  color: var(--ae-primary, #e40046);
  box-shadow: none;
}

.aether-landing-accordion .accordion-button .aether-landing-accordion__icon {
  color: #e40046;
}

.aether-landing-adjunto {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  background: var(--ae-muted, #f3f4f6);
  border: 1px solid var(--ae-border, #e5e7eb);
  border-radius: 8px;
  color: var(--ae-primary, #e40046);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.15s, border-color 0.15s;
}

.aether-landing-adjunto:hover {
  background: rgba(228, 0, 70, 0.08);
  border-color: var(--ae-primary, #e40046);
  color: #b8003a;
}

/* Cards landing */
.ae-grid-landing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 20rem));
  justify-content: center;
  align-items: stretch;
  gap: 1.25rem;
}
/* Acordeón: la fila no estira a las hermanas; JS iguala solo las colapsadas. */
.ae-grid-landing-cards:has(.aether-landing-card--expand) {
  align-items: start;
}
.ae-grid-landing-cards:has(.aether-landing-card--expand) .aether-landing-card {
  height: auto;
  min-height: 0;
}
.ae-grid-landing-cards > * {
  width: 100%;
  max-width: 20rem;
  justify-self: center;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-sizing: border-box;
}
.ae-grid-landing-cards[data-n="1"] {
  grid-template-columns: minmax(16rem, 22rem);
}
.ae-grid-landing-cards[data-n="1"] > * {
  max-width: 22rem;
}
.ae-grid-landing-cards[data-n="2"] {
  grid-template-columns: repeat(auto-fill, minmax(16rem, 20rem));
}
@media (min-width: 768px) {
  .ae-grid-landing-cards {
    gap: 1.5rem;
  }
}

.aether-card-media--square {
  aspect-ratio: 1 / 1;
}

.aether-landing-card,
.aether-landing-card.ae-block {
  min-height: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.aether-landing-card .ae-p-4 {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  overflow-wrap: break-word;
}

.aether-landing-card__media-link {
  display: block;
  color: inherit;
  overflow: hidden;
}

.aether-landing-card .aether-card-media {
  overflow: hidden;
  border-top-left-radius: 1.25rem;
  border-top-right-radius: 1.25rem;
}

.aether-landing-card .aether-card-media::after {
  content: none;
}

.aether-landing-page .ae-grid-landing-cards,
.aether-landing-page .aether-landing-accordion {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

/* MIXED: el contenido solo ubica el bloque; el tamaño es el de CARDS / FAQ. */
.aether-landing-mixed-block {
  width: 100%;
  text-align: left;
}
.aether-landing-mixed-block--cards {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}
.aether-landing-mixed-block--faqs {
  max-width: none;
}

.aether-landing-cards.is-centered .aether-vlog-body,
.aether-landing-legal.is-centered .aether-landing-intro,
.aether-landing-legal.is-centered .aether-vlog-body,
.aether-landing-faqs.is-centered .aether-landing-intro,
.aether-landing-faqs.is-centered .aether-vlog-body {
  text-align: center;
}

.aether-landing-cards.is-centered .aether-vlog-body ul,
.aether-landing-cards.is-centered .aether-vlog-body ol,
.aether-landing-legal.is-centered .aether-vlog-body ul,
.aether-landing-legal.is-centered .aether-vlog-body ol,
.aether-landing-faqs.is-centered .aether-vlog-body ul,
.aether-landing-faqs.is-centered .aether-vlog-body ol {
  text-align: left;
  display: inline-block;
}

.aether-landing-card-accordion {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.aether-landing-card-accordion .accordion-item,
.aether-landing-card-accordion .accordion-header {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  background: transparent;
}

.aether-landing-card-accordion .accordion-button {
  font-weight: 600;
  font-size: 1rem;
  box-shadow: none;
  flex: 1 1 auto;
  align-items: center;
  white-space: normal;
}

.aether-landing-card-accordion .accordion-button:not(.collapsed) {
  background: hsl(var(--surface));
  color: hsl(var(--foreground));
  flex: 0 0 auto;
  align-items: flex-start;
}

.aether-landing-card--expand:has(.accordion-collapse.show) .aether-landing-card-accordion,
.aether-landing-card--expand:has(.accordion-collapse.show) .accordion-item,
.aether-landing-card--expand:has(.accordion-collapse.show) .accordion-header {
  flex: 0 1 auto;
}

.aether-landing-cards__content {
  max-width: 72rem;
  margin: 0 auto;
}

/* Landing destino — hero + buscador superpuesto */
.aether-destino-hero {
  position: relative;
  margin-bottom: 2.75rem;
}

.aether-destino-hero .aether-vlog-banner {
  margin-bottom: 0;
  max-height: min(380px, 48vw);
  min-height: 220px;
  aspect-ratio: 16 / 9;
}

.aether-destino-hero__fallback {
  min-height: 180px;
  background: linear-gradient(
    135deg,
    hsl(var(--primary) / 0.85) 0%,
    hsl(0 0% 12%) 100%
  );
}

.aether-destino-hero__dock {
  position: relative;
  z-index: 12;
  margin-top: clamp(-12.5rem, -24vw, -8rem);
  padding-bottom: 0.25rem;
}

.aether-destino-hero__intro {
  margin-bottom: 0.65rem;
  padding-top: 0.15rem;
}

.aether-destino-hero__intro .aether-vlog-title {
  color: hsl(0 0% 100%);
  text-shadow: 0 2px 16px hsl(0 0% 0% / 0.55);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.28;
  overflow: visible;
  padding-top: 0.08em;
}

.aether-destino-hero__intro .aether-landing-resumen {
  color: hsl(0 0% 100% / 0.92);
  text-shadow: 0 1px 10px hsl(0 0% 0% / 0.45);
  font-size: 1rem;
  max-width: 42rem;
}

.aether-destino-hero__search {
  position: relative;
  z-index: 2;
}

.aether-search-root--destino .aether-search-tabs {
  position: relative;
  z-index: 3;
  margin-bottom: -1px;
}

.aether-search-root--destino .aether-search-tab {
  background: hsl(var(--surface) / 0.92);
  backdrop-filter: blur(6px);
}

.aether-search-root--destino .aether-search-tab.is-active {
  background: hsl(var(--surface));
}

.aether-destino-hero__search .aether-search-card {
  box-shadow: 0 18px 48px hsl(0 0% 0% / 0.2);
  position: relative;
  z-index: 2;
}

/* Landing destino — frecuencias semanales */
.aether-freq-card {
  padding: 1.35rem 1.5rem;
  border-radius: 1.25rem;
  border: 1.5px solid hsl(var(--primary));
  background: #fff;
}

.aether-freq-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.aether-freq-dest-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: hsl(var(--primary));
  background: #fff;
  border: 1px solid hsl(var(--primary));
}

.aether-freq-week {
  display: none;
}

.aether-freq-group + .aether-freq-group {
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid hsl(var(--border));
}

.aether-freq-group-title {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--primary));
}

.aether-freq-week-spacer {
  display: block;
}

.aether-freq-weekday {
  text-align: center;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: hsl(var(--muted-foreground));
}

.aether-freq-origins {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.aether-freq-origin-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 1.05rem;
  border-radius: 1rem;
  border: 1.5px solid hsl(var(--primary));
  background: #fff;
  box-shadow: none;
}

.aether-freq-origin-row {
  display: grid;
  grid-template-columns: minmax(7rem, 9rem) repeat(7, minmax(2rem, 1fr));
  gap: 0.35rem;
  align-items: center;
}

.aether-freq-origin-label {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.2;
  font-size: 0.8rem;
}

.aether-freq-desde {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #111;
}

.aether-freq-desde-ciudad {
  color: hsl(var(--primary));
}

.aether-freq-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.4rem;
}

.aether-freq-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.08rem;
  min-height: 2.65rem;
  border-radius: 0.55rem;
  font-size: 0.62rem;
  font-weight: 700;
  border: 1px solid hsl(var(--border));
}

.aether-freq-day-label {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

.aether-freq-day-count {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
}

.aether-freq-day-plane {
  font-size: 0.92rem;
  line-height: 1;
}

.aether-freq-day.is-inactive {
  color: hsl(var(--muted-foreground) / 0.65);
  background: hsl(var(--muted) / 0.65);
  border-color: hsl(var(--border));
  opacity: 1;
}

.aether-freq-day.is-inactive .aether-freq-day-label {
  opacity: 0.5;
}

.aether-freq-day-x {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  color: hsl(var(--muted-foreground) / 0.85);
}

.aether-freq-day.is-active {
  color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.08);
  border-color: hsl(var(--primary) / 0.35);
  box-shadow: 0 2px 8px hsl(var(--primary) / 0.12);
}

.aether-freq-day.is-active .aether-freq-day-count,
.aether-freq-day.is-active .aether-freq-day-plane {
  color: hsl(var(--primary));
}

@media (max-width: 640px) {
  .aether-freq-origin-row {
    grid-template-columns: minmax(5.5rem, 7rem) repeat(7, minmax(1.6rem, 1fr));
    gap: 0.25rem;
  }

  .aether-freq-origin-card {
    padding: 0.75rem 0.7rem;
  }

  .aether-freq-days {
    gap: 0.25rem;
  }

  .aether-freq-day {
    min-height: 1.75rem;
    font-size: 0.55rem;
    border-radius: 0.4rem;
  }

  .aether-freq-weekday {
    font-size: 0.58rem;
  }
}

/* Modo oscuro — landings / legales / cards */
html.dark .aether-landing-resumen,
html.dark .aether-landing-cards__content,
html.dark .aether-landing-legal__content,
html.dark .aether-landing-intro,
html.dark .aether-destino-hero__intro {
  color: hsl(var(--foreground));
}

html.dark .aether-landing-intro {
  background: hsl(var(--surface));
  box-shadow: none;
}

html.dark .aether-landing-contrato-card {
  background: hsl(var(--primary) / 0.12);
  border-color: hsl(var(--primary) / 0.35);
  color: hsl(var(--foreground));
}

html.dark .aether-landing-accordion .accordion-item {
  border-color: hsl(var(--border));
  background: hsl(var(--card));
}

html.dark .aether-landing-accordion .accordion-button {
  background: hsl(var(--card));
  color: hsl(var(--foreground));
}

html.dark .aether-landing-accordion .accordion-button:not(.collapsed) {
  background: hsl(var(--primary) / 0.12);
  color: hsl(var(--primary));
}

html.dark .aether-landing-accordion .accordion-body {
  background: hsl(var(--card));
  color: hsl(var(--foreground));
}

html.dark .aether-landing-adjunto {
  background: hsl(var(--muted));
  border-color: hsl(var(--border));
  color: hsl(var(--primary));
}

html.dark .aether-landing-card {
  background: hsl(var(--card));
  color: hsl(var(--foreground));
}

html.dark .aether-freq-origin-card {
  background: hsl(var(--card));
  border-color: hsl(var(--primary));
}

html.dark .aether-freq-desde {
  color: hsl(var(--foreground));
}

html.dark .aether-freq-card {
  background: hsl(var(--card));
  border-color: hsl(var(--primary));
}

html.dark .aether-freq-dest-badge {
  background: hsl(var(--card));
  border-color: hsl(var(--primary));
  color: hsl(var(--primary));
}

