/* ==========================================================================
   STYLES CREADORES
   Base: hoja de estilos de livostreaming.com (Bootstrap 5 + overrides LIVO).
   Todo lo que sigue es propio de la landing de Creadores.
   ========================================================================== */

.text-red { color: var(--bs-primary); }

/* El .masthead original fuerza height:100% (=100vh) a partir de 768px, pensado
   para el mockup chico del sitio LIVO. Nuestro hero tiene una foto grande
   (aspect-ratio 4:5) que en pantallas anchas y bajas supera esa altura y
   desborda hacia el marquee. Volvemos a altura automática según contenido,
   con un piso de 100vh en desktop para que el Hero ocupe toda la pantalla
   (el contenido queda centrado verticalmente dentro de ese espacio). */
@media (min-width: 768px) {
  #inicio.masthead { height: auto; }
}
@media (min-width: 992px) {
  #inicio.masthead {
    min-height: 100vh;
    display: flex;
    align-items: center;
  }
}

/* Reveal on scroll simple (se usa junto con AOS; fallback si AOS no corre) */
.cr-reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.cr-reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .cr-reveal { opacity: 1; transform: none; transition: none; }
}

/* Navbar: brand con logo + wordmark "Creadores" (variante del .lg original) */
#mainNav .navbar-brand { display: flex; align-items: center; gap: .6rem; }
#mainNav .navbar-brand img { height: 40px; width: auto; transition: height .2s ease; }
#mainNav.navbar-shrink .navbar-brand img { height: 32px; }
#mainNav .navbar-brand .brand-tag { color: rgba(255,255,255,.6); font-size: .95rem; padding-left: .6rem; border-left: 1px solid rgba(255,255,255,.25); }

/* Foto con degradé de marca (mismo criterio que .bg-livo-1/2/3, pero reutilizable
   para cualquier imagen: hero, cards de oportunidades, "no hace falta ser influencer") */
.cr-photo-frame {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cr-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cr-photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,.75) 0%, transparent 55%);
  pointer-events: none;
}
.cr-photo-frame .cr-frame-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
}

/* Wrapper del visual del Hero: agrupa la foto + tarjetas flotantes para que
   floten sobre la foto real (no sobre toda la columna). En desktop, la altura
   queda acotada a la pantalla para que el Hero entre completo sin scroll. */
.cr-hero-visual { position: relative; }
.cr-hero-visual .cr-photo-frame { width: 100%; aspect-ratio: 4 / 5; }
@media (min-width: 992px) {
  .cr-hero-visual {
    height: clamp(20rem, calc(100vh - 13rem), 34rem);
    width: auto;
    max-width: 100%;
    margin-inline: auto;
  }
  .cr-hero-visual .cr-photo-frame { height: 100%; aspect-ratio: auto; }
}

/* Insignia flotante sobre foto (equivalente creador del masthead-device-mockup) */
.cr-floating-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: .65rem;
  background: rgba(10,10,10,.72);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 1rem;
  padding: .65rem .9rem;
  color: #fff;
  box-shadow: 0 1rem 2rem rgba(10,10,10,.25);
  max-width: 13rem;
}
.cr-floating-card .cr-fc-icon {
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--bs-yellow); color: #000;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: .9rem;
}
.cr-floating-card strong { display: block; font-size: .82rem; }
.cr-floating-card small { font-size: .72rem; color: rgba(255,255,255,.65); }
.cr-card-top-right { top: -1rem; right: -1rem; }
.cr-card-bottom-left { bottom: -1rem; left: -1rem; }
@media (max-width: 480px) {
  .cr-card-top-right { top: .75rem; right: .75rem; }
  .cr-card-bottom-left { bottom: .75rem; left: .75rem; }
}

/* Insignia circular sobre la foto (reemplaza el número de las cards de oportunidad) */
.cr-card-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  z-index: 2;
  width: 2.6rem; height: 2.6rem;
  border-radius: 50%;
  background: rgba(10,10,10,.5);
  backdrop-filter: blur(6px);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.cr-card-badge svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Bloque "Ideal si" con línea divisoria en vez de recuadro */
.cr-ideal { padding-top: 1rem; border-top: 1px solid var(--bs-gray-300); }
.cr-ideal-label { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .35rem; }
.cr-ideal p { font-size: .92rem; color: var(--bs-gray-700); margin: 0; }

/* Paso numerado (timeline "cómo funciona") */
.cr-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: #111; color: var(--bs-yellow);
  font-family: "Noto Sans", sans-serif; font-weight: 700; font-size: 1.05rem;
  margin-bottom: 1.1rem;
}

