﻿:root {
  color-scheme: dark;
  --color-primary: #fe9200;
  --color-accent: #000000;
  --color-text: #ffffff;
  --color-muted: #111111;
  --font-heading: "Fredoka One", sans-serif;
  --font-body: "Poppins", sans-serif;
  --max-width: 960px;
  --card-radius: 28px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: var(--font-body);
  background: var(--color-accent);
  color: var(--color-text);
}

/* Fondo global detrás de todo */
body {
  position: relative;
  overflow-x: hidden;
  /* podés dejar el color para el caso "Ninguno" */
  background: var(--color-accent);
}

/* Capas de fondo (visibles) */
#background-media,
#background-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;   /* no bloquean clics */
}

#background-media { z-index: 0; }
#background-overlay { z-index: 1; }

/* Contenido arriba */
.site-shell { position: relative; z-index: 2; }

/* Que el video/imagen ocupen todo y recorten bien */
#background-media > video,
#background-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Cuando el fondo se renderiza con createImg (frame + <img>), forzar a cubrir */
#background-media [data-img-frame] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#background-media [data-img-frame] > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

[data-img-frame] {
  position: relative;
  overflow: hidden;
  display: block;
}

[data-img-frame] > img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform-origin: center center;
}

[data-img-frame][data-fit="contain"] > img {
  object-fit: contain;
}

[data-img-frame][data-fit="cover"] > img {
  object-fit: cover;
}

[data-img-frame][data-fit="fill"] > img {
  object-fit: fill;
}

[data-img-frame][data-fit="scale-down"] > img {
  object-fit: scale-down;
}

[data-img-frame][data-crop-mode="legacy-transform"] > img,
[data-img-frame][data-crop-mode="custom-transform"] > img {
  will-change: transform;
}

.site-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.top-nav__brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
}

.top-nav__links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.top-nav__links a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.top-nav__links a.is-active,
.top-nav__links a:hover {
  background: rgba(255, 255, 255, 0.15);
}

main {
  flex: 1;
}

.section-wrapper {
  position: relative;
  padding: 1rem 1.5rem 4rem;
}

.section-wrapper:first-of-type {
  padding-top: 0;
}

.section {
  max-width: var(--max-width);
  margin: 0 auto 3rem;
  padding: 2.5rem;
  border-radius: var(--card-radius);
  background: rgba(17, 17, 17, 0.68);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

.section--hero {
  padding: clamp(1.5rem, 4vw, 2rem) clamp(1.5rem, 4vw, 2rem);
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 5vw, 2.625rem);
  line-height: 1.15;
  margin: 0;
}

.hero__subtitle {
  font-size: 1.2rem;
  margin: clamp(0.35rem, 2vw, 0.55rem) 0 0;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.button--primary {
  background: var(--color-primary);
  color: #111;
  box-shadow: 0 12px 30px rgba(254, 146, 0, 0.35);
}

.button--ghost {
  background: rgba(255,255,255,0.08);
  color: var(--color-text);
  border: 1px solid rgba(255,255,255,0.15);
}

.button:hover {
  transform: translateY(-1px);
}

.section--textoInformativo {
  text-align: center;
}

.section--textoInformativo h2 {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  margin-bottom: 1.5rem;
}

.section--textoInformativo p {
  margin: 0.5rem 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.86);
}

/* Texto corto en dos columnas */
.section--textoInformativo.ts-two .ts-grid {
  display: grid;
  gap: clamp(1rem, 3vw, 1.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .section--textoInformativo.ts-two .ts-grid { grid-template-columns: 1fr 1fr; }
}
.section--textoInformativo.ts-two .ts-col h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  font-family: var(--font-heading);
}
.text-short-slide h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1.25rem;
  font-family: var(--font-heading);
}
.text-short-slide p { margin: 0; line-height: 1.7; }

/* Dos columnas dentro de slides de texto corto */
.text-short-slide.ts-two .ts-grid {
  display: grid;
  gap: clamp(1rem, 3vw, 1.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .text-short-slide.ts-two .ts-grid { grid-template-columns: 1fr 1fr; }
}
.text-short-slide.ts-two .ts-col h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  font-family: var(--font-heading);
}

.section--opcionesCompra h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 1.75rem;
  text-align: center;
}

.link-cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.link-card {
  position: relative;
  padding: 1.75rem;
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.45);
}

.link-card [data-img-frame] {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  margin-bottom: 1rem;
}

.link-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.link-card__subtitle {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
}

/* Controles de vista en OpcionesCompra */
.section--opcionesCompra .section__controls {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.section--opcionesCompra .view-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.10);
  color: var(--color-text);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.section--opcionesCompra .view-toggle:hover,
.section--opcionesCompra .view-toggle[aria-pressed="true"] {
  background: var(--color-primary);
  color: #111;
  border-color: transparent;
  box-shadow: 0 10px 26px rgba(254, 146, 0, 0.35);
}

