/* ==========================================================================
   Landing «40 aniversario Calzados Elche» · WiEmpire · 28/09/2026
   Todo va acotado a .ce40 para no tocar el resto del tema Warehouse.
   Tokens heredados de los bloques ce-* de la home: Playfair Display para
   titulares, granate #8B1F5E / #941580, negro #161616, líneas rosadas.
   Mobile first: hero apilado → 2 columnas en escritorio; tramos apilados →
   en fila; cronología vertical → horizontal.
   ========================================================================== */

.ce40 {
  --ce40-g: #8B1F5E;
  --ce40-brand: #941580;
  --ce40-ink: #161616;
  --ce40-txt: #3a3a3a;
  --ce40-muted: #6a6a66;
  --ce40-line: #ecdfe6;
  --ce40-rose: #d8b8cb;
  --ce40-cream: #faf6f3;
  --ce40-soft: #f8f2f5;
  --ce40-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --ce40-r: 20px;
  max-width: 1200px;
  margin: 0 auto;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ce40-txt);
}

.ce40 [id] { scroll-margin-top: 120px; }

.ce40 p { margin: 0 0 14px; color: var(--ce40-txt); }
.ce40 p:last-child { margin-bottom: 0; }

.ce40-sec { padding: clamp(28px, 5vw, 60px) 0; }

/* Titulares */
.ce40-h1,
.ce40-h2 {
  font-family: var(--ce40-serif);
  font-weight: 600;
  color: var(--ce40-ink);
  text-transform: none;
  letter-spacing: 0;
  padding: 0;
}
.ce40-h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.06;
  margin: 0 0 14px;
}
.ce40-h2 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  margin: 0 0 14px;
}
.ce40-h2--center { text-align: center; }
.ce40-h2--light { color: #fff; }

/* Cinta "1986 · 2026" (misma idea que .ce-her de la home) */
.ce40-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ce40-g);
}
.ce40-eyebrow__line { height: 1px; width: 40px; background: var(--ce40-rose); }

/* Botones */
.ce40-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 13px 28px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  text-transform: none;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
  width: 100%;
}
/* El tema aplica a:link:not(.nav-link):not(.btn){color:#777} y a:hover a #333 con más
   especificidad que una clase; por eso los colores de enlace-botón van con #content.ce40 */
#content.ce40 .ce40-btn--primary,
#content.ce40 .ce40-btn--primary:link,
#content.ce40 .ce40-btn--primary:visited {
  background: var(--ce40-ink);
  color: #fff;
  box-shadow: 0 6px 16px rgba(22, 22, 22, .14);
}
#content.ce40 .ce40-btn--primary:hover,
#content.ce40 .ce40-btn--primary:focus {
  background: var(--ce40-brand);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(148, 21, 128, .28);
}
#content.ce40 .ce40-btn--light,
#content.ce40 .ce40-btn--light:link,
#content.ce40 .ce40-btn--light:visited {
  background: #fff;
  color: var(--ce40-ink);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}
#content.ce40 .ce40-btn--light:hover,
#content.ce40 .ce40-btn--light:focus {
  background: var(--ce40-brand);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .28);
}
#content.ce40 .ce40-btn:active { transform: translateY(1px); box-shadow: none; }
#content.ce40 .ce40-btn:focus-visible { outline: 2px solid var(--ce40-brand); outline-offset: 3px; }
@media (min-width: 768px) {
  .ce40-btn { width: auto; }
}

