/* =====================================================================
   SCW – Rediseño "Premium Dark" v2 (julio 2026)
   Hoja personalizada — NO toca el CSS exportado de Webflow.
   Para revertir todo: quitar el <link> a esta hoja y el <script>
   js/scw-reveal.js en index.html.
   ===================================================================== */

/* ---------- 0) Fondo con profundidad (glows de marca) ---------- */
html { scroll-behavior: smooth; }

.body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 620px at 12% -6%, rgba(236, 26, 70, .16), transparent 62%),
    radial-gradient(1100px 760px at 108% 38%, rgba(236, 26, 70, .09), transparent 62%),
    radial-gradient(950px 700px at -12% 96%, rgba(236, 26, 70, .11), transparent 62%);
}

/* ---------- 1) Tipografía con más presencia (solo tablet/PC; en móvil
   se respetan los tamaños originales de Webflow) ---------- */
@media screen and (min-width: 768px) {
  .heading_hero {
    font-size: clamp(2.4rem, 4.6vw, 3.7rem);
    line-height: 1.06;
    letter-spacing: -.025em;
  }

  .heading_primary {
    font-size: clamp(2rem, 3.3vw, 2.9rem);
    line-height: 1.1;
    letter-spacing: -.02em;
  }
}

.heading_hero .text-span {
  background: linear-gradient(92deg, #ff4d73, #ec1a46);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: .08em;
}

/* ---------- 2) Títulos de sección visibles + subrayado refinado ---------- */
.header.is-align-center:not(.ocultar) { display: flex; }

.header.is-align-center:not(.ocultar) .heading_primary::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: 1rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #ec1a46, #ff7d97);
  box-shadow: 0 0 18px rgba(236, 26, 70, .55);
}

/* ---------- 3) Tarjetas "glass" (nueva piel) ---------- */
.card {
  background-color: rgba(17, 17, 20, .78);
  background-image: linear-gradient(150deg, rgba(236, 26, 70, .18), rgba(236, 26, 70, .04) 38%, transparent 62%);
  border-radius: 22px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .09),
    inset 0 0 0 1px rgba(255, 255, 255, .06),
    0 22px 50px rgba(0, 0, 0, .45);
  transition: transform .35s ease, box-shadow .35s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .12),
    inset 0 0 0 1px rgba(255, 255, 255, .1),
    0 26px 60px rgba(0, 0, 0, .55),
    0 8px 30px rgba(236, 26, 70, .22);
}

/* ---------- 4) Equipo: 8 miembros en 4 columnas (2 filas), fotos a sangre ---------- */
@media screen and (min-width: 992px) {
  .grid_4-col.tablet-3-col.mobile-2-col.equipo.desktop {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 1160px;
    margin-left: auto;
    margin-right: auto;
  }
}

.equipo .card { overflow: hidden; }

.equipo .card_body { padding: 0; }

.equipo .card_body img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  margin-bottom: 0;
  transition: transform .5s ease;
}

.equipo .card:hover .card_body img { transform: scale(1.05); }

.equipo .card_body h3 {
  margin: 0;
  padding: 1.1rem 1.25rem .15rem;
}

.equipo .card_body p {
  padding: 0 1.25rem 1.2rem;
}

/* ---------- 5) Sección "Host y Fundadora" recompuesta ---------- */
.grid_2-col.gap-xxlarge {
  grid-column-gap: clamp(2rem, 3.5vw, 3.5rem);
  align-items: center;
}

/* En PC: columnas de ancho fijo y conjunto centrado, para que foto y
   texto queden siempre juntos aunque la pantalla sea muy ancha */
@media screen and (min-width: 992px) {
  .grid_2-col.gap-xxlarge {
    grid-template-columns: minmax(0, 420px) minmax(0, 600px);
    justify-content: center;
  }

  .image-ratio_2x3 {
    width: 100%;
    justify-self: end;
  }
}

.image-ratio_2x3 {
  border-radius: 24px;
  overflow: hidden;
  max-height: 540px;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, .5),
    0 0 60px rgba(236, 26, 70, .14),
    inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.image-ratio_2x3 img {
  height: 100%;
  object-fit: cover;
}

.grid_2-col.gap-xxlarge .heading_primary {
  margin-bottom: .35em;
}

