/* ==============================
   HERO Parallax – Reset de Imagen
   ============================== */

:root {
  --hero-min-h: clamp(620px, 90vh, 980px);

  /* Posición / tamaño del logo en desktop */
  --logo-top: 48px;
  --logo-left: 56px;
  --logo-w: clamp(420px, 40vw, 460px);

  /* Ancho fijo de Ross en píxeles (lo sobreescribe el JS con naturalWidth) */
  --ross-px: auto;
}

#hero-parallax {
  position: relative;
  min-height: var(--hero-min-h);
  overflow: hidden;
  isolation: isolate;
  background: #000;
}

/* Capas */
.hero-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform-origin: center;
  will-change: transform;
}

/* Fondo */
.hero-bg {
  z-index: -1;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Logo (fijo en desktop; en mobile pasa al centro abajo) */
.hero-logo {
  position: absolute;
  top: var(--logo-top);
  left: var(--logo-left);
  width: var(--logo-w);
  z-index: 5;
  pointer-events: auto;
}
.hero-logo img {
  width: 100%;
  height: auto;
}

/* ===== Ross: pegada abajo al centro, MISMO tamaño en todos los viewports ===== */
.hero-ross {
  position: absolute;
  /* anula el inset heredado para que no llene todo */
  inset: auto;
  left: 38%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 4;
  pointer-events: none;
}
.hero-ross picture,
.hero-ross img {
  display: block;
}
.hero-ross img {
  /* tamaño fijo 1:1; el JS setea --ross-px al naturalWidth */

  height: 100%;
  max-width: 140% !important; /* anula Bootstrap */
}

/* ===== Responsivo ===== */
@media (max-width: 991.98px) {
  /* Sólo se mueve el logo; Ross conserva el MISMO tamaño */
  .hero-logo {
    top: auto;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    width: min(70vw, 420px);
  }

  @media (max-width: 1200px) {
    .hero-ross {
      position: absolute;
      /* anula el inset heredado para que no llene todo */
      inset: auto;
      left: 5%;
      bottom: 0;
      transform: translateX(-50%);
      z-index: 4;
      pointer-events: none;
    }
    .hero-ross picture,
    .hero-ross img {
      display: block;
    }
    .hero-ross img {
      /* tamaño fijo 1:1; el JS setea --ross-px al naturalWidth */

      height: 100%;
      max-width: 200% !important; /* anula Bootstrap */
    }
  }
}

/* =====================
   FRANJA – Carrusel Ticker
   ===================== */
#franja-frases.strip {
  --strip-bg: #dd9ec6; /* azul corporativo */
  --strip-h: 50px; /* alto aproximado */
  --strip-speed: 28s; /* velocidad del loop */
  --strip-gap: 48px; /* espacio entre items */
  --strip-color: #ffffff; /* texto */
  --strip-fade: rgba(209, 102, 138, 0); /* para desvanecido laterales */

  height: var(--strip-h);
  background: linear-gradient(135deg, #db9ac3 0%, #ed99b4 100%);
  color: var(--strip-color);
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}

/* Fade suave en extremos */
#franja-frases .strip-viewport::before,
#franja-frases .strip-viewport::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
#franja-frases .strip-viewport::before {
  left: 0;
  background: linear-gradient(to right, var(--strip-bg), var(--strip-fade));
}
#franja-frases .strip-viewport::after {
  right: 0;
  background: linear-gradient(to left, var(--strip-bg), var(--strip-fade));
}

#franja-frases .strip-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Rail que se anima (lo crea el JS) */
#franja-frases .strip-rail {
  display: flex;
  gap: var(--strip-gap);
  width: max-content;
  align-items: center;
  animation: strip-scroll var(--strip-speed) linear infinite;
}

/* Pausa al pasar el cursor */
#franja-frases:hover .strip-rail {
  animation-play-state: paused;
}

#franja-frases .strip-list {
  display: flex;
  gap: var(--strip-gap);
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  white-space: nowrap;
}

#franja-frases .strip-item {
  font-weight: 400;
  font-size: clamp(16px, 1.5vw, 20px);
  letter-spacing: 0.3px;
  opacity: 0.96;
  transform: translateZ(0);
}