/* Vista lista para OpcionesCompra */
.section--opcionesCompra .link-cards.is-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem; /* más compacto entre items */
}
.section--opcionesCompra .link-cards.is-list .link-card {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr); /* imagen un poco más chica */
  align-items: start;
  gap: 0.5rem 0.85rem; /* compactar espacio interior */
  padding: 1.2rem; /* reducir padding en modo lista */
}
.section--opcionesCompra .link-cards.is-list .link-card [data-img-frame] {
  width: 80px; /* imagen más chica */
  aspect-ratio: 1 / 1;
  margin: 0; /* sin margen inferior en modo lista */
  border-radius: 10px;
  grid-column: 1;
  grid-row: 1 / span 2;
}
.section--opcionesCompra .link-cards.is-list .link-card__title {
  margin: 0 0 0.15rem 0; /* título un poco más cerca del texto */
  grid-column: 2;
  grid-row: 1;
}
.section--opcionesCompra .link-cards.is-list .link-card__subtitle {
  margin: 0;
  grid-column: 2;
  grid-row: 2;
  /* una sola línea con puntos suspensivos */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 480px) {
  .section--opcionesCompra .link-cards.is-list .link-card {
    grid-template-columns: 72px minmax(0, 1fr);
    padding: 1.05rem;
  }
  .section--opcionesCompra .link-cards.is-list .link-card [data-img-frame] {
    width: 72px;
  }
  .section--opcionesCompra .link-cards.is-list .link-card__title {
    font-size: 1.1rem;
    line-height: 1.2;
    /* una sola línea con ellipsis para no superar alto de la foto */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .section--opcionesCompra .link-cards.is-list .link-card__subtitle {
    font-size: 0.95rem;
    line-height: 1.2;
    /* ya es una línea con ellipsis por defecto; reforzamos */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
/* Al pasar el mouse o enfocar con teclado, mostrar el texto completo */
.section--opcionesCompra .link-cards.is-list .link-card:hover .link-card__subtitle,
.section--opcionesCompra .link-cards.is-list .link-card:focus-within .link-card__subtitle {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.section--galeriaImagenes .image-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  grid-template-columns: minmax(0, 1fr);
}

.section--galeriaImagenes .image-card {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}

@media (min-width: 720px) {
  .section--galeriaImagenes .image-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center; /* centrar verticalmente media y contenido */
  }
  /* Asegurar misma fila y columnas explícitas como en DetalleVisual */
  .section--galeriaImagenes .image-card .image-card__media,
  .section--galeriaImagenes .image-card .image-card__content {
    grid-row: 1;
    align-self: center;
  }
  .section--galeriaImagenes .image-card .image-card__media { grid-column: 1; }
  .section--galeriaImagenes .image-card .image-card__content { grid-column: 2; }
  /* Invertir orden en desktop para modo Imagen + Texto */
  .section--galeriaImagenes .image-card.image-card--reverse .image-card__media { grid-column: 2; }
  .section--galeriaImagenes .image-card.image-card--reverse .image-card__content { grid-column: 1; }
  /* Dos medios lado a lado (Imagen + Imagen) */
  .section--galeriaImagenes .image-card.image-card--two-media {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
  }
  .section--galeriaImagenes .image-card.image-card--two-media .image-card__content {
    grid-column: 1 / -1;
  }
}

/* En móvil, apilar: imagen arriba, texto abajo (una columna) */
@media (max-width: 719px) {
  .section--galeriaImagenes .image-card {
    grid-template-columns: 1fr;
  }
  .section--galeriaImagenes .image-card .image-card__media,
  .section--galeriaImagenes .image-card .image-card__content {
    grid-column: 1;
    grid-row: auto;
  }
  .section--galeriaImagenes .image-card .image-card__media { grid-row: 1; }
  .section--galeriaImagenes .image-card .image-card__content { grid-row: 2; }
}

.section--galeriaImagenes .image-card__media {
  display: block;
  border-radius: 20px;
  overflow: hidden;
}

.section--galeriaImagenes .image-card__media [data-img-frame] {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  overflow: hidden;
}

.section--galeriaImagenes .image-card__media [data-img-frame] > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section--galeriaImagenes .image-card__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.section--galeriaImagenes .image-card__heading {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  margin: 0;
}

.section--galeriaImagenes .image-card__description {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #fff;
  text-align: justify;
  text-justify: inter-word;
}

/* (Regla específica de :last-child eliminada; ahora se justifica globalmente en .image-card__description) */

.section--imageCarousel h2 {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.section--imageCarousel p {
  text-align: center;
  color: #fff;
}

.carousel {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
}

.carousel [data-img-frame] {
  border-radius: 18px;
  width: clamp(190px, 32vw, 280px);
  aspect-ratio: 9 / 16;
  scroll-snap-align: center;
}

/* Carrusel de imágenes con comportamiento de slide como videos */
.section--imageCarousel .carousel {
  --ic-gap: 1.25rem;
  gap: var(--ic-gap);
  -webkit-overflow-scrolling: touch;
}
.section--imageCarousel .carousel::-webkit-scrollbar { display: none; }
.section--imageCarousel .carousel { scrollbar-width: none; }
.section--imageCarousel .carousel__item {
  flex: 0 0 calc((100% - 2 * var(--ic-gap)) / 3);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: grid;
  place-items: center;
}
.section--imageCarousel .carousel [data-img-frame] {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  display: block;
}
.section--imageCarousel .carousel [data-img-frame] > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
@media (min-width: 720px) {
  .section--imageCarousel .carousel.is-count-1,
  .section--imageCarousel .carousel.is-count-2 { justify-content: center; }
  .section--imageCarousel .carousel.is-count-1 .carousel__item,
  .section--imageCarousel .carousel.is-count-2 .carousel__item {
    flex-basis: calc((100% - 2 * var(--ic-gap)) / 3);
  }
}
@media (max-width: 719px) {
  .section--imageCarousel .carousel__item { flex: 0 0 100%; }
}

/* Carrusel de videos (misma UI que imágenes) */
.section--videoCarousel h2 {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.section--videoCarousel p { text-align: center; color: #fff; }
.section--videoCarousel .carousel {
  --vc-gap: 1.25rem;
  gap: var(--vc-gap);
  -webkit-overflow-scrolling: touch;
}
.section--videoCarousel .carousel::-webkit-scrollbar { display: none; }
.section--videoCarousel .carousel { scrollbar-width: none; }

.section--videoCarousel .carousel__item {
  flex: 0 0 calc((100% - 2 * var(--vc-gap)) / 3);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: grid;
  place-items: center; /* centrar contenido H y V */
}
.section--videoCarousel video {
  border-radius: 18px;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
}

/* Ajustes por cantidad (desktop) */
@media (min-width: 720px) {
  /* Mantener el mismo tamaño de item que en 3 columnas, pero centrado si hay 1 o 2 */
  .section--videoCarousel .carousel.is-count-1,
  .section--videoCarousel .carousel.is-count-2 { justify-content: center; }
  .section--videoCarousel .carousel.is-count-1 .carousel__item,
  .section--videoCarousel .carousel.is-count-2 .carousel__item {
    flex-basis: calc((100% - 2 * var(--vc-gap)) / 3);
  }
}

/* Móvil: siempre 1 video por vista con snap por video */
@media (max-width: 719px) {
  .section--videoCarousel .carousel__item { flex: 0 0 100%; }
}

/* Texto largo con encabezado desplegable */
.section--textoLargo details {
  border-radius: 16px;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0.75rem 1rem;
  max-width: 100%;
  box-sizing: border-box;
}
.section--textoLargo summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;              /* Permite que el contenido baje en móvil */
  gap: 0.25rem 0.5rem;          /* Espacio entre título y hint */
  overflow-wrap: anywhere;      /* Evita desborde de palabras largas */
  word-break: break-word;
}
.section--textoLargo summary::-webkit-details-marker { display: none; }
.section--textoLargo summary::after {
  content: '▾';
  margin-left: 0.5rem;
  transition: transform 0.2s ease;
}
.section--textoLargo details[open] summary::after { transform: rotate(180deg); }
.section--textoLargo .text-long__hint {
  opacity: 0.75;
  font-size: 0.95rem;
  margin-left: 0.5rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}
@media (max-width: 520px) {
  .section--textoLargo .text-long__hint {
    margin-left: 0;          /* Evita empuje lateral en pantallas chicas */
    flex: 1 1 100%;          /* Ocupa una línea completa debajo del título */
    font-size: 0.9rem;       /* Leve reducción para caber mejor */
  }
}
.section--textoLargo .text-long__content {
  margin-top: 0.75rem;
}
.section--textoLargo .text-long__content p {
  margin: 0.5rem 0;
  line-height: 1.8;
  text-align: justify;
  text-justify: inter-word;
}

/* Slider dv2 para detalleVisual cuando está activado */
.dv2-slider {
  display: flex;
  gap: clamp(0.5rem, 3vw, 1rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-inline: clamp(0.5rem, 3vw, 1rem);
  scroll-padding-left: clamp(0.5rem, 3vw, 1rem);
  scroll-padding-right: clamp(0.5rem, 3vw, 1rem);
  -webkit-overflow-scrolling: touch; /* Suaviza scroll en iOS */
  -ms-overflow-style: none; /* IE/Edge oculta scrollbar */
  scrollbar-width: none;    /* Firefox oculta scrollbar */
}
.section--detalleVisualSlider {
  position: relative;
}

.dv2-slider::-webkit-scrollbar { display: none; }
.dv2-slider::-webkit-scrollbar { display: none; }
.dv2-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
}
.dv2-dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
.dv2-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
}
.dv2-dot[aria-current="true"] {
  background: var(--color-primary);
}

/* (rollback) estilos de slider removidos */

.section--detalleVisual {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
  align-items: center; /* Alineación vertical centrada entre media y texto */
}

/* Centrar verticalmente la imagen y el contenido también en el modo base (no slider) */
.section--detalleVisual .imageHighlight__media { align-self: center; }
.section--detalleVisual .imageHighlight__body { justify-content: center; }
/* Evitar desbordes horizontales de las columnas en pantallas estrechas */
.section--detalleVisual .imageHighlight__media,
.section--detalleVisual .imageHighlight__body { min-width: 0; }


  .dv2-slide .section--detalleVisual { align-items: center; }
  .dv2-slide .imageHighlight__media, .dv2-slide .imageHighlight__body { align-self: center; }
  .section--detalleVisual.is-single {
    grid-template-columns: 1fr; /* Una sola columna cuando no hay descripción */
  }
  /* Forzar misma fila en desktop/tablet para evitar diagonal al invertir */
  .section--detalleVisual .imageHighlight__media,
  .section--detalleVisual .imageHighlight__body { grid-row: 1; }
  .section--detalleVisual .imageHighlight__media { grid-column: 1; }
  .section--detalleVisual .imageHighlight__body { grid-column: 2; }
  .section--detalleVisual.is-reverse .imageHighlight__media { grid-column: 2; }
  .section--detalleVisual.is-reverse .imageHighlight__body { grid-column: 1; }
}

/* En móvil, apilar: imagen arriba, texto abajo (1 columna) */
@media (max-width: 767px) {
  .section--detalleVisual { grid-template-columns: 1fr; }
  .section--detalleVisual .imageHighlight__media,
  .section--detalleVisual .imageHighlight__body {
    grid-column: 1;
    grid-row: auto;
  }
  .section--detalleVisual .imageHighlight__media { grid-row: 1; }
  .section--detalleVisual .imageHighlight__body { grid-row: 2; }

  /* En slider, asegurar una sola columna y orden Imagen -> Texto */
  .dv2-slide .section--detalleVisual { grid-template-columns: 1fr !important; }
  .dv2-slide .section--detalleVisual .imageHighlight__media,
  .dv2-slide .section--detalleVisual .imageHighlight__body { grid-column: 1; }
  .dv2-slide .section--detalleVisual .imageHighlight__media { grid-row: 1; }
  .dv2-slide .section--detalleVisual .imageHighlight__body { grid-row: 2; }

  /* Ratio más amable en móvil para que la imagen no se vea "angosta y alta" */
  .section--detalleVisual .imageHighlight__media [data-img-frame],
  .dv2-slide .imageHighlight__media [data-img-frame] { aspect-ratio: 3 / 2; }
}

.imageHighlight__media [data-img-frame] {
  width: 100%;
  aspect-ratio: 5 / 6; /* Portada - 5:6 cover (desktop/tablet) */
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
}
/* Garantizar esquinas redondeadas también en modo simple (1 componente) */
.section--detalleVisual .imageHighlight__media [data-img-frame] {
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  overflow: hidden;
}
.section--detalleVisual .imageHighlight__media [data-img-frame] > img {
  border-radius: inherit;
}

/* Asegurar bordes redondeados también dentro de slides del carrusel */
.section--detalleVisualSlider .imageHighlight__media [data-img-frame],
.dv2-slide [data-img-frame] {
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  overflow: hidden;
}

.dv2-slide [data-img-frame] > img {
  border-radius: inherit;
}


.imageHighlight__body h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  text-align: center; /* Centrar el título sobre el contenido que encabeza */
}

.imageHighlight__body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Título arriba, flujo natural del contenido */
  align-items: stretch;
}