/* ---------- Hero ---------- */
.ce40-hero {
  display: grid;
  gap: 26px;
  padding-top: clamp(10px, 2vw, 24px);
}
.ce40-hero__frame {
  position: relative;
  aspect-ratio: 4 / 3;
  min-height: 250px;
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(120% 90% at 18% 8%, #fff 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(145deg, #fbf1f5 0%, #f3e3ea 55%, #ead2dd 100%);
}
.ce40-hero__img { display: block; width: 100%; height: 100%; }
.ce40-hero__img--contain { object-fit: contain; padding: 7%; }
.ce40-hero__img--cover { object-fit: cover; }
/* Composición tipográfica mientras no haya foto */
.ce40-hero__art {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10% 8% 16%;
  text-align: center;
}
.ce40-hero__num {
  font-family: var(--ce40-serif);
  font-weight: 700;
  font-size: clamp(132px, 34vw, 250px);
  line-height: .88;
  letter-spacing: -.03em;
  color: var(--ce40-g);
}
.ce40-hero__anios {
  font-family: var(--ce40-serif);
  font-weight: 600;
  font-size: clamp(16px, 2.2vw, 26px);
  letter-spacing: .44em;
  text-transform: uppercase;
  margin: 6px 0 0 .44em;
  color: var(--ce40-ink);
}
.ce40-hero__since {
  display: block;
  width: auto;
  height: auto;
  max-width: 46%;
  max-height: 64px;
  margin-top: 18px;
  opacity: .92;
}
.ce40-thanks__firma {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  margin: 22px 0 0;
  opacity: .9;
}
@media (min-width: 768px) {
  .ce40-thanks__firma { margin-left: auto; margin-right: auto; }
}
@media (min-width: 992px) {
  .ce40-hero__num { font-size: clamp(190px, 17vw, 250px); }
}
.ce40-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  box-shadow: 0 6px 18px rgba(22, 22, 22, .10);
  font-family: var(--ce40-serif);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--ce40-ink);
  white-space: nowrap;
}
.ce40-badge__dot { color: var(--ce40-g); }
.ce40 .ce40-hero__lead {
  font-family: var(--ce40-serif);
  font-size: clamp(18px, 2vw, 22px);
  color: var(--ce40-ink);
  margin: 0 0 12px;
}
.ce40 .ce40-hero__text { font-size: 16px; margin: 0 0 22px; }
@media (min-width: 992px) {
  .ce40-hero {
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    align-items: center;
  }
  .ce40-badge { left: 22px; bottom: 22px; font-size: 13px; padding: 9px 16px; }
}