/* separador "•" entre items */
#franja-frases .strip-item + .strip-item::before {
  content: "•";
  margin-right: var(--strip-gap);
  opacity: 0.6;
}

/* Animación – sutil, moderna */
@keyframes strip-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  } /* se mueve media longitud porque duplicamos contenido */
}

/* Respeta reduce motion */
@media (prefers-reduced-motion: reduce) {
  #franja-frases .strip-rail {
    animation: none;
  }
}

/* ===========================
   INFO – Cards numeradas limpias
   =========================== */
#info-taller {
  --brand: #451428;
  --accent: #b07b2e;
  --ink: #0f2230;
  --muted: #6b7b85;
  --surface: #fff;
  --border: #e7edf5;
  --r: 16px;
  --shadow: 0 10px 24px rgba(15, 34, 48, 0.06);
  --fs-title: clamp(22px, 2vw, 28px);
  --fs-card-title: clamp(16px, 1.15vw, 18px);
  --fs-body: clamp(14px, 0.95vw, 16px);
}

/* Títulos */
#info-taller .title,
#info-taller .subtitle {
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.2px;
  font-size: var(--fs-title);
}
#info-taller .title {
  position: relative;
  padding-bottom: 0.1rem;
}
#info-taller .title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 72px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

/* Grids de cards */
#info-taller .cards-grid {
  display: grid;
  gap: 14px;
  counter-reset: item;
}
#info-taller .info-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 14px 16px;
}
#info-taller .info-card .badge-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #d48eb4);
  color: #fff;
  display: grid;
  place-items: center;
  font: 800 12px/1 system-ui;
  box-shadow: 0 6px 14px rgba(7, 12, 31, 0.25);
}
#info-taller .cards-grid .info-card .badge-num::before {
  counter-increment: item;
  content: counter(item, decimal-leading-zero);
}
#info-taller .info-card h3 {
  margin: 0 0 4px;
  font-weight: 700;
  font-size: var(--fs-card-title);
  color: var(--ink);
}
#info-taller .info-card p {
  margin: 0;
  font-size: var(--fs-body);
  color: var(--muted);
}

/* Temario: grid responsivo */
#info-taller .topics {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
#info-taller .topics .subtitle {
  grid-column: 1/-1;
}
#info-taller .topic-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 14px 16px;
}
#info-taller .topic-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #c86099);
  font: 800 12px/1 system-ui;
  box-shadow: 0 6px 14px rgba(30, 58, 168, 0.25);
}
#info-taller .topic-card h4 {
  margin: 0 0 4px;
  font-weight: 700;
}

#ctas {
  background-image: url(imagenes/cta_bg.webp);
	background-position: fixed;
  background-size: cover;
  padding-bottom: 50px;
}

#ctas h3 {
  text-align: center;
  padding: 50px 50px 50px 50px;
  color: white;
}

#info-taller #temario-video .topics {
  display: grid;
  grid-template-columns: 1fr !important; /* anula la regla anterior que lo ponía en 2 col en desktop */
  gap: 14px;
}

/* Ajustes finos de tarjetas del temario (consistencia visual con el video) */
#info-taller #temario-video .topic-card {
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(15, 34, 48, 0.06);
  background: #fff;
  border: 1px solid #e7edf5;
}

/* Contenedor del video 9:16: misma estética que las cards */
#info-taller .video-9x16 {
  background: #0b1520;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  border-radius: 16px;
}
#info-taller .video-9x16 video {
  object-fit: cover;
}

/* Espaciado del título del temario en este layout */
#info-taller #temario-video .topics .subtitle {
  margin-bottom: 10px;
}

/* === TEMARIO + VIDEO 9:16 ===================================== */
#temario {
  margin: 50px 20px 0px 20px;
  --brand: #eeaff1;
  --brand-ink: #5a3e62;
  --ink: #1c2430;
  --muted: #6e7680;
  --line: #f6e5f7;
  --linevid: #ffffff;
  --surface: #ffffff;
  --r: 16px;
  --shadow: 0 10px 22px rgba(16, 26, 37, 0.06);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

#temario {
  background-color: rgb(252, 250, 252);
}

#temario .tm-title {
  font-weight: 600;
  font-size: clamp(22px, 2.1vw, 28px);
  color: var(--ink);
  letter-spacing: 0.2px;
  margin: 0;
}
#temario .tm-sub {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: clamp(14px, 0.95vw, 16px);
}