.imageHighlight__body p {
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
  text-align: justify;         /* Texto justificado a ambos lados */
  text-justify: inter-word;    /* Mejora la justificación cuando está soportado */
}

.section--botonAccion {
  text-align: center;
}

.section--botonAccion p {
  color: #fff;
}

.section--botonAccion [data-img-frame] {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1; /* Logos/elementos sensibles - contener */
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  overflow: hidden;
  margin: 0 auto 1.5rem;
}
.section--botonAccion [data-img-frame] > img {
  object-fit: contain;
  border-radius: inherit;
}


.winner-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.winner-card {
  padding: 1.75rem;
  border-radius: 22px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.winner-card [data-img-frame] {
  width: 100%;
  aspect-ratio: 1 / 1; /* Miniaturas ganadores – 1:1 cover */
  border-radius: 16px;
}

.winner-card__title {
  font-size: 1.2rem;
  font-weight: 700;
}

.winner-card__meta {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

/* Key-Value section */
.key-value {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0.5rem 1rem;
}
.key-value dt {
  font-weight: 700;
  color: #fff;
}
.key-value dd {
  margin: 0;
  color: rgba(255,255,255,0.85);
}

/* FAQ section */
.section--faq h3 { margin-top: 0; }
.faq-list details {
  background: #141414;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 8px 0;
  border: 1px solid rgba(255,255,255,0.08);
}
.faq-list summary { cursor: pointer; font-weight: 600; }
.faq-list .answer { margin-top: 8px; color: #ddd; line-height: 1.6; }

.section--faq h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 1.75rem;
  text-align: center;
}

.section--faq .faq-list details {
  background: var(--color-primary);
  border-radius: 999px;
  padding: 12px 14px;
  margin: 8px 0;
  border: 1px solid rgba(0,0,0,0.2);
}

.section--faq .faq-list summary {
  color: #111;
  font-weight: 600;
}

.section--faq .faq-list .answer {
    color: #111;
}

.section--tarjetaValidacion h2 {
  font-family: var(--font-heading);
  font-size: 2.1rem; /* igual que otras tarjetas (texto/galería) */
  margin-bottom: 1.5rem;
  text-align: center;
}

.section--tarjetaValidacion p {
  margin: 0.5rem 0;
  font-size: 1.05rem; /* igual que subtítulos en texto informativo */
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.86);
  text-align: center;
}

.section--tarjetaValidacion .validation-box {
  max-width: 520px;
  margin: 0 auto;
  display: grid;
  gap: 0.5rem;
}

.section--tarjetaValidacion .validation-input {
  width: 100%;
  font-size: 1rem; /* igual que FAQ summary por defecto */
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.section--tarjetaValidacion .button {
  font-family: var(--font-body);
  font-size: 1rem; /* igual que los textos de los desplegables FAQ */
}

.section--tarjetaValidacion .validation-feedback {
  font-size: 0.98rem;
  text-align: center; /* Centrar mensaje de confirmación */
}

.site-footer {
  padding: 2rem 1.5rem 3rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

@media (max-width: 720px) {
  .section {
    padding: 1.75rem;
  }

  .top-nav {
    padding: 1rem 1.25rem;
  }
}
/* Editor overlay */
.editor-toggle {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #111;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  border: none;
  cursor: pointer;
  box-shadow: 0 18px 38px rgba(0,0,0,0.35);
  z-index: 50;
}

.editor-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(450px, 100vw);
  height: 100vh;
  background: rgba(18, 18, 18, 0.9);
  backdrop-filter: blur(24px);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 60;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.editor-panel.is-open {
  transform: translateX(0);
}

.editor-panel__header {
  padding: 1.5rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
  font-size: 1.1rem;
}

.editor-panel__body {
  flex: 1;
  overflow-y: auto;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.editor-panel fieldset {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  display: grid;
  gap: 1.25rem;
}

.editor-panel legend {
  padding: 0 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.editor-panel label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.editor-panel input,
.editor-panel textarea,
.editor-panel select {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.editor-panel input:focus,
.editor-panel textarea:focus,
.editor-panel select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(254, 146, 0, 0.3);
}
.editor-image-field {
  display: grid;
  gap: 1rem;
  text-align: center;
}

.editor-image-preview {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  background-color: rgba(0, 0, 0, 0.3);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

.editor-image-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.editor-image-controls button {
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.editor-image-controls button:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.editor-cropper-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.78);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 120;
}

.editor-cropper-overlay.is-open {
  display: flex;
}

.editor-cropper {
  width: min(720px, 96vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #111;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 28px 48px rgba(0,0,0,0.45);
  overflow: hidden;
}

.editor-cropper__title {
  font-weight: 600;
  padding: 1.1rem 1.5rem 0 1.5rem;
}

.editor-cropper__body {
  display: flex;
  flex-wrap: nowrap; /* Mantener canvas y panel lado a lado */
  gap: 1.5rem;
  padding: 0 1rem 0.75rem 1rem;
  justify-content: center;
  flex: 1;
  overflow-y: auto;
  overflow-x: auto; /* Permite desplazamiento horizontal si no entra */
}

.editor-cropper__canvas {
  width: min(520px, 70vw);
  max-width: 100%;
  border-radius: 12px;
  background: #000;
  border: 1px solid rgba(255,255,255,0.08);
}

.editor-cropper__aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: clamp(180px, 24vw, 220px);
}

.editor-cropper__label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
}

.editor-cropper__preview {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: #000;
}

.editor-cropper__zoom {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

.editor-cropper__zoom input[type="range"] {
  width: 100%;
}

.editor-cropper__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  padding: 0 1.5rem 1.5rem;
}

.editor-cropper__actions button {
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.1);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.editor-cropper__confirm {
  background: var(--color-primary);
  border-color: rgba(0,0,0,0.2);
  color: #111;
  font-weight: 600;
}

.editor-cropper__confirm:hover {
  background: #ffac39;
}

.editor-cropper__cancel:hover {
  background: rgba(255,255,255,0.16);
}

@media (max-width: 720px) {
  .editor-cropper__body {
    flex-direction: row;     /* Lado a lado también en móvil */
    align-items: flex-start;
    overflow-x: auto;
  }
  .editor-cropper__aside {
    width: auto;
    min-width: 180px;
  }
  .editor-cropper__preview {
    max-width: 160px;
    margin: 0;
  }
}


.editor-panel input,
.editor-panel textarea,
.editor-panel select {
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-family: inherit;
  word-break: break-word; /* Ensure long words break */
  overflow-wrap: break-word; /* Ensure long words wrap */
  width: 100%; /* Make them take full available width */
  min-width: 0; /* Allow them to shrink below content size */
}

.editor-panel textarea {
  min-height: 90px;
  resize: vertical;
}

.editor-panel__actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  overflow-x: auto; /* evita salto de línea, permite scroll si no entra */
}

.editor-panel__actions button,
.editor-panel__actions a,
.editor-action {
  padding: 0.65rem 1.1rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap; /* textos en una sola línea */
  flex: 0 0 auto;     /* no permitir que colapsen y se apilen */
}

.editor-color-field {
  display: grid;
  gap: 0.75rem;
}

.editor-color-field__controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.editor-color-field__preview {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.editor-color-field__palette {
  display: grid;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem;
  border-radius: 12px;
}

.editor-color-field__swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.editor-color-field__swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  background-color: var(--swatch-color);
}

.editor-color-field__custom {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.editor-color-field__custom input[type="color"] {
  width: 40px;
  height: 40px;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.editor-color-field__code {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 500;
  flex: 1; /* Allow to grow and shrink */
  min-width: 0; /* Allow to shrink below content size */
}

.editor-color-field__code input {
  font-weight: 400;
}

.editor-color-field__pick-btn {
  padding: 0.55rem 0.95rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.1);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  width: 100%; /* Make it take full width */
}

.editor-color-field__pick-btn:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-1px);
}

.section-editor {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 1rem 1.1rem 1.3rem;
  margin-bottom: 1rem;
}

.section-editor__heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  cursor: pointer;
  list-style: none; /* For Firefox */
}

.section-editor__heading::-webkit-details-marker {
  display: none;
}

.section-editor__controls {
  display: flex;
  gap: 0.4rem;
}

.section-editor__controls button {
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.5);
  color: #fff;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
}