.grid_2-col.gap-xxlarge .subheading {
  color: rgba(255, 255, 255, .8);
  max-width: 58ch;
  font-size: 1.06em;
  line-height: 1.85;
}

/* ---------- 6) Fotos con radio consistente ---------- */
.image_cover { border-radius: 20px; }

/* Tarjetas "Todo lo que necesitas": las fotos son 3:2 horizontales;
   el hueco adopta la misma proporción para que se vean SIN recortar
   (antes era una franja de 250px que las cortaba). */
.image_cover-3 {
  aspect-ratio: 3 / 2;
  max-height: none;
  height: auto;
  object-position: 50% 50%;
  border-radius: 14px;
}

/* ---------- 7) CTAs pill que invitan a agendar ---------- */
a.button,
a.button-custom {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  padding: 1.05em 2.3em;
  letter-spacing: .05em;
  font-weight: 600;
  transition: transform .25s ease, box-shadow .25s ease;
  will-change: transform;
}

a.button {
  background-image: linear-gradient(135deg, #ff2d55, #ec1a46 55%, #c81038);
  animation: scw-pulse 3.2s ease-in-out infinite;
}

a.button:hover,
a.button-custom:hover {
  transform: translateY(-2px) scale(1.02);
}

a.button:hover {
  animation: none;
  box-shadow: 0 10px 34px rgba(236, 26, 70, .55);
}

a.button-custom { border-radius: 999px; }

a.button-custom:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

/* destello que recorre el botón */
a.button::after,
a.button-custom::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-20deg);
  animation: scw-shine 4.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes scw-shine {
  0%, 55%   { left: -80%; }
  85%, 100% { left: 130%; }
}

@keyframes scw-pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(236, 26, 70, .30); }
  50%      { box-shadow: 0 6px 30px rgba(236, 26, 70, .60); }
}

/* ---------- 7b) Muro infinito de testimonios (marquee) ---------- */
.scw-wall { padding: 3.5rem 0 4rem; overflow: hidden; }

.scw-marquee {
  overflow: hidden;
  padding: 14px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.scw-marquee__track {
  display: flex;
  gap: 22px;
  width: max-content;
  animation: scw-marquee var(--dur, 80s) linear infinite;
  will-change: transform;
}

.scw-marquee--reverse .scw-marquee__track { animation-direction: reverse; }

/* pausa solo cuando el cursor está sobre una tarjeta concreta,
   no al pasar por el hueco entre filas */
.scw-marquee__track:has(.scw-t-card:hover),
.scw-marquee__track:has(.scw-t-card:active) { animation-play-state: paused; }

@keyframes scw-marquee {
  to { transform: translateX(-50%); }
}

.scw-t-card {
  width: 380px;
  flex: none;
  background-color: rgba(17, 17, 20, .78);
  background-image: linear-gradient(150deg, rgba(236, 26, 70, .14), rgba(236, 26, 70, .03) 40%, transparent 65%);
  border-radius: 18px;
  padding: 22px 24px 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .09),
    inset 0 0 0 1px rgba(255, 255, 255, .06);
}

.scw-t-card__stars { color: #ec1a46; font-size: .85rem; letter-spacing: 3px; margin-bottom: 10px; }

.scw-t-card__text {
  color: rgba(255, 255, 255, .85);
  font-size: .95rem;
  line-height: 1.65;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.scw-t-card__name { color: #ec1a46; font-weight: 600; font-size: .95rem; }
.scw-t-card__name span { color: rgba(255, 255, 255, .5); font-weight: 400; }

/* el texto de las tarjetas no debe seleccionarse sin querer */
.scw-t-card { user-select: none; -webkit-user-select: none; cursor: pointer; }

/* pista "Leer más" (la añade js/scw-reveal.js en cada tarjeta) */
.scw-t-card__more {
  color: #ec1a46;
  font-size: .82rem;
  font-weight: 600;
  margin: -6px 0 10px;
}

/* ---------- Modal con el testimonio completo ---------- */
.scw-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, .72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.scw-modal.is-open { display: flex; }

.scw-modal__panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 82vh;
  overflow-y: auto;
  background-color: #141317;
  background-image: linear-gradient(150deg, rgba(236, 26, 70, .16), rgba(236, 26, 70, .04) 40%, transparent 65%);
  border-radius: 20px;
  padding: 28px 28px 22px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .1),
    inset 0 0 0 1px rgba(255, 255, 255, .08),
    0 30px 80px rgba(0, 0, 0, .6);
}

.scw-modal__panel .scw-t-card__stars { font-size: 1rem; }

.scw-modal__text {
  color: rgba(255, 255, 255, .88);
  font-size: 1rem;
  line-height: 1.8;
  margin: 0 0 18px;
  white-space: pre-line;
  user-select: text;
  -webkit-user-select: text;
}

.scw-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .85);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