/* Lista de temas como micro-cards */
#temario .tm-list {
  display: grid;
  gap: 12px;
}
#temario .tm-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 14px 16px;
}
#temario .tm-num {
  align-self: start;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--brand-ink);
  background: linear-gradient(
    180deg,
    rgba(238, 175, 241, 0.35),
    rgba(238, 175, 241, 0.15)
  );
  border: 1px solid var(--brand);
  font-weight: 600;
  font-size: 12px;
}
#temario .tm-item h3 {
  margin: 0 0 2px;
  font-weight: 600; /* medio */
  font-size: clamp(16px, 1.05vw, 18px);
  color: var(--ink);
}
#temario .tm-item p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(14px, 0.95vw, 16px);
  line-height: 1.45;
}

/* Video 9:16, estética alineada al temario */
#temario .tm-video {
  width: 100%;
  max-width: 520px; /* armonía visual con la columna izquierda */
  aspect-ratio: 9 / 16; /* RELACIÓN REAL 9:16 */
  margin: 0 auto;
  background: #0b1520;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.3);
  border: 3px solid var(--linevid);
}
#temario .tm-video > video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* sin barras negras */
}

/* Hover sutil (opcional) */
@media (prefers-reduced-motion: no-preference) {
  #temario .tm-item {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
  #temario .tm-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(16, 26, 37, 0.1);
  }
}

/* === Control de tamaño 9:16 y alturas iguales === */
#temario {
  /* Cambia este valor para hacerlo más pequeño o grande */
  --vid-h: clamp(720px, 80vh, 780px); /* alto del video y del temario */
}

/* El video mantiene 9:16 y se calcula el ancho a partir del alto */
#temario .tm-video {
  height: var(--vid-h); /* <— control único */
  width: auto; /* el ancho se deriva del alto */
  aspect-ratio: 9 / 16; /* mantiene proporción vertical */
  max-width: 100%;
}

/* La columna del temario toma exactamente el mismo alto */
#temario .col-lg-6:first-child {
  min-height: var(--vid-h); /* iguala altura */
  display: flex;
  flex-direction: column;
}

/* Opcional: si la lista es más larga, que haga scroll suave dentro del alto */
#temario .tm-list {
  flex: 1 1 auto;
  overflow: auto;
  scroll-behavior: smooth;
}

/* En móvil dejamos que el video sea ancho completo; la altura se calcula por proporción */
@media (max-width: 991.98px) {
  #temario {
    --vid-h: auto;
  } /* no forzamos alto en móvil */
  #temario .tm-video {
    height: auto;
    width: 100%;
    aspect-ratio: 9 / 16; /* sigue 9:16 */
  }
  #temario .col-lg-6:first-child {
    min-height: 0;
  }
}

/* Contenedor: centrado vertical y horizontal */
#banners {
  min-height: 200px; /* usa min-height para que crezca si el texto se parte en 2 líneas */
  background-color: rgba(193, 164, 190, 0.12);
  display: flex;
  flex-direction: column; /* apila título y botón */
  align-items: center; /* centro horizontal */
  justify-content: center; /* centro vertical */
  text-align: center;
  padding: 16px;
  gap: 10px; /* espacio entre h4 y botón */
}

#banners h4 {
  margin: 0;
  color: #451428;
  line-height: 1.3;
}

/* Botón con color solicitado */
#banners .btn-banner {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  background: rgba(229, 139, 220, 0.6); /* color pedido */
  border: 1.5px solid rgba(229, 139, 220, 0.8);
  color: #451428; /* legible sobre el rosa */
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease,
    background-color 0.2s ease, border-color 0.2s ease;
}

/* Interacciones */
#banners .btn-banner:hover {
  background: rgba(229, 139, 220, 0.8);
  border-color: rgba(229, 139, 220, 1);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(229, 139, 220, 0.25);
}

#banners .btn-banner:active {
  transform: translateY(0);
  box-shadow: none;
}

#banners .btn-banner:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(229, 139, 220, 0.35);
}

/* Opcional: a 100% en móvil */
@media (max-width: 575.98px) {
  #banners .btn-banner {
    width: 100%;
  }
}