.section-editor__grid {
  display: grid;
  gap: 0.75rem;
}

.editor-inline-list {
  display: grid;
  gap: 0.75rem;
}

.editor-inline-item {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 0.75rem;
  background: rgba(255,255,255,0.05); /* tono sutil para diferenciar de la seccion madre */
}

.editor-inline-item__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
  cursor: pointer;
  list-style: none;
}

.editor-inline-item__header::-webkit-details-marker {
  display: none;
}

.editor-inline-item__header button {
  cursor: pointer;
}

/* Botón eliminar de subtarjetas con estilo consistente con seccion madre */
.editor-inline-item__remove {
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.5);
  color: #fff;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
}
.editor-inline-item__remove:hover {
  background: rgba(0,0,0,0.6);
}

.editor-add-section {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

@media (max-width: 720px) {
  .editor-panel {
    width: 100vw;
  }
}
/* === HERO === */
.hero {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 3vw, 1.25rem);
}

.hero__media {
  width: 100%;
}

.hero-banner {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--card-radius);
  display: block;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0,0,0,0.35);
}

.hero-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.hero__profile-wrapper {
  width: clamp(4.25rem, 12vw, 5.5rem);
  height: clamp(4.25rem, 12vw, 5.5rem);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: clamp(0.75rem, 2vw, 1rem);
}