/* ---------- Promoción (4.2) ---------- */
.ce40-promo__panel {
  border: 1px solid var(--ce40-line);
  border-radius: 26px;
  padding: clamp(22px, 4vw, 44px);
  background: linear-gradient(180deg, #fcf8fa 0%, #f7eef3 100%);
}
.ce40-promo__head { max-width: 720px; margin: 0 auto 22px; text-align: center; }
.ce40-promo__intro { font-size: 16px; }
.ce40-tiers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.ce40-tier {
  position: relative;
  background: #fff;
  border: 1px solid var(--ce40-line);
  border-radius: var(--ce40-r);
  padding: 24px 20px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.ce40-tier--top { border-color: var(--ce40-rose); box-shadow: 0 12px 30px rgba(139, 31, 94, .10); }
.ce40-tier__num {
  font-family: var(--ce40-serif);
  font-weight: 700;
  font-size: clamp(46px, 6vw, 64px);
  line-height: 1;
  color: var(--ce40-g);
}
.ce40-tier__num small { font-size: .42em; margin-left: 3px; font-weight: 600; }
.ce40-tier__txt { font-size: 15px; font-weight: 600; color: var(--ce40-ink); line-height: 1.4; }
/* Con .ce40 delante para ganar a la regla genérica .ce40 p (margen) */
.ce40 .ce40-promo__legal {
  display: block;
  font-size: 13px;
  color: var(--ce40-muted);
  margin: 18px auto 0;
  max-width: 720px;
  text-align: center;
  line-height: 1.6;
}
.ce40-promo__actions {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.ce40-promo__cond {
  font-size: 13px;
  color: var(--ce40-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--ce40-rose);
  cursor: default;
}
@media (min-width: 768px) {
  .ce40-tiers { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .ce40-promo__actions { flex-direction: row; justify-content: center; gap: 22px; }
}


/* Textos editables (párrafos generados por el editor) dentro de la intro y la nota legal de la promo */
.ce40 .ce40-promo__intro p,
.ce40 .ce40-promo__legal p { color: inherit; font-size: inherit; line-height: inherit; margin: 0 0 10px; }
.ce40 .ce40-promo__intro p:last-child,
.ce40 .ce40-promo__legal p:last-child { margin-bottom: 0; }

/* ---------- Más vendidos (carrusel con scroll-snap) ---------- */
.ce40-bs__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.ce40-bs__head .ce40-h2 { margin-bottom: 0; }
.ce40-bs__nav { display: none; gap: 8px; flex-shrink: 0; }
.ce40-bs__nav.is-hidden { display: none !important; }
.ce40-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--ce40-line);
  background: #fff;
  color: var(--ce40-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, opacity .2s;
}
.ce40-arrow svg { width: 20px; height: 20px; }
.ce40-arrow:hover { background: var(--ce40-ink); color: #fff; border-color: var(--ce40-ink); }
.ce40-arrow[disabled] { opacity: .35; cursor: default; background: #fff; color: var(--ce40-ink); border-color: var(--ce40-line); }
.ce40-bs__track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 14px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.ce40-bs__track::-webkit-scrollbar { display: none; }
.ce40-bs__item {
  flex: 0 0 calc((100% - 14px) / 2);
  min-width: 0;
  scroll-snap-align: start;
}
.ce40-pcard {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #f0e6eb;
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}
.ce40-pcard:hover { box-shadow: 0 12px 28px rgba(22, 22, 22, .08); transform: translateY(-2px); }
.ce40-pcard__media {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1;
  background: #faf7f8;
}
.ce40-pcard__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.ce40-pcard__flag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--ce40-brand);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.ce40-pcard__body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.ce40-pcard__brand { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ce40-muted); }
.ce40-pcard__name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ce40-ink);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#content.ce40 .ce40-pcard__name,
#content.ce40 .ce40-pcard__name:link,
#content.ce40 .ce40-pcard__name:visited { color: var(--ce40-ink); text-decoration: none; }
#content.ce40 .ce40-pcard__name:hover,
#content.ce40 .ce40-pcard__name:focus { color: var(--ce40-brand); text-decoration: none; }
.ce40-pcard__price { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.ce40-pcard__now { font-size: 16px; font-weight: 700; color: var(--ce40-brand); }
.ce40-pcard__was { font-size: 13px; color: var(--ce40-muted); text-decoration: line-through; }
@media (min-width: 768px) {
  .ce40-bs__nav { display: inline-flex; }
  .ce40-bs__item { flex-basis: calc((100% - 28px) / 3); }
}
@media (min-width: 992px) {
  .ce40-bs__item { flex-basis: calc((100% - 42px) / 4); }
}
@media (min-width: 1200px) {
  .ce40-bs__item { flex-basis: calc((100% - 56px) / 5); }
}

/* ---------- Bloques texto + imagen (4.3 y 4.5) ---------- */
.ce40-split { display: grid; gap: 26px; align-items: center; }
.ce40-split__img { display: block; width: 100%; height: auto; border-radius: 26px; }
.ce40-year-card,
.ce40-brands {
  aspect-ratio: 4 / 3;
  min-height: 240px;
  border-radius: 26px;
}
.ce40-year-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: linear-gradient(160deg, #fbf1f5 0%, #ead2dd 100%);
}
.ce40-year-card__label { font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--ce40-g); }
.ce40-year-card__year {
  font-family: var(--ce40-serif);
  font-weight: 700;
  font-size: clamp(76px, 11vw, 128px);
  line-height: 1;
  color: var(--ce40-g);
}
.ce40-year-card__place { font-size: 14px; color: var(--ce40-muted); }
.ce40-brands {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 24px;
  align-items: center;
  background: var(--ce40-cream);
}
.ce40-brands__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  font-size: 13px;
  color: var(--ce40-muted);
}
.ce40-brands__item img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
@media (min-width: 992px) {
  .ce40-split { grid-template-columns: 5fr 6fr; gap: 60px; }
  .ce40-split--rev .ce40-split__media { order: 2; }
  .ce40-split__body p { font-size: 17px; }
}

/* ---------- Cronología (4.4) ---------- */
.ce40-crono .ce40-h2 { margin-bottom: 28px; }
.ce40-tl { position: relative; padding-left: 30px; }
.ce40-tl__line {
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--ce40-line);
  border-radius: 2px;
  overflow: hidden;
}
.ce40-tl__fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0;
  background: var(--ce40-g);
  transition: height .25s linear;
}
.ce40-tl__list { list-style: none; margin: 0; padding: 0; }
.ce40-tl__item { position: relative; padding: 0 0 26px; }
.ce40-tl__item:last-child { padding-bottom: 0; }
.ce40-tl__dot {
  position: absolute;
  left: -30px;
  top: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--ce40-rose);
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.ce40-tl__item.is-on .ce40-tl__dot {
  background: var(--ce40-g);
  border-color: var(--ce40-g);
  box-shadow: 0 0 0 5px rgba(139, 31, 94, .14);
}
.ce40-tl__year {
  display: block;
  font-family: var(--ce40-serif);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
  color: var(--ce40-ink);
  margin-bottom: 4px;
  transition: color .3s;
}
.ce40-tl__item.is-on .ce40-tl__year { color: var(--ce40-g); }
.ce40 .ce40-tl__txt { font-size: 15px; line-height: 1.6; margin: 0; }
@media (min-width: 992px) {
  .ce40-tl { padding: 40px 0 0; }
  .ce40-tl__line { left: 0; right: 0; top: 9px; bottom: auto; width: auto; height: 2px; }
  .ce40-tl__fill { width: 0; height: 100%; transition: width .25s linear; }
  .ce40-tl__list { display: grid; grid-template-columns: repeat(var(--ce40-tl-n, 5), 1fr); gap: 24px; }
  .ce40-tl__item { padding: 0 6px 0 0; }
  .ce40-tl__dot { left: 0; top: -40px; }
}

