/* ==========================================================================
   TP3D Advanced Description — Frontend v1.2.5
   ========================================================================== */

/* ── Contenedor ── */
.tp3d-advanced-description {
  width: 100%;
  /* Aire abajo para que no quede pegada a la sección siguiente del producto
     (p.ej. "Te puede hacer falta" / productos relacionados). */
  margin-bottom: 48px;
}
@media (max-width: 767px) {
  .tp3d-advanced-description { margin-bottom: 28px; }
}

/* ── Título de sección ── */
.tp3d-section-title {
  text-align: center;
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 56px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

/* ── Bloque base ── */
/* Separación entre secciones: una sola fuente (sin duplicar margen+padding).
   El separador queda centrado, con ~40px arriba y abajo (antes eran ~144px). */
.tp3d-block { margin: 0; }
.tp3d-block:first-child { margin-top: 0; }
.tp3d-block:last-child  { margin-bottom: 0; }

.tp3d-block + .tp3d-block {
  border-top: 1px solid rgba(0, 0, 0, .07);
  margin-top: 40px;
  padding-top: 40px;
}

/* En mobile, más ajustado. */
@media (max-width: 767px) {
  .tp3d-block + .tp3d-block { margin-top: 26px; padding-top: 26px; }
}

/* ── Imagen + Texto ── */
.tp3d-block--image-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* Dirección derecha */
.tp3d-block--image-text.is-reverse .tp3d-block__media,
.tp3d-block--image-text.tp3d-layout-right .tp3d-block__media  { order: 2; }
.tp3d-block--image-text.is-reverse .tp3d-block__content,
.tp3d-block--image-text.tp3d-layout-right .tp3d-block__content { order: 1; }

/* Stack (imagen arriba) */
.tp3d-block--image-text.tp3d-layout-stack {
  grid-template-columns: 1fr;
  gap: 32px;
}
.tp3d-block--image-text.tp3d-layout-stack .tp3d-block__media  { order: 1; }
.tp3d-block--image-text.tp3d-layout-stack .tp3d-block__content { order: 2; }

/* Solo texto (sin imagen) */
.tp3d-block--image-text.tp3d-text-only {
  display: block;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Contenedor de imagen ── */
.tp3d-block__media {
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #f2f2f2;
}

.tp3d-block__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tp3d-block__media .is-mobile { display: none; }

/* ── Lado de texto ── */
.tp3d-block__content h3 {
  font-size: 1.85rem;
  font-weight: 700;
  margin: 0 0 18px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.tp3d-block__content .rte-content {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
}

.tp3d-block__content .rte-content p { margin: 0 0 .8em; }
.tp3d-block__content .rte-content p:last-child { margin-bottom: 0; }

.tp3d-block__content .rte-content ul,
.tp3d-block__content .rte-content ol {
  padding-left: 1.4em;
  margin: .5em 0;
}
.tp3d-block__content .rte-content li { margin-bottom: .3em; }

/* ── Imagen completa ── */
.tp3d-block--full-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 22px;
}

.tp3d-block--full-image h3 {
  font-size: 1.85rem;
  font-weight: 700;
  margin: 0 0 18px;
  letter-spacing: -0.025em;
}

/* ── Video ── */
.tp3d-video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  border-radius: 22px;
}

.tp3d-video-wrap iframe,
.tp3d-video-wrap video.tp3d-video-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.tp3d-video-wrap video.tp3d-video-el {
  object-fit: contain;
  background: #000;
}

/* Tamaño del bloque de video (link o mp4): limita el ancho y centra. */
.tp3d-video-wrap--sz-sm,
.tp3d-video-wrap--sz-md,
.tp3d-video-wrap--sz-lg {
  margin-left: auto;
  margin-right: auto;
}
.tp3d-video-wrap--sz-sm   { max-width: 520px; }
.tp3d-video-wrap--sz-md   { max-width: 760px; }
.tp3d-video-wrap--sz-lg   { max-width: 1000px; }
.tp3d-video-wrap--sz-full { max-width: none; }

/* ── Columnas / Cards ── */
.tp3d-block--columns { text-align: center; }

.tp3d-cols-heading {
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.025em;
}

.tp3d-cols-intro {
  max-width: 620px;
  margin: 0 auto 44px;
  color: #666;
  line-height: 1.75;
  font-size: 1rem;
}

.tp3d-cards-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, 1fr);
}
.tp3d-cards-grid[data-cols="3"] { grid-template-columns: repeat(3, 1fr); }
.tp3d-cards-grid[data-cols="4"] { grid-template-columns: repeat(4, 1fr); }

.tp3d-card {
  text-align: left;
  border-radius: 18px;
  overflow: hidden;
  background: #f7f7f7;
  transition: transform .25s ease, box-shadow .25s ease;
}

.tp3d-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .1);
}

.tp3d-card__img {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #eee;
}

.tp3d-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.tp3d-card:hover .tp3d-card__img img { transform: scale(1.05); }

.tp3d-card__body {
  padding: 18px 22px 22px;
}