.hero-profile {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  overflow: hidden;
  border: 3px solid #111;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  object-fit: cover;
  display: block;
}

.hero-body--with-profile {
  position: relative;
  padding-top: clamp(0.25rem, 1.5vw, 0.75rem);
}

.hero-body--with-profile .hero__profile-wrapper {
  position: absolute;
  bottom: 0;
  right: 0;
  /* Desktop size (>= 1024px) */
  width: 10rem;
  height: 10rem; /* Explicit height */
  margin-bottom: 0;
  z-index: 1; /* Lift avatar above parent's clipping path */
}

.hero-body .button-row {
  justify-content: flex-start;
  margin: clamp(1rem, 3vw, 1.25rem) 0 clamp(1rem, 3vw, 1.25rem)
}

.hero-body .social-list {
  margin-top: clamp(0.75rem, 2vw, 1rem);
  justify-content: flex-start;
}

/* Tablet size */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-body--with-profile .hero__profile-wrapper {
    width: 9rem;
    height: 9rem; /* Explicit height */
  }
}

@media (max-width: 767px) {
  .hero {
    gap: 1.25rem;
  }

  .hero-body {
    align-items: center;            /* Centrar contenido en móvil */
    text-align: center;            /* Texto centrado */
  }

  .hero-body--with-profile {
    padding-left: 0;
    padding-top: 0;
  }

  .hero-body--with-profile .hero__profile-wrapper {
    /* En móvil, el avatar entra en el flujo y se centra */
    position: static;
    margin: 0 auto clamp(0.75rem, 2vw, 1rem);
    width: 7rem;
    height: 7rem;
  }

  /* Asegurar centrado y buen flujo del resto de elementos del hero */
  .hero__title,
  .hero__subtitle,
  .hero-body .button-row,
  .hero-body .social-list {
    align-self: stretch;
    justify-content: center;
    text-align: center;
  }

  .hero-body .button-row { justify-content: center; flex-wrap: wrap; }
  .hero-body .social-list { justify-content: center; }

  /* Reordenar en móvil: título → subtítulo → botones → logo → redes */
  .hero-body .hero__title { order: 1; }
  .hero-body .hero__subtitle { order: 2; }
  .hero-body .button-row { order: 3; }
  .hero-body .hero__profile-wrapper { order: 4; }
  .hero-body .social-list { order: 5; }
}
.social-list {
  display: flex;
  justify-content: center; /* Center the group */
  gap: clamp(1rem, 4vw, 1.5rem); /* More space: 16px to 24px */
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.social-list li {
  margin: 0;
  padding: 0;
}

.social-list a {
  display: inline-block; /* Allow padding */
  padding: 0.5rem; /* 8px clickable area */
  background: transparent; /* No background */
  border-radius: 0; /* No circle */
  box-shadow: none; /* No shadow */
  transition: color 0.2s ease, transform 0.2s ease; /* Smooth color + zoom */
  color: #fff;
  /* Remove fixed width/height and grid centering */
}

.social-list a:hover,
.social-list a:active,
.social-list a:focus-visible {
  transform: scale(1.08); /* Leve zoom al interactuar */
}

.social-list a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px; /* Slight radius for the outline */
}