/* Formulario multi-paso */
.cr-form-progress { display: flex; align-items: center; gap: .5rem; margin-bottom: 2rem; }
.cr-progress-step { display: flex; align-items: center; gap: .55rem; background: none; border: none; padding: 0; opacity: .4; transition: opacity .2s ease; }
.cr-progress-step.is-active, .cr-progress-step.is-done { opacity: 1; }
.cr-progress-step:not(.is-active):not(.is-done):hover { opacity: .7; }
.cr-progress-step span { width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--bs-gray-100); color: var(--bs-gray-700); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .82rem; flex-shrink: 0; }
.cr-progress-step.is-active span, .cr-progress-step.is-done span { background: var(--bs-primary); color: #fff; }
.cr-progress-step small { font-size: .76rem; font-weight: 600; display: none; }
@media (min-width: 480px) { .cr-progress-step small { display: inline; } }
.cr-form-progress i { flex: 1; height: 2px; background: var(--bs-gray-100); font-style: normal; }

.cr-form-step { display: none; }
.cr-form-step.is-active { display: block; animation: crFadeIn .35s ease; }
@keyframes crFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Tiles de selección (¿qué te gustaría hacer?) */
.cr-choice-card {
  position: relative;
  display: flex; align-items: center; gap: .85rem;
  border: 1.5px solid var(--bs-gray-300);
  border-radius: 1rem;
  padding: 1rem;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
  height: 100%;
}
.cr-choice-card:hover { border-color: var(--bs-gray-500); }
.cr-choice-card input { position: absolute; opacity: 0; }
.cr-choice-card:has(input:checked) { border-color: var(--bs-primary); background: rgba(249,25,14,.05); }
.cr-choice-check { width: 1.3rem; height: 1.3rem; border-radius: 50%; border: 1.5px solid var(--bs-gray-300); display: flex; align-items: center; justify-content: center; font-size: .75rem; color: transparent; flex-shrink: 0; transition: all .2s ease; }
.cr-choice-card:has(input:checked) .cr-choice-check { background: var(--bs-primary); border-color: var(--bs-primary); color: #fff; }
.cr-choice-icon { width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--bs-gray-100); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cr-choice-card strong { display: block; font-size: .9rem; }
.cr-choice-card small { font-size: .76rem; color: var(--bs-gray-500); }

/* Pastillas de categoría (checkbox) — complementan .badge de Bootstrap */
.cr-tag-check { position: relative; cursor: pointer; }
.cr-tag-check input { position: absolute; opacity: 0; }
.cr-tag-check span { display: inline-flex; font-size: .85rem; font-weight: 600; padding: .5rem 1rem; border-radius: 50rem; background: var(--bs-gray-100); color: var(--bs-gray-700); border: 1.5px solid transparent; transition: all .2s ease; }
.cr-tag-check:hover span { border-color: var(--bs-gray-500); }
.cr-tag-check input:checked + span { background: rgba(249,25,14,.1); border-color: var(--bs-primary); color: var(--bs-primary); }

/* Panel de éxito del formulario */
.cr-success { display: none; text-align: center; padding: 2rem .5rem; }
.cr-success.is-active { display: block; animation: crFadeIn .4s ease; }
.cr-success-icon { width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--bs-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin: 0 auto 1.25rem; }

/* CTA fijo mobile (no existe en el sitio principal, propio de Creadores) */
.cr-sticky-cta {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 1030;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--bs-primary); color: #fff; font-weight: 700;
  padding: 1rem; border-radius: 50rem;
  box-shadow: 0 1rem 2rem rgba(249,25,14,.35);
  transform: translateY(200%);
  transition: transform .3s ease, background-color .2s ease;
}

a.cr-sticky-cta {
  text-decoration: none !important;
}
.cr-sticky-cta:hover { background: #b3211a; color: #fff; }
.cr-sticky-cta.is-visible { transform: translateY(0); }
@media (min-width: 992px) { .cr-sticky-cta { display: none; } }

/* Acordeón FAQ: alinear con la identidad LIVO sin pisar el componente Bootstrap */
#faqAccordion .accordion-button { font-weight: 600; font-family: "Noto Sans", sans-serif; }
#faqAccordion .accordion-button:not(.collapsed) { color: var(--bs-primary); background: rgba(249,25,14,.05); box-shadow: none; }
#faqAccordion .accordion-button:focus { box-shadow: none; border-color: var(--bs-gray-300); }
#faqAccordion .accordion-item { border-left: none; border-right: none; }

/* Separación visible entre la última sección oscura y el footer */
footer.cr-footer { border-top: 1px solid rgba(255,255,255,.1); }