/* ---------- Categorías (4.6): carrusel con imagen, como .ce-buscado de la home ---------- */
.ce40-cats__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.ce40-cats__head .ce40-h2 { margin-bottom: 0; }
.ce40-cats__nav { display: none; gap: 8px; flex-shrink: 0; }
.ce40-cats__nav.is-hidden { display: none !important; }
.ce40-cats {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.ce40-cats::-webkit-scrollbar { display: none; }
.ce40-cat {
  flex: 0 0 clamp(150px, 42vw, 215px);
  min-width: 0;
  scroll-snap-align: start;
  display: block;
  text-decoration: none;
}
.ce40-cat__media {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: #F2EFE9;
}
.ce40-cat__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.ce40-cat:hover .ce40-cat__media img { transform: scale(1.05); }
.ce40-cat__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 10px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ce40-ink);
  transition: color .2s;
}
.ce40-cat__label svg { width: 18px; height: 18px; color: var(--ce40-g); flex: 0 0 auto; }
/* El tema pinta los enlaces en #777 con a:link:not(.nav-link):not(.btn); de ahí #content.ce40 */
#content.ce40 a.ce40-cat,
#content.ce40 a.ce40-cat:link,
#content.ce40 a.ce40-cat:visited { color: var(--ce40-ink); text-decoration: none; }
#content.ce40 a.ce40-cat:hover,
#content.ce40 a.ce40-cat:focus { color: var(--ce40-g); text-decoration: none; }
#content.ce40 a.ce40-cat:hover .ce40-cat__label,
#content.ce40 a.ce40-cat:focus .ce40-cat__label { color: var(--ce40-g); }
#content.ce40 a.ce40-cat:focus-visible { outline: 2px solid var(--ce40-brand); outline-offset: 3px; border-radius: 12px; }
@media (min-width: 768px) {
  .ce40-cats__nav { display: inline-flex; }
}
@media (min-width: 1200px) {
  .ce40-cat { flex-basis: calc((100% - 80px) / 6); }
}
@media (prefers-reduced-motion: reduce) {
  .ce40-cat__media img { transition: none; }
}