.social-list svg {
  width: clamp(1.5rem, 5vw, 1.75rem); /* 24px to 28px */
  height: clamp(1.5rem, 5vw, 1.75rem);
  fill: currentColor;
  display: block; /* Remove extra space below */
}

/* Colores por red social al interactuar */
.social-list a[href*="instagram.com"]:hover,
.social-list a[href*="instagram.com"]:active,
.social-list a[href*="instagram.com"]:focus-visible { color: #E1306C; }

.social-list a[href*="facebook.com"]:hover,
.social-list a[href*="facebook.com"]:active,
.social-list a[href*="facebook.com"]:focus-visible { color: #1877F2; }

.social-list a[href*="wa.me"]:hover,
.social-list a[href*="wa.me"]:active,
.social-list a[href*="wa.me"]:focus-visible,
.social-list a[href*="whatsapp.com"]:hover,
.social-list a[href*="whatsapp.com"]:active,
.social-list a[href*="whatsapp.com"]:focus-visible { color: #25D366; }

.social-list a[href*="tiktok.com"]:hover,
.social-list a[href*="tiktok.com"]:active,
.social-list a[href*="tiktok.com"]:focus-visible { color: #000; }
@media (prefers-reduced-motion: reduce) {
  video { animation: none; }
}
/* Lightbox minimal */
.lightbox[hidden] { display: none !important; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-rows: 1fr;
}
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.9);
}
.lightbox__stage {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 6vh 4vw;
}
.lightbox__img {
  max-width: 92vw;
  max-height: 82vh;
  transition: transform 0.08s ease-out;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox__caption {
  position: absolute;
  left: 0; right: 0; bottom: 14px;
  text-align: center;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  padding: 0 16px;
}
.lightbox__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.4);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
/* Utilities: relación y ajuste */
.image--cover, .image--contain {
  width: 100%;
  height: 100%;
}
.image--cover { object-fit: cover !important; }
.image--contain { object-fit: contain !important; }

.editor-rich-text-toolbar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.format-button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 4px;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

[data-img-frame] {
  position: relative;            /* para hit area consistente */
  touch-action: manipulation;    /* mejora tap en mobile */
}

/* No forzar fill en legacy-transform: respetar object-fit elegido (contain/cover) */

/* Toggle Switch Styles */
.editor-toggle-switch {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;           /* espacio entre toggle y texto */
  height: 24px;
  margin-bottom: 0.9rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  max-width: 100%;
  flex-wrap: nowrap;
}
/* Texto del toggle: permite wrap sin superponer */
.editor-toggle-switch__label {
  white-space: normal;
  line-height: 1.2;
}

.editor-toggle-switch input.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 1px, 1px);
  white-space: nowrap;
  border: 0;
}