@media screen and (max-width: 767px) {
  .scw-modal__panel { padding: 22px 20px 16px; max-height: 78vh; }
}

.scw-carousel-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.scw-car-btn { display: none; }

@media screen and (max-width: 767px) {
  .scw-t-card { width: 290px; padding: 18px 18px 14px; }
  .scw-t-card__text { font-size: .9rem; -webkit-line-clamp: 7; }

  /* menos aire sobre el título */
  .scw-wall { padding-top: .5rem; }
  .scw-wall .header.is-align-center { margin-bottom: 1.5rem; }

  /* en móvil solo queda la fila 1 convertida en carrusel */
  .scw-marquee--m-hide,
  .scw-marquee--reverse { display: none; }

  .scw-carousel-wrap .scw-marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
    scroll-snap-type: x proximity;
    scroll-padding-left: 16px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .scw-carousel-wrap .scw-marquee::-webkit-scrollbar { display: none; }
  .scw-carousel-wrap .scw-marquee__track {
    animation: none !important;
    padding: 0 16px;
  }
  .scw-carousel-wrap .scw-marquee__dup { display: none !important; }
  .scw-t-card { scroll-snap-align: center; }

  /* flechas sutiles */
  .scw-car-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .45);
    border: 1px solid rgba(255, 255, 255, .2);
    color: rgba(255, 255, 255, .85);
    font-size: 22px;
    line-height: 1;
    padding: 0 0 3px;
    z-index: 2;
    cursor: pointer;
  }
  .scw-car-btn--prev { left: 6px; }
  .scw-car-btn--next { right: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .scw-marquee__track { animation: none; }
  .scw-marquee { overflow-x: auto; }
}

/* ---------- 8) Fondos integrados con el granate de la marca ----------
   La línea de tiempo, las dudas (FAQ) y el footer traían background #000
   fijo que rompía contra el fondo granate. Los hacemos transparentes
   para que fluyan con el resto de la página. */
.scw-timeline { background: transparent !important; }
.scw-faq { background: transparent !important; }

/* Footer: cierre sólido de la página, en armonía con el granate.
   Va por encima de los glows ambientales (z-index) para que el texto
   nunca quede a caballo entre dos fondos. */
.footer {
  position: relative;
  z-index: 5;
  background-color: #000;
  background-image: linear-gradient(180deg, #1c070c, #000 65%);
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.footer .text-color_secondary { margin-bottom: 1rem; }

/* Aire entre la caja CTA final ("Has llegado hasta aquí…") y el footer */
.section-cta { padding-bottom: clamp(4rem, 8vw, 7.5rem); }

/* el disclaimer no debe forzar 70vw en pantallas pequeñas */
@media screen and (max-width: 767px) {
  .text-color_secondary._22 {
    width: 100%;
    padding-left: .5rem;
    padding-right: .5rem;
  }
}

/* ---------- 9) Logo nítido ----------
   El SVG original usa un pattern que Safari rasteriza borroso en móvil;
   usamos el PNG de 1024px extraído del propio logo. */
.nav_logo-icon img {
  width: auto;
  height: 64px;
  image-rendering: auto;
}

/* ---------- 10) Móvil: menos texto antes del primer testimonio ---------- */
@media screen and (max-width: 767px) {
  .scw-ocultar-movil { display: none !important; }
}

/* ---------- 11) Accesibilidad: menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a.button,
  a.button::after,
  a.button-custom::after { animation: none; }
  .card,
  .equipo .card_body img,
  a.button,
  a.button-custom { transition: none; }
}