.tp3d-card__title {
  margin: 0 0 7px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.tp3d-card__text {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ── Columnas libres (free_columns) ── */
.tp3d-fcols-heading {
  font-size: 1.85rem;
  font-weight: 700;
  margin: 0 0 18px;
  letter-spacing: -0.025em;
}
.tp3d-fcols {
  display: grid;
  grid-template-columns: var(--tp3d-fcols, 1fr);
  align-items: start;
}
.tp3d-fcols-va-center { align-items: center; }
.tp3d-fcols-va-bottom { align-items: end; }
.tp3d-fcols-gap-sm { gap: 16px; }
.tp3d-fcols-gap-md { gap: 32px; }
.tp3d-fcols-gap-lg { gap: 56px; }
.tp3d-fcol { min-width: 0; }
.tp3d-fcol-align-center { text-align: center; }
.tp3d-fcol-align-right  { text-align: right; }
.tp3d-fcol__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  margin: 0 0 14px;
}
.tp3d-fcol > .tp3d-fcol__img:last-child { margin: 16px 0 0; }
.tp3d-fcol .rte-content { line-height: 1.7; }
.tp3d-fcol__cta {
  display: inline-block;
  margin-top: 16px;
  padding: 11px 26px;
  border-radius: 8px;
  background: var(--tp3d-accent, #2fb5d2);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: filter .2s ease, transform .2s ease;
}
.tp3d-fcol__cta:hover { filter: brightness(1.08); transform: translateY(-1px); color: #fff; }

/* Mobile: apilar columnas libres. El ancho va por la CSS var --tp3d-fcols (estilo
   inline), así que este media query — que setea grid-template-columns directo — la
   pisa sin necesidad de !important. */
@media (max-width: 767px) {
  .tp3d-fcols.tp3d-fcols-stack {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ── Títulos de bloques genéricos ── */
.tp3d-block--faq h3,
.tp3d-block--highlights h3,
.tp3d-block--video h3 {
  font-size: 1.85rem;
  font-weight: 700;
  margin: 0 0 18px;
  letter-spacing: -0.025em;
}

/* ── Misc ── */
.tp3d-after-tabs-anchor { width: 100%; }

/* ── Responsive tablet ── */
@media (max-width: 991px) {
  .tp3d-block--image-text { gap: 40px; }
  .tp3d-block__content h3 { font-size: 1.55rem; }
  .tp3d-cols-heading { font-size: 1.55rem; }
}

/* ── Responsive móvil ── */
@media (max-width: 767px) {
  /* La separación entre bloques en mobile la define una sola fuente, arriba
     (.tp3d-block + .tp3d-block → margin-top + padding-top de 26px). Antes acá se
     duplicaba con un margin:48px + padding-top:48px viejos que dejaban un hueco
     inconsistente (~74px) entre secciones. */

  .tp3d-block--image-text {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  /* En móvil siempre imagen arriba, texto abajo */
  .tp3d-block--image-text .tp3d-block__media  { order: 1 !important; }
  .tp3d-block--image-text .tp3d-block__content { order: 2 !important; }

  .tp3d-block__media .is-desktop { display: none; }
  .tp3d-block__media .is-mobile  { display: block; }

  .tp3d-block__content h3 { font-size: 1.4rem; }

  .tp3d-cards-grid,
  .tp3d-cards-grid[data-cols="2"],
  .tp3d-cards-grid[data-cols="3"],
  .tp3d-cards-grid[data-cols="4"] {
    grid-template-columns: 1fr;
  }

  .tp3d-section-title {
    font-size: 1.6rem;
    margin-bottom: 36px;
  }

  .tp3d-cols-heading { font-size: 1.4rem; }
}

/* ==========================================================================
   TP3D Advanced Description — Capa de apariencia (Fase A) v1.3.0
   ========================================================================== */

/* Color de acento por defecto (celeste). Lo sobreescribe el style inline POR BLOQUE
   (.tp3d-block style="--tp3d-accent:...") cuando el bloque define su propio acento. */
.tp3d-advanced-description { --tp3d-accent: #2fb5d2; }

/* El wrapper interno no constriñe salvo en modo ancho completo */
.tp3d-ad-inner { width: 100%; }

/* ── Etiqueta eyebrow ── */
.tp3d-eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tp3d-accent, #2fb5d2);
  margin: 0 0 12px;
}

/* Acento de título: el texto entre ==dobles iguales== queda con un subrayado
   grueso tipo pincel en el color de acento. */
.tp3d-accent {
  background-image: linear-gradient(var(--tp3d-accent, #2fb5d2), var(--tp3d-accent, #2fb5d2));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 0.16em;
  padding-bottom: 0.04em;
}

/* ══════════════════════════════════════════════════
   TEMA OSCURO
══════════════════════════════════════════════════ */
.tp3d-advanced-description.tp3d-theme-dark {
  background: #0b0d10;
  color: #f5f5f7;
}

/* Caja oscura redondeada cuando NO es ancho completo */
.tp3d-advanced-description.tp3d-theme-dark:not(.tp3d-fullwidth) {
  padding: 48px 40px;
  border-radius: 24px;
}

.tp3d-advanced-description.tp3d-theme-dark .tp3d-section-title,
.tp3d-advanced-description.tp3d-theme-dark .tp3d-block__content h3,
.tp3d-advanced-description.tp3d-theme-dark .tp3d-block--full-image h3,
.tp3d-advanced-description.tp3d-theme-dark .tp3d-cols-heading,
.tp3d-advanced-description.tp3d-theme-dark .tp3d-fcols-heading,
.tp3d-advanced-description.tp3d-theme-dark .tp3d-vcar-heading,
.tp3d-advanced-description.tp3d-theme-dark .tp3d-block--faq h3,
.tp3d-advanced-description.tp3d-theme-dark .tp3d-block--highlights h3,
.tp3d-advanced-description.tp3d-theme-dark .tp3d-block--video h3,
.tp3d-advanced-description.tp3d-theme-dark .tp3d-card__title {
  color: #fff;
}

.tp3d-advanced-description.tp3d-theme-dark .rte-content,
.tp3d-advanced-description.tp3d-theme-dark .tp3d-cols-intro,
.tp3d-advanced-description.tp3d-theme-dark .tp3d-card__text {
  color: rgba(255, 255, 255, .68);
}

.tp3d-advanced-description.tp3d-theme-dark .tp3d-block + .tp3d-block {
  border-top-color: rgba(255, 255, 255, .1);
}

.tp3d-advanced-description.tp3d-theme-dark .tp3d-card {
  background: #15181d;
}

.tp3d-advanced-description.tp3d-theme-dark .tp3d-block__media,
.tp3d-advanced-description.tp3d-theme-dark .tp3d-card__img {
  background: #1c2026;
}

/* ══════════════════════════════════════════════════
   ANCHO COMPLETO (edge-to-edge)
══════════════════════════════════════════════════ */
.tp3d-advanced-description.tp3d-fullwidth {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.tp3d-advanced-description.tp3d-fullwidth.tp3d-theme-dark {
  padding-top: 72px;
  padding-bottom: 72px;
}

/* En ancho completo, el contenido se centra y se limita para no estirarse */
.tp3d-advanced-description.tp3d-fullwidth .tp3d-ad-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Ajustes mobile de la capa de apariencia ── */
@media (max-width: 767px) {
  .tp3d-advanced-description.tp3d-theme-dark:not(.tp3d-fullwidth) {
    padding: 28px 20px;
    border-radius: 16px;
  }
  .tp3d-advanced-description.tp3d-fullwidth .tp3d-ad-inner {
    padding: 0 16px;
  }
  .tp3d-eyebrow { margin-bottom: 8px; }
}

/* ==========================================================================
   TP3D Advanced Description — Controles por bloque v1.3.0
   ========================================================================== */

/* ── Bloque con fondo propio: caja redondeada, sin línea separadora ── */
.tp3d-block.tp3d-has-bg {
  padding: 44px;
  border-radius: 20px;
  border-top: 0 !important;
  margin: 48px 0;
}
.tp3d-block.tp3d-has-bg + .tp3d-block {
  border-top: 0;
  padding-top: 0;
  margin-top: 48px;
}

/* ── Fondo oscuro por bloque ── */
.tp3d-block.tp3d-bg-dark { background: #0b0d10; color: #f5f5f7; }
.tp3d-block.tp3d-bg-dark h3,
.tp3d-block.tp3d-bg-dark .tp3d-cols-heading,
.tp3d-block.tp3d-bg-dark .tp3d-card__title { color: #fff; }
.tp3d-block.tp3d-bg-dark .rte-content,
.tp3d-block.tp3d-bg-dark .tp3d-cols-intro,
.tp3d-block.tp3d-bg-dark .tp3d-card__text { color: rgba(255, 255, 255, .68); }
.tp3d-block.tp3d-bg-dark .tp3d-card { background: #15181d; }
.tp3d-block.tp3d-bg-dark .tp3d-block__media,
.tp3d-block.tp3d-bg-dark .tp3d-card__img { background: #1c2026; }

/* ── Fondo claro por bloque ── */
.tp3d-block.tp3d-bg-light { background: #f6f7f9; color: #1a1a1a; }

/* ── Alineación del texto ── */
.tp3d-block.tp3d-align-left   { text-align: left; }
.tp3d-block.tp3d-align-center { text-align: center; }
.tp3d-block.tp3d-align-right  { text-align: right; }
/* En imagen+texto la alineación afecta la columna de texto */
.tp3d-block--image-text.tp3d-align-center .tp3d-block__content { text-align: center; }
.tp3d-block--image-text.tp3d-align-right  .tp3d-block__content { text-align: right; }

/* ── Tamaño del texto del cuerpo (por bloque): Chico / Grande / Muy grande ──
   (Normal = sin clase, queda en 1rem). Mayor especificidad (3 clases) que la regla
   base .tp3d-block__content .rte-content, así pisa también hero/banner. */
.tp3d-block.tp3d-txt-sm .rte-content { font-size: 0.9rem; }
.tp3d-block.tp3d-txt-lg .rte-content { font-size: 1.15rem; }
.tp3d-block.tp3d-txt-xl .rte-content { font-size: 1.32rem; }

/* ── Imagen redondeada (image_text / full_image) ── */
.tp3d-block.tp3d-img-rounded .tp3d-block__media { border-radius: 16px; overflow: hidden; }
.tp3d-block.tp3d-img-rounded.tp3d-block--full-image img { border-radius: 16px; }
@media (max-width: 767px) {
  .tp3d-block.tp3d-img-rounded .tp3d-block__media,
  .tp3d-block.tp3d-img-rounded.tp3d-block--full-image img { border-radius: 12px; }
}

/* ── Espaciado vertical ── */
.tp3d-block.tp3d-pad-sm:not(.tp3d-has-bg) { padding-top: 36px; }
.tp3d-block.tp3d-pad-lg:not(.tp3d-has-bg) { padding-top: 120px; }
.tp3d-block.tp3d-has-bg.tp3d-pad-sm { padding: 28px; }
.tp3d-block.tp3d-has-bg.tp3d-pad-lg { padding: 64px; }

@media (max-width: 767px) {
  .tp3d-block.tp3d-has-bg { padding: 24px; border-radius: 14px; margin: 32px 0; }
  .tp3d-block.tp3d-has-bg.tp3d-pad-sm { padding: 18px; }
  .tp3d-block.tp3d-has-bg.tp3d-pad-lg { padding: 32px; }
  .tp3d-block.tp3d-pad-lg:not(.tp3d-has-bg) { padding-top: 64px; }
}

/* ==========================================================================
   TP3D Advanced Description — Mosaico / Bento (Fase B) v1.4.0
   ========================================================================== */
.tp3d-block--mosaic .tp3d-mosaic-heading {
  font-size: 1.85rem;
  font-weight: 700;
  margin: 0 0 28px;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.tp3d-mosaic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  grid-auto-flow: dense;
  gap: 14px;
}

/* ── Tile ── */
.tp3d-tile {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #15181d;
  grid-column: span 1;
  grid-row: span 1;
  isolation: isolate;
}
.tp3d-tile--wide { grid-column: span 2; }
.tp3d-tile--tall { grid-row: span 2; }
.tp3d-tile--big  { grid-column: span 2; grid-row: span 2; }
/* Un solo tile ocupa todo el ancho (evita media fila vacía en mosaicos de 1 foto). */
.tp3d-mosaic-grid .tp3d-tile:only-child { grid-column: 1 / -1; grid-row: auto; }

.tp3d-tile__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
  transition: transform .45s ease;
}
.tp3d-tile:hover .tp3d-tile__img { transform: scale(1.05); }

/* Degradado para legibilidad del texto */
.tp3d-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.15) 45%, rgba(0,0,0,0) 78%);
}

.tp3d-tile__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: 22px;
  color: #fff;
}
.tp3d-tile__title { font-size: 1.15rem; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.tp3d-tile__sub   { font-size: .9rem; opacity: .82; margin-top: 6px; line-height: 1.35; }

/* Posición del texto */
.tp3d-tile-text-bottom .tp3d-tile__overlay { justify-content: flex-end; }
.tp3d-tile-text-top    .tp3d-tile__overlay { justify-content: flex-start; }
.tp3d-tile-text-top::after { background: linear-gradient(to bottom, rgba(0,0,0,.78) 0%, rgba(0,0,0,.15) 45%, rgba(0,0,0,0) 78%); }
.tp3d-tile-text-center .tp3d-tile__overlay { justify-content: center; align-items: center; text-align: center; }
.tp3d-tile-text-center::after { background: rgba(0,0,0,.42); }

/* Oscurecer imagen (overlay) por tile — 'auto' usa el degradado de arriba */
.tp3d-tile-ov-none::after   { display: none; }
.tp3d-tile-ov-soft::after   { background: rgba(0, 0, 0, .28); }
.tp3d-tile-ov-medium::after { background: rgba(0, 0, 0, .45); }
.tp3d-tile-ov-strong::after { background: rgba(0, 0, 0, .62); }

/* ── Responsive ── */
@media (max-width: 991px) {
  .tp3d-mosaic-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
  .tp3d-tile--wide, .tp3d-tile--big { grid-column: span 2; }
  .tp3d-tile--big { grid-row: span 2; }
  .tp3d-tile--tall { grid-row: span 2; }
}
@media (max-width: 575px) {
  .tp3d-mosaic-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .tp3d-tile--wide, .tp3d-tile--big, .tp3d-tile--tall {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* ==========================================================================
   TP3D Advanced Description — Hero / Banner / Specs (Fase C+D) v1.8.0
   ========================================================================== */

/* ══════════════════════════════════════════════════
   HERO / BANNER (base compartida)
══════════════════════════════════════════════════ */
.tp3d-block--hero,
.tp3d-block--banner {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
}

.tp3d-hero {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 420px; /* default md */
}

/* ── Alturas ── */
.tp3d-hero.tp3d-hero-h-sm { min-height: 280px; }
.tp3d-hero.tp3d-hero-h-md { min-height: 420px; }
.tp3d-hero.tp3d-hero-h-lg { min-height: 560px; }

/* ── Fondo ── */
.tp3d-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.tp3d-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Capa de oscurecido (overlay) — medium por defecto ── */
.tp3d-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, .45);
}
.tp3d-hero.tp3d-hero-ov-none::after   { display: none; }
.tp3d-hero.tp3d-hero-ov-soft::after   { background: rgba(0, 0, 0, .28); }
.tp3d-hero.tp3d-hero-ov-medium::after { background: rgba(0, 0, 0, .45); }
.tp3d-hero.tp3d-hero-ov-strong::after { background: rgba(0, 0, 0, .62); }

/* ── Contenido ── */
.tp3d-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: inherit;
  padding: 56px 48px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}

.tp3d-hero__inner .tp3d-eyebrow { color: #fff; }

.tp3d-hero__title {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  color: #fff;
}

.tp3d-hero__inner .rte-content {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, .88);
  max-width: 640px;
}
.tp3d-hero__inner .rte-content p { margin: 0 0 .8em; }
.tp3d-hero__inner .rte-content p:last-child { margin-bottom: 0; }

/* ── Botón CTA pill ── */
.tp3d-hero__cta {
  display: inline-block;
  margin-top: 26px;
  padding: 14px 30px;
  background: var(--tp3d-accent, #2fb5d2);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  text-shadow: none;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.tp3d-hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .22);
  filter: brightness(1.05);
  color: #fff;
  text-decoration: none;
}

/* ── Banner: más bajo/compacto, pensado para ancho completo ── */
.tp3d-hero--banner.tp3d-hero-h-sm { min-height: 200px; }
.tp3d-hero--banner.tp3d-hero-h-md { min-height: 300px; }
.tp3d-hero--banner.tp3d-hero-h-lg { min-height: 400px; }
.tp3d-hero--banner .tp3d-hero__inner { padding: 40px 48px; }
.tp3d-hero--banner .tp3d-hero__title { font-size: 2rem; }

/* ══════════════════════════════════════════════════
   SPECS (tabla de especificaciones)
══════════════════════════════════════════════════ */
.tp3d-block--specs h3 {
  font-size: 1.85rem;
  font-weight: 700;
  margin: 0 0 18px;
  letter-spacing: -0.025em;
}

.tp3d-specs-intro {
  max-width: 620px;
  margin: 0 auto 28px;
  text-align: center;
  color: #666;
  line-height: 1.75;
  font-size: 1rem;
}

.tp3d-specs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 56px;
  /* Borde superior un poco más marcado para "cerrar" la tabla por arriba. */
  border-top: 2px solid rgba(0, 0, 0, .12);
}
.tp3d-specs[data-cols="2"] { grid-template-columns: repeat(2, 1fr); }

.tp3d-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 13px 6px;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  transition: background-color .15s ease;
}
.tp3d-spec-row:hover { background: rgba(0, 0, 0, .035); }

.tp3d-spec-label {
  font-weight: 600;
  color: #1a1a1a;
}

.tp3d-spec-value {
  color: #555;
  text-align: right;
}

/* ══════════════════════════════════════════════════
   VARIANTES TEMA OSCURO
══════════════════════════════════════════════════ */
/* Specs en tema oscuro global */
.tp3d-advanced-description.tp3d-theme-dark .tp3d-block--specs h3 { color: #fff; }
.tp3d-advanced-description.tp3d-theme-dark .tp3d-specs-intro { color: rgba(255, 255, 255, .68); }
.tp3d-advanced-description.tp3d-theme-dark .tp3d-spec-row { border-bottom-color: rgba(255, 255, 255, .12); }
.tp3d-advanced-description.tp3d-theme-dark .tp3d-spec-label { color: #fff; }
.tp3d-advanced-description.tp3d-theme-dark .tp3d-spec-value { color: rgba(255, 255, 255, .68); }

/* Specs con fondo oscuro por bloque */
.tp3d-block.tp3d-bg-dark.tp3d-block--specs h3 { color: #fff; }
.tp3d-block.tp3d-bg-dark .tp3d-specs-intro { color: rgba(255, 255, 255, .68); }
.tp3d-block.tp3d-bg-dark .tp3d-spec-row { border-bottom-color: rgba(255, 255, 255, .12); }
.tp3d-block.tp3d-bg-dark .tp3d-spec-label { color: #fff; }
.tp3d-block.tp3d-bg-dark .tp3d-spec-value { color: rgba(255, 255, 255, .68); }

/* Borde superior + hover de la tabla en oscuro */
.tp3d-advanced-description.tp3d-theme-dark .tp3d-specs,
.tp3d-block.tp3d-bg-dark .tp3d-specs { border-top-color: rgba(255, 255, 255, .16); }
.tp3d-advanced-description.tp3d-theme-dark .tp3d-spec-row:hover,
.tp3d-block.tp3d-bg-dark .tp3d-spec-row:hover { background: rgba(255, 255, 255, .05); }

/* Hero ya es oscuro por la imagen; aseguramos legibilidad de título y CTA en dark */
.tp3d-advanced-description.tp3d-theme-dark .tp3d-hero__title,
.tp3d-block.tp3d-bg-dark .tp3d-hero__title { color: #fff; }
.tp3d-advanced-description.tp3d-theme-dark .tp3d-hero__cta,
.tp3d-block.tp3d-bg-dark .tp3d-hero__cta { color: #fff; }

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 767px) {
  .tp3d-hero.tp3d-hero-h-sm { min-height: 220px; }
  .tp3d-hero.tp3d-hero-h-md { min-height: 300px; }
  .tp3d-hero.tp3d-hero-h-lg { min-height: 380px; }

  .tp3d-hero--banner.tp3d-hero-h-sm { min-height: 170px; }
  .tp3d-hero--banner.tp3d-hero-h-md { min-height: 220px; }
  .tp3d-hero--banner.tp3d-hero-h-lg { min-height: 280px; }

  .tp3d-hero__inner { padding: 36px 24px; }
  .tp3d-hero--banner .tp3d-hero__inner { padding: 28px 24px; }

  .tp3d-hero__title { font-size: 1.7rem; }
  .tp3d-hero--banner .tp3d-hero__title { font-size: 1.5rem; }

  .tp3d-hero__inner .rte-content { font-size: 1rem; }

  .tp3d-specs,
  .tp3d-specs[data-cols="2"] { grid-template-columns: 1fr; gap: 0; }
}

/* ==========================================================================
   TP3D Advanced Description — Galería de imágenes v1.10.0
   ========================================================================== */
.tp3d-block--gallery .tp3d-gallery-heading {
  font-size: 1.85rem;
  font-weight: 700;
  margin: 0 0 24px;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

/* ── Grilla N columnas ── */
.tp3d-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.tp3d-gallery-grid[data-cols="2"] { grid-template-columns: repeat(2, 1fr); }
.tp3d-gallery-grid[data-cols="3"] { grid-template-columns: repeat(3, 1fr); }
.tp3d-gallery-grid[data-cols="4"] { grid-template-columns: repeat(4, 1fr); }

.tp3d-gallery__item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #eee;
}
.tp3d-gallery__img { display: block; width: 100%; }

/* ── Texto opcional sobre la imagen ── */
.tp3d-gallery__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 16px 14px;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.25;
  background: linear-gradient(to top, rgba(0, 0, 0, .72), rgba(0, 0, 0, 0));
  pointer-events: none;
}
.tp3d-gallery-masonry .tp3d-gallery__caption,
.tp3d-gallery-stack   .tp3d-gallery__caption { font-size: 1.15rem; }

/* Recortar (uniforme): tiles cuadrados con la imagen recortada */
.tp3d-gallery--fit-cover .tp3d-gallery-grid .tp3d-gallery__item { aspect-ratio: 1; }
.tp3d-gallery--fit-cover .tp3d-gallery-grid .tp3d-gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.tp3d-gallery--fit-cover .tp3d-gallery-grid .tp3d-gallery__item:hover .tp3d-gallery__img {
  transform: scale(1.05);
}

/* Imagen entera: sin recorte, alto natural */
.tp3d-gallery--fit-contain .tp3d-gallery-grid .tp3d-gallery__img {
  width: 100%;
  height: auto;
}

/* ── A sangre / apiladas (estilo GoPro) ── */
.tp3d-gallery-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.tp3d-gallery--bleed .tp3d-gallery__item {
  border-radius: 0;
  background: transparent;
}
.tp3d-gallery-stack .tp3d-gallery__img { width: 100%; height: auto; }

/* Tema oscuro */
.tp3d-advanced-description.tp3d-theme-dark .tp3d-gallery__item,
.tp3d-block.tp3d-bg-dark .tp3d-gallery__item { background: #1c2026; }
.tp3d-advanced-description.tp3d-theme-dark .tp3d-block--gallery h3,
.tp3d-block.tp3d-bg-dark.tp3d-block--gallery h3 { color: #fff; }

/* ── Responsive móvil ── */
@media (max-width: 767px) {
  .tp3d-gallery-grid,
  .tp3d-gallery-grid[data-cols="2"],
  .tp3d-gallery-grid[data-cols="3"],
  .tp3d-gallery-grid[data-cols="4"] {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .tp3d-block--gallery .tp3d-gallery-heading { font-size: 1.4rem; }
}

/* ── Plantilla "Proporcional" (masonry: respeta la forma real de cada foto) ── */
.tp3d-gallery-masonry {
  column-count: 3;
  column-gap: 14px;
}
.tp3d-gallery-masonry[data-cols="2"] { column-count: 2; }
.tp3d-gallery-masonry[data-cols="3"] { column-count: 3; }
.tp3d-gallery-masonry[data-cols="4"] { column-count: 4; }
.tp3d-gallery-masonry .tp3d-gallery__item {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin: 0 0 14px;
  display: block;
}
.tp3d-gallery-masonry .tp3d-gallery__img { width: 100%; height: auto; }

/* ── Plantilla "Bento" (filas justificadas: fotos con su proporción real, sin recorte) ── */
.tp3d-gallery-bento {
  /* front.js (initJustifiedLayouts) posiciona los items en absolute y fija el alto.
     Cada celda calza la proporción de su foto → no hay recorte ni huecos. */
  position: relative;
  width: 100%;
}
.tp3d-gallery-bento .tp3d-gallery__item {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  background: #eee;
}
.tp3d-gallery-bento .tp3d-gallery__img {
  object-fit: cover; /* la celda ES la proporción de la foto, así que no recorta */
  transition: transform .35s ease;
}
.tp3d-gallery-bento .tp3d-gallery__item:hover .tp3d-gallery__img { transform: scale(1.04); }

/* ── Responsive de las plantillas nuevas ── */
@media (max-width: 767px) {
  .tp3d-gallery-masonry,
  .tp3d-gallery-masonry[data-cols="2"],
  .tp3d-gallery-masonry[data-cols="3"],
  .tp3d-gallery-masonry[data-cols="4"] { column-count: 2; column-gap: 10px; }
  .tp3d-gallery-masonry .tp3d-gallery__item { margin-bottom: 10px; }
  /* Bento: el alto de fila lo ajusta front.js según el ancho (targetRowHeight). */
}

/* ══════════════════════════════════════════════════
   CARRUSEL DE VIDEOS (video_carousel)
   Dos modos por bloque (data-motion):
   - scroll : la sección se fija (sticky) y panea en horizontal con el scroll;
              el alto del contenedor lo calcula front.js. En mobile cae a swipe.
   - swipe  : scroller horizontal con snap + flechas (front.js) + arrastre nativo.
══════════════════════════════════════════════════ */
.tp3d-vcar-heading {
  font-size: 1.85rem;
  font-weight: 700;
  margin: 0 0 18px;
  letter-spacing: -0.025em;
}
.tp3d-vcar { position: relative; }

/* — Modo SCROLL — Por defecto se comporta como scroller horizontal (fallback sin JS,
   con pocas slides o en mobile). front.js agrega .tp3d-vcar--pinned solo cuando hay
   distancia real para panear en desktop, y ahí activa el anclaje (sticky). */
.tp3d-vcar--scroll .tp3d-vcar__pin {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.tp3d-vcar--scroll .tp3d-vcar__pin::-webkit-scrollbar { display: none; }
.tp3d-vcar--scroll .tp3d-vcar__track {
  display: flex;
  gap: 20px;
  padding: 8px 24px;
}
.tp3d-vcar--scroll .tp3d-vcar__slide { scroll-snap-align: center; }

/* — Modo SCROLL = la sección se FIJA a pantalla completa (sticky 100vh) y panea en
   horizontal con el scroll, hasta que se ven todas las slides; recién ahí sigue la página.
   Las slides se AGRANDAN para llenar la pantalla (la imagen/video llena el recuadro y
   recorta si su proporción no coincide). El JS pone .tp3d-vcar--pinned y el alto del bloque. — */
.tp3d-vcar--scroll.tp3d-vcar--pinned .tp3d-vcar__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  scroll-snap-type: none;
  display: flex;
  align-items: center;
}
.tp3d-vcar--scroll.tp3d-vcar--pinned .tp3d-vcar__track { will-change: transform; align-items: center; }
.tp3d-vcar--scroll.tp3d-vcar--pinned .tp3d-vcar__slide { width: auto; height: auto; box-shadow: 0 24px 60px rgba(0, 0, 0, .32); }
.tp3d-vcar--scroll.tp3d-vcar--pinned .tp3d-vcar__media { height: 76vh; width: auto; }
.tp3d-vcar--scroll.tp3d-vcar--pinned.tp3d-vcar--sz-sm .tp3d-vcar__media { height: 62vh; }
.tp3d-vcar--scroll.tp3d-vcar--pinned.tp3d-vcar--sz-lg .tp3d-vcar__media { height: 88vh; }
.tp3d-vcar--scroll.tp3d-vcar--pinned .tp3d-vcar__media img,
.tp3d-vcar--scroll.tp3d-vcar--pinned .tp3d-vcar__media video { width: 100%; height: 100%; object-fit: cover; }

/* — Modo SWIPE (flechas / deslizar) —
   Layout flex de 3 columnas: [‹] [scroller] [›]. Las flechas quedan en los márgenes
   laterales, FUERA del área de los videos (nunca encima). */
.tp3d-vcar--swipe {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tp3d-vcar--swipe .tp3d-vcar__pin {
  flex: 1 1 auto;
  min-width: 0;            /* el scroller se encoge entre las flechas, no las empuja */
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.tp3d-vcar--swipe .tp3d-vcar__pin::-webkit-scrollbar { display: none; }
.tp3d-vcar--swipe .tp3d-vcar__track {
  display: flex;
  gap: 20px;
  padding: 8px 24px;
}
.tp3d-vcar--swipe .tp3d-vcar__slide { scroll-snap-align: center; }

/* — Slide / media (común) — */
.tp3d-vcar__slide {
  flex: 0 0 auto;
  width: clamp(280px, 48vw, 680px);   /* Mediano (default) */
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .28);
}
/* Tamaño de los videos (por bloque): Chico / Mediano / Grande */
.tp3d-vcar--sz-sm .tp3d-vcar__slide { width: clamp(230px, 36vw, 460px); }
.tp3d-vcar--sz-lg .tp3d-vcar__slide { width: clamp(320px, 66vw, 980px); }
.tp3d-vcar__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
.tp3d-vcar__video,
.tp3d-vcar__media iframe,
.tp3d-vcar__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  display: block;
}
.tp3d-vcar__embed { position: absolute; inset: 0; cursor: pointer; }

/* Botón de play (slides de link) */
.tp3d-vcar__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 66px;
  height: 66px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: rgba(0, 0, 0, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, transform .2s ease;
}
.tp3d-vcar__play:hover {
  background: var(--tp3d-accent, #2fb5d2);
  transform: translate(-50%, -50%) scale(1.06);
}
.tp3d-vcar__play span {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff;
}

/* Caption (título + texto superpuestos) */
.tp3d-vcar__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: linear-gradient(to top, rgba(0, 0, 0, .8), rgba(0, 0, 0, 0));
  color: #fff;
  pointer-events: none;
}
.tp3d-vcar__title { font-size: 1.15rem; font-weight: 700; line-height: 1.25; }
.tp3d-vcar__text  { font-size: .9rem; opacity: .85; line-height: 1.5; }

/* Flechas (modo swipe). Ahora son columnas del flex container (gutters laterales),
   ya no se superponen al video — van afuera, a los costados del scroller. */
.tp3d-vcar__arrow {
  flex: 0 0 auto;
  z-index: 3;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  transition: background .2s ease, opacity .2s ease, transform .2s ease;
}
.tp3d-vcar__arrow:hover {
  background: var(--tp3d-accent, #2fb5d2);
  transform: scale(1.06);
}
/* --prev / --next ya no necesitan left/right: el orden del DOM las ubica a los lados. */

/* Estado "en el extremo": atenuada PERO sigue capturando el click. No usamos el
   atributo [disabled] porque en Chrome/Safari deja pasar el click al video de
   atrás y lo reproduce; con la clase, front.js bloquea el click y no pasa nada. */
.tp3d-vcar__arrow.is-disabled {
  opacity: .35;
  cursor: default;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .22);
}
.tp3d-vcar__arrow.is-disabled:hover {
  background: rgba(0, 0, 0, .55);
  transform: none;
}

/* ── Carrusel de FOTOS ──
   Reusa .tp3d-vcar--swipe (scroller horizontal + flechas afuera + setupSwipe del JS).
   Solo cambia el tratamiento del slide de imagen. */
/* Slide de foto: un poco más angosto que el de video (se ven más fotos a la vez). */
.tp3d-vcar--photos .tp3d-vcar__slide { width: clamp(240px, 38vw, 460px); }
.tp3d-vcar--photos.tp3d-vcar--sz-sm .tp3d-vcar__slide { width: clamp(200px, 30vw, 360px); }
.tp3d-vcar--photos.tp3d-vcar--sz-lg .tp3d-vcar__slide { width: clamp(300px, 56vw, 720px); }
.tp3d-vcar--photos .tp3d-vcar__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}
.tp3d-vcar--photos .tp3d-vcar__photo {
  width: 100%;
  height: 100%;
  display: block;
}
.tp3d-vcar--photos.tp3d-vcar--fit-cover  .tp3d-vcar__photo { object-fit: cover; }
.tp3d-vcar--photos.tp3d-vcar--fit-contain .tp3d-vcar__photo { object-fit: contain; }

/* Mobile: el modo scroll cae a deslizar con el dedo (front.js no agrega --pinned en
   mobile, así que ya se comporta como scroller; acá solo ajustamos tamaños). */
@media (max-width: 767px) {
  .tp3d-vcar__track { padding: 8px 16px !important; }
  .tp3d-vcar__slide { width: 86vw; }
  .tp3d-vcar__arrow { display: none; }
  .tp3d-vcar-heading { font-size: 1.4rem; }
}

/* ══════════════════════════════════════════════════
   FAQ (acordeón) — v1.20.0 · rediseño minimalista/aireado
   Lista limpia con divisores hairline (sin cajas), pregunta en color neutro y un
   chevron que rota al abrir. Una pregunta abierta a la vez (front.js); el alto de la
   respuesta lo fija el JS (scrollHeight). Ícono 100% CSS; .tp3d-faq__q es <button>.
══════════════════════════════════════════════════ */
.tp3d-faq { border-top: 1px solid rgba(0, 0, 0, .09); }
.tp3d-faq__intro { margin-bottom: 22px; color: #6b6b6b; line-height: 1.7; }
.tp3d-faq__item { border-bottom: 1px solid rgba(0, 0, 0, .09); }

.tp3d-faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 4px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.4;
  color: #1c1c1c;
  transition: color .18s ease;
}
.tp3d-faq__q:hover,
.tp3d-faq__item.is-open .tp3d-faq__q { color: var(--tp3d-accent, #2fb5d2); }
.tp3d-faq__q:focus-visible { outline: 2px solid var(--tp3d-accent, #2fb5d2); outline-offset: 3px; border-radius: 4px; }
.tp3d-faq__q-text { flex: 1; }

/* Chevron (100% CSS): "v" que rota 180° al abrir */
.tp3d-faq__icon {
  position: relative;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: #9a9a9a;
  transition: color .2s ease, transform .3s cubic-bezier(.4, 0, .2, 1);
}
.tp3d-faq__icon::before,
.tp3d-faq__icon::after {
  content: "";
  position: absolute;
  top: 10px;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.tp3d-faq__icon::before { left: 3px;  transform: rotate(45deg); }
.tp3d-faq__icon::after  { right: 3px; transform: rotate(-45deg); }
.tp3d-faq__q:hover .tp3d-faq__icon { color: var(--tp3d-accent, #2fb5d2); }
.tp3d-faq__item.is-open .tp3d-faq__icon { color: var(--tp3d-accent, #2fb5d2); transform: rotate(180deg); }

/* Respuesta colapsable — NO usar display:none; el JS fija max-height en px */
.tp3d-faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s cubic-bezier(.4, 0, .2, 1);
}
.tp3d-faq__a .rte-content {
  padding: 0 4px 22px;
  font-size: .98rem;
  line-height: 1.75;
  color: #5a5a5a;
}

/* Tema oscuro */
.tp3d-advanced-description.tp3d-theme-dark .tp3d-faq,
.tp3d-block.tp3d-bg-dark .tp3d-faq { border-top-color: rgba(255, 255, 255, .12); }
.tp3d-advanced-description.tp3d-theme-dark .tp3d-faq__item,
.tp3d-block.tp3d-bg-dark .tp3d-faq__item { border-bottom-color: rgba(255, 255, 255, .12); }
.tp3d-advanced-description.tp3d-theme-dark .tp3d-faq__intro,
.tp3d-block.tp3d-bg-dark .tp3d-faq__intro { color: rgba(255, 255, 255, .6); }
.tp3d-advanced-description.tp3d-theme-dark .tp3d-faq__q,
.tp3d-block.tp3d-bg-dark .tp3d-faq__q { color: #fff; }
.tp3d-advanced-description.tp3d-theme-dark .tp3d-faq__q:hover,
.tp3d-block.tp3d-bg-dark .tp3d-faq__q:hover,
.tp3d-advanced-description.tp3d-theme-dark .tp3d-faq__item.is-open .tp3d-faq__q,
.tp3d-block.tp3d-bg-dark .tp3d-faq__item.is-open .tp3d-faq__q { color: var(--tp3d-accent, #2fb5d2); }
.tp3d-advanced-description.tp3d-theme-dark .tp3d-faq__icon,
.tp3d-block.tp3d-bg-dark .tp3d-faq__icon { color: rgba(255, 255, 255, .55); }
.tp3d-advanced-description.tp3d-theme-dark .tp3d-faq__a .rte-content,
.tp3d-block.tp3d-bg-dark .tp3d-faq__a .rte-content { color: rgba(255, 255, 255, .68); }

@media (max-width: 767px) {
  .tp3d-faq__q { font-size: 1rem; padding: 16px 2px; gap: 14px; }
  .tp3d-faq__a .rte-content { padding: 0 2px 18px; }
}

/* ══════════════════════════════════════════════════
   FAQ · variante TARJETAS ELEVADAS (.tp3d-faq--cards) — v1.21.0
   Modificador visual sobre .tp3d-faq; reutiliza el MISMO markup/contrato JS
   (.tp3d-faq__item/__q/__icon/__a/.is-open). El JS sigue fijando max-height en px
   sobre .tp3d-faq__a (el padding va en .rte-content, no falsea scrollHeight).
   Sin color-mix() (compat PS 8.0.5).
══════════════════════════════════════════════════ */
.tp3d-faq--cards {
  --tp3d-fc-card-bg:       #f3f5f7;   /* gris claro en reposo: se distingue de la lista sobre fondo blanco */
  --tp3d-fc-card-bg-open:  #ffffff;   /* blanco al abrir (se "eleva") */
  --tp3d-fc-border:        rgba(0, 0, 0, .08);
  --tp3d-fc-border-open:   rgba(0, 0, 0, .12);
  --tp3d-fc-q:             #1c1c1c;
  --tp3d-fc-a:             #5a5a5a;
  --tp3d-fc-icon:          #9a9a9a;
  --tp3d-fc-shadow:        0 1px 3px rgba(16, 24, 40, .06);
  --tp3d-fc-shadow-hover:  0 6px 18px rgba(16, 24, 40, .10);
  --tp3d-fc-shadow-open:   0 14px 36px rgba(16, 24, 40, .15);
  border-top: 0;            /* anula el hairline de la lista base */
  display: flex;
  flex-direction: column;
  gap: 14px;
}
/* Tarjeta = el .tp3d-faq__item existente */
.tp3d-faq--cards .tp3d-faq__item {
  border-bottom: 0;         /* anula el divisor de la lista base */
  background: var(--tp3d-fc-card-bg);
  border: 1px solid var(--tp3d-fc-border);
  border-radius: 14px;
  overflow: hidden;         /* mantiene el redondeo al colapsar la respuesta */
  box-shadow: var(--tp3d-fc-shadow);
  transition: box-shadow .25s ease, border-color .25s ease, background-color .25s ease, transform .25s ease;
}
.tp3d-faq--cards .tp3d-faq__item:hover {
  box-shadow: var(--tp3d-fc-shadow-hover);
  border-color: var(--tp3d-fc-border-open);
}
/* Se eleva al abrir */
.tp3d-faq--cards .tp3d-faq__item.is-open {
  background: var(--tp3d-fc-card-bg-open);
  border-color: var(--tp3d-fc-border-open);
  box-shadow: var(--tp3d-fc-shadow-open);
  transform: translateY(-2px);
}
.tp3d-faq--cards .tp3d-faq__q { padding: 20px 22px; color: var(--tp3d-fc-q); }
.tp3d-faq--cards .tp3d-faq__q:hover,
.tp3d-faq--cards .tp3d-faq__item.is-open .tp3d-faq__q { color: var(--tp3d-accent, #2fb5d2); }
.tp3d-faq--cards .tp3d-faq__icon { color: var(--tp3d-fc-icon); }
.tp3d-faq--cards .tp3d-faq__item.is-open .tp3d-faq__icon { color: var(--tp3d-accent, #2fb5d2); }
.tp3d-faq--cards .tp3d-faq__a .rte-content { padding: 0 22px 22px; color: var(--tp3d-fc-a); }

/* Tema oscuro (por bloque .tp3d-bg-dark y global .tp3d-theme-dark): solo variables */
.tp3d-block.tp3d-bg-dark .tp3d-faq--cards,
.tp3d-advanced-description.tp3d-theme-dark .tp3d-faq--cards {
  --tp3d-fc-card-bg:       rgba(255, 255, 255, .035);
  --tp3d-fc-card-bg-open:  rgba(255, 255, 255, .06);
  --tp3d-fc-border:        rgba(255, 255, 255, .10);
  --tp3d-fc-border-open:   rgba(255, 255, 255, .18);
  --tp3d-fc-q:             #ffffff;
  --tp3d-fc-a:             rgba(255, 255, 255, .68);
  --tp3d-fc-icon:          rgba(255, 255, 255, .55);
  --tp3d-fc-shadow:        0 1px 2px rgba(0, 0, 0, .35);
  --tp3d-fc-shadow-hover:  0 6px 18px rgba(0, 0, 0, .45);
  --tp3d-fc-shadow-open:   0 16px 40px rgba(0, 0, 0, .55);
}

@media (max-width: 767px) {
  .tp3d-faq--cards { gap: 12px; }
  .tp3d-faq--cards .tp3d-faq__q { padding: 16px 16px; }
  .tp3d-faq--cards .tp3d-faq__a .rte-content { padding: 0 16px 18px; }
  .tp3d-faq--cards .tp3d-faq__item.is-open { transform: none; } /* evita micro-saltos táctiles */
}

/* ══════════════════════════════════════════════════
   Formato del editor enriquecido dentro del contenido — v1.23.0
   (H3, cita y enlaces que crea la barra flotante; el acento sale del bloque)
══════════════════════════════════════════════════ */
.rte-content h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.25; margin: 1.1em 0 .4em; letter-spacing: -.01em; }
.rte-content blockquote {
  margin: 1em 0;
  padding: .5em 0 .5em 1.1em;
  border-left: 3px solid var(--tp3d-accent, #2fb5d2);
  color: #666;
  font-style: italic;
}
.rte-content a { color: var(--tp3d-accent, #2fb5d2); text-decoration: underline; }
.rte-content a:hover { filter: brightness(1.08); }

/* ── Resaltado (highlight) legible aun en tema oscuro / fondo oscuro — v1.24.0 ──
   El span de fondo claro que genera hiliteColor necesita texto oscuro para leerse. Es un
   selector (baja especificidad): si el usuario fijó color de texto inline, ese gana. */
.tp3d-advanced-description.tp3d-theme-dark [style*="background-color"],
.tp3d-block.tp3d-bg-dark [style*="background-color"] { color: #1c1c1c; }