/* ---------- Vídeos (testimonios) · carrusel 9:16 ----------
   Móvil: 1 completo + asomo del siguiente (swipe nativo). Tablet: 2. Escritorio: 3 completos + asomo
   del anterior/siguiente, flechas laterales. El vídeo solo se descarga al pulsar (ver ce40.js). */
.ce40-vids { --vid-gap: 16px; --vid-peek: 0px; }
.ce40-vids__head { max-width: 760px; margin: 0 auto clamp(28px, 3.5vw, 44px); text-align: center; } /* aire bajo la descripción */
.ce40-vids__head .ce40-h2 { margin-bottom: 10px; }
.ce40 .ce40-vids__intro p { font-size: 16px; line-height: 1.7; margin: 0; }
.ce40-vids__stage { position: relative; }
.ce40-vids__track {
  display: flex;
  gap: var(--vid-gap);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--vid-peek);
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px 0 6px;
}
.ce40-vids__track::-webkit-scrollbar { display: none; }
.ce40-vid {
  position: relative;
  flex: 0 0 calc(100% - 60px);
  min-width: 0;
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  overflow: hidden;
  background: #1b1b1b;
  scroll-snap-align: start;
  isolation: isolate;
  -webkit-mask-image: -webkit-radial-gradient(white, black); /* recorte redondeado del vídeo en Safari */
}
.ce40-vid__video,
.ce40-vid__cover,
.ce40-vid__poster { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.ce40-vid__video { display: block; object-fit: cover; background: #000; }
#content.ce40 .ce40-vid__cover {
  z-index: 2;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #1b1b1b;
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.ce40-vid__poster { display: block; object-fit: cover; transition: transform .5s ease; }
.ce40-vid__cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .58) 0%, rgba(0, 0, 0, .22) 24%, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, 0) 80%, rgba(0, 0, 0, .22) 100%);
}
.ce40-vid__meta {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.ce40-vid__play {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.ce40-vid__play svg { width: 20px; height: 20px; margin-left: 2px; }
.ce40-vid__text { display: flex; flex-direction: column; min-width: 0; }
.ce40-vid__name { font-size: 17px; font-weight: 600; line-height: 1.25; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.ce40-vid__role { font-size: 13px; line-height: 1.35; color: rgba(255, 255, 255, .9); text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
.ce40-vid__cover:hover .ce40-vid__poster { transform: scale(1.03); }
.ce40-vid__cover:hover .ce40-vid__play,
.ce40-vid__cover:focus-visible .ce40-vid__play { background: var(--ce40-brand); border-color: var(--ce40-brand); transform: scale(1.06); }
#content.ce40 .ce40-vid__cover:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
#content.ce40 .ce40-vid.is-active .ce40-vid__cover { display: none; } /* misma especificidad que la regla base de la portada */
/* Flechas laterales (tablet y escritorio) */
.ce40-vids__nav { display: none; }
.ce40 .ce40-vids__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  box-shadow: 0 6px 18px rgba(22, 22, 22, .18);
}
.ce40 .ce40-vids__prev { left: 12px; }
.ce40 .ce40-vids__next { right: 12px; }
.ce40 .ce40-vids__arrow[disabled] { opacity: 0; visibility: hidden; }
.ce40-vids__nav.is-hidden { display: none !important; }
@media (min-width: 768px) {
  .ce40-vids { --vid-peek: 8%; }
  .ce40-vid { flex-basis: calc((100% - var(--vid-gap) - 2 * var(--vid-peek)) / 2); }
  .ce40-vids__nav { display: block; }
}
@media (min-width: 992px) {
  .ce40-vids { --vid-peek: 6.5%; }
  .ce40-vid { flex-basis: calc((100% - 2 * var(--vid-gap) - 2 * var(--vid-peek)) / 3); }
}
@media (prefers-reduced-motion: reduce) {
  .ce40-vid__poster, .ce40-vid__play { transition: none; }
}

/* ---------- Vídeo horizontal sobre el carrusel (spot, sin título) ----------
   Mismo comportamiento que los verticales: portada diferida y vídeo solo al pulsar. */
.ce40-vidwide { padding-bottom: clamp(8px, 1.5vw, 16px); }
.ce40 .ce40-vidwide__title { margin-bottom: clamp(16px, 2vw, 22px); }
.ce40-vidwide + .ce40-vids { padding-top: clamp(48px, 6vw, 80px); } /* aire entre el vídeo horizontal y el título de los verticales */
#content.ce40 .ce40-vid.ce40-vid--wide {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  aspect-ratio: 1200 / 676;
}
.ce40-vid--wide .ce40-vid__cover::before { background: linear-gradient(180deg, rgba(0, 0, 0, .06) 0%, rgba(0, 0, 0, .22) 100%); }
.ce40-vid__play--center {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
}
.ce40-vid__play--center svg { width: 30px; height: 30px; margin-left: 4px; }
@media (max-width: 767px) {
  .ce40-vid__play--center { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
  .ce40-vid__play--center svg { width: 24px; height: 24px; }
}

/* ---------- Agradecimiento (4.7) ---------- */
.ce40-thanks__inner { max-width: 680px; margin: 0 auto; text-align: left; }
.ce40-thanks__inner p { font-size: 17px; line-height: 1.75; }
@media (min-width: 768px) {
  .ce40-thanks__inner { text-align: center; }
}

/* ---------- Vídeo (4.8, solo cuando exista) ---------- */
.ce40-video__el { display: block; width: 100%; height: auto; border-radius: 26px; background: #000; }

/* ---------- Cierre (4.9) ---------- */
.ce40-close__panel {
  border-radius: 26px;
  padding: clamp(30px, 5vw, 56px) clamp(20px, 4vw, 48px);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(148, 21, 128, .45) 0%, rgba(148, 21, 128, 0) 55%),
    var(--ce40-ink);
  color: #fff;
  text-align: center;
}
.ce40-close__panel p { color: rgba(255, 255, 255, .84); font-size: 17px; max-width: 620px; margin: 0 auto 24px; }

/* ---------- FAQ (6) ---------- */
.ce40-faq .ce40-h2 { margin-bottom: 18px; }
.ce40-faq__list { max-width: 860px; margin: 0 auto; }
.ce40-faq__item { border-bottom: 1px solid var(--ce40-line); }
.ce40-faq__item:first-child { border-top: 1px solid var(--ce40-line); }
.ce40-faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 34px 16px 4px;
  position: relative;
}
.ce40-faq__item summary::-webkit-details-marker { display: none; }
.ce40-faq__q {
  display: inline;
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ce40-ink);
  text-transform: none;
}
.ce40-faq__item summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ce40-g);
  font-size: 22px;
  line-height: 1;
}
.ce40-faq__item[open] summary::after { content: "−"; }
.ce40-faq__a { padding: 0 4px 18px; }
.ce40-faq__a p { font-size: 15px; line-height: 1.7; color: var(--ce40-muted); }

/* ---------- Aparición suave (solo con JS; sin JS todo es visible) ---------- */
.ce40--js .ce40-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
}
.ce40--js .ce40-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .ce40--js .ce40-reveal { opacity: 1; transform: none; transition: none; }
  .ce40-tl__fill,
  .ce40-tl__dot,
  .ce40-cat,
  .ce40-pcard,
  .ce40-btn { transition: none; }
}

/* Enlaces dentro del texto de la landing */
#content.ce40 .ce40-split__body a,
#content.ce40 .ce40-split__body a:link,
#content.ce40 .ce40-split__body a:visited {
  color: var(--ce40-g);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--ce40-rose);
  font-weight: 600;
}
#content.ce40 .ce40-split__body a:hover,
#content.ce40 .ce40-split__body a:focus { color: var(--ce40-brand); text-decoration-color: var(--ce40-brand); }