.editor-toggle-switch__track {
  position: relative;      /* participa del flujo flex */
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.2);
  transition: background-color .2s ease;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.editor-toggle-switch__track:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: transform .2s ease;
  border-radius: 50%;
}

.editor-toggle-switch input.sr-only:checked + .editor-toggle-switch__track {
  background-color: var(--color-primary);
}

.editor-toggle-switch input.sr-only:focus-visible + .editor-toggle-switch__track {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.editor-toggle-switch input.sr-only:checked + .editor-toggle-switch__track:before {
  transform: translateX(20px);
}

/* Radio Group Styles */
.editor-radio-group {
  margin-bottom: 1.5rem;
}

.editor-radio-group > div:first-of-type {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.5rem;
}

.editor-radio-options {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.editor-radio-option {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.9rem;
  color: #fff;
}

.editor-radio-option input[type="radio"] {
  margin-right: 0.5rem;
  width: auto;
  height: auto;
  min-width: 0;
  accent-color: var(--color-primary);
}

.dev-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  text-decoration: underline;
  opacity: .55;
  cursor: pointer;
}
.dev-link:hover { opacity: .85; }

/* Modal */
.modal.hidden { display: none; }
.modal {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: rgba(0,0,0,.45);
}
.modal-box {
  width: min(92vw, 380px);
  background: #111;
  color: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,.6);
}
.modal-box input {
  width: 100%;
  margin-top: 6px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.1);
  background: #0b0b0b;
  color: #fff;
}
.modal-actions {
  display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px;
}
.modal-actions button {
  border: 0; padding: 10px 14px; border-radius: 8px; cursor: pointer;
}
.modal-actions button[type="submit"] { background: #2b7fff; color: #fff; }
.modal-actions #dev-cancel { background: #333; color: #ddd; }
.error { color: #ff6961; min-height: 1.2em; }

/* Ocultar UI de edición para visitantes */
#edit-toggle, .editor-panel { display: none; }
.admin #edit-toggle { display: inline-flex; }
.admin .editor-panel.is-open { display: flex; }

.page-selector-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-selector-wrapper .editor-toggle-switch {
  transform: scale(0.8);
}




/* Alinear contenido de cada slide al centro vertical de la tarjeta */
.dv2-slide .section--detalleVisual { align-items: center; }
.dv2-slide .imageHighlight__media { align-self: center; }
.dv2-slide .imageHighlight__body { justify-content: center; }





/* Override fuerte para móvil/tablet chico: 1 columna imagen->texto */
@media (max-width: 1023px) {
  .section--detalleVisual { grid-template-columns: 1fr !important; }
  .section--detalleVisual .imageHighlight__media,
  .section--detalleVisual .imageHighlight__body {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
  .section--detalleVisual .imageHighlight__media { grid-row: 1 !important; }
  .section--detalleVisual .imageHighlight__body { grid-row: 2 !important; }

  /* Dentro de slides también apilar */
  .dv2-slide .section--detalleVisual { grid-template-columns: 1fr !important; }
  .dv2-slide .section--detalleVisual .imageHighlight__media,
  .dv2-slide .section--detalleVisual .imageHighlight__body {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
  .dv2-slide .section--detalleVisual .imageHighlight__media { grid-row: 1 !important; }
  .dv2-slide .section--detalleVisual .imageHighlight__body { grid-row: 2 !important; }
}

/* --- Hero: efectos de botones (activables desde el editor) --- */
.section--hero .button.is-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}
/* ===================== Xenón ===================== */
.section--hero.hero--effect-xenon .button {
  position: relative;
  overflow: hidden; /* el halo queda recortado al botón */
  isolation: isolate;
}

/* Halo pulsante suave en naranja (usa --color-primary) */
.section--hero.hero--effect-xenon .button::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  background: var(--color-primary);
  filter: blur(14px);
  opacity: 0.10; /* base más tenue, nunca se apaga */
  transform: scale(0.98);
  pointer-events: none;
  mix-blend-mode: screen;
  animation: hero-glow 3.8s ease-in-out infinite;
}

/* Botones deshabilitados: sin animación ni halo */
.section--hero .button.is-disabled::before {
  animation: none !important;
  opacity: 0 !important;
}

@keyframes hero-glow {
  0%, 100% { opacity: 0.10; transform: scale(0.98); }
  50%      { opacity: 0.60; transform: scale(1.03); }
}

/* (Eliminados estilos de Fuego y Fuego realista) */

/* Respeto de accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .section--hero.hero--effect-xenon .button::before { animation: none !important; }
}
.page-selector-wrapper {
  display: grid;
  gap: 0.75rem;
}

.page-config-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  align-items: stretch;
}

@media (min-width: 768px) {
  .page-config-actions {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Asegurar despliegue: dejamos que <details> maneje visibilidad */

.page-config-actions .editor-action {
  width: 100%;
}

/* no overflow hidden para evitar recortes */

.page-config-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-editor__chevron {
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.5);
  color: #fff;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
}

.page-config-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .page-config-row {
    grid-template-columns: 1fr auto;
  }
}

.page-config-slug-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .page-config-slug-row {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}
