/* ============================================================
   SECCIÓN 2 — Estructura 30% / 70%
   Columna izquierda: texto + CTA
   Columna derecha:   slider apilado
   ============================================================ */

.GO-slider-wrapper {
  color: var(--go-ink);
  margin: 0;
  padding: 60px 20px 80px;
  width: 100%;
  /* Altura fija: la necesita el efecto "stack" para reservar espacio */
  height: 1000px;
  display: block;
  position: relative;
  box-sizing: border-box;
  overflow: hidden;                    /* evita scroll horizontal al salir las tarjetas */
  font-family: var(--font-sans);
  font-optical-sizing: auto;
  font-weight: 400;                    /* ✔ antes: <weight> (placeholder roto) */
  font-style: normal;
  background-color: white;
}

.GO-slider-wrapper * {
  box-sizing: border-box;
}

.GO-section2 {
  width: 100%;
  position: relative;
  display: block;
}

.GO-section2_inner {
  display: flex;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
  gap: 50px;
  width: 100%;
}

/* ============================================================
   Columna izquierda (30%) — Texto y CTA
   ============================================================ */
.GO-section2_left {
  width: 30%;
  flex-shrink: 0;
  z-index: 10;
  background-color: white;
}

.GO-section2_label {
  font-family: var(--font-primary);
  font-size: var(--fs-small);
  font-weight: var(--fw-body);
  letter-spacing: var(--tracking-small);  
  font-size: var(--fs-small);  
  font-weight: var(--fw-small);                    /* ⚠ Montserrat debe cargar @100 o cae a 400 */
  margin: 0 0 15px 0;
  color: #acacac;
  letter-spacing: var(--tracking-small);
}

.GO-section2_title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: var(--fw-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--tracking-h2);
  font-weight: var(--fw-h2);
  margin: 0 0 25px 0;
  line-height:var(--lh-h2);
  letter-spacing: var(--tracking-h2);
  background: var(--grad-h2);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

.GO-section2_desc {
  font-family: var(--font-primary);
  font-size: var(--fs-p);
  font-weight: var(--fw-p);
  margin: 0 0 15px 0;
  color: black;
  letter-spacing:var(--tracking-p);
  padding-bottom: 50px;
}

/* ============================================================
   Columna derecha (70%) — Slider
   ============================================================ */
.GO-section2_right {
  width: 70%;
  position: relative;
}

/* --- Wrapper de scroll: maneja el desplazamiento lateral --- */
.GO-slider-wrapper .GO_scroll_wrapper {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  will-change: transform, opacity;
  transition:
    transform 0.15s linear,
    opacity   0.15s linear;
}

/* --- Stack de tarjetas --- */
.GO-slider-wrapper .GO_stack {
  position: relative;
  width: 100%;
  max-width: 720px;
  height: 740px;
  margin: 0 auto;
}

/* --- Tarjeta base --- */
.GO-slider-wrapper .GO_card {
  position: absolute;
  top: 360px;
  left: 0;
  width: 100%;
  height: 420px;
  cursor: pointer;
  opacity: 1;
  transition:
    transform 1s   var(--ease-smooth),
    filter    0.6s ease,
    opacity   0.5s ease;
  will-change: transform, opacity;
}

/* Animación de entrada escalonada (solo al cargar) */
.GO-slider-wrapper .GO_card.is-entering {
  animation: GO_card_enter 0.9s var(--ease-smooth) both;
}

.GO-slider-wrapper .GO_card[data-index="0"].is-entering { animation-delay: 0.15s; }
.GO-slider-wrapper .GO_card[data-index="1"].is-entering { animation-delay: 0.30s; }
.GO-slider-wrapper .GO_card[data-index="2"].is-entering { animation-delay: 0.45s; }
.GO-slider-wrapper .GO_card[data-index="3"].is-entering { animation-delay: 0.60s; }
.GO-slider-wrapper .GO_card[data-index="4"].is-entering { animation-delay: 0.75s; }

@keyframes GO_card_enter {
  0%   { opacity: 0; transform: translateY(120px) scale(0.92); }
  100% { opacity: 1; transform: translateY(0)     scale(1);    }
}

/* Animación de salida (cinta en bucle) */
.GO-slider-wrapper .GO_card.is-exiting {
  z-index: 20;
  pointer-events: none;
  animation: GO_card_exit 0.9s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes GO_card_exit {
  0%   { opacity: 1; transform: translateY(0)      scale(1);    }
  100% { opacity: 0; transform: translateY(-650px) scale(0.65); }
}

/* --- Wrapper interno (recorta imagen y contenido) --- */
.GO-slider-wrapper .GO_card_inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.18),
    0 5px  15px rgba(0, 0, 0, 0.10);
  transition:
    transform   0.45s var(--ease-smooth),
    box-shadow  0.45s var(--ease-smooth);
}

/* Hover: la tarjeta sube */
.GO-slider-wrapper .GO_card:hover .GO_card_inner {
  transform: translateY(-25px);
  box-shadow:
    0 35px 70px rgba(0, 0, 0, 0.28),
    0 12px 28px rgba(0, 0, 0, 0.18);
}

/* --- Imagen y overlay --- */
.GO-slider-wrapper .GO_card_bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

.GO-slider-wrapper .GO_card_overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
}

/* --- Colores y overlay por tarjeta (data-index) --- */
.GO-slider-wrapper .GO_card[data-index="0"] { background-color: #3b7dd8; }
.GO-slider-wrapper .GO_card[data-index="0"] .GO_card_overlay {
  background: linear-gradient(180deg, rgba(59, 125, 216, 0.8) 0%, rgba(15, 40, 80, 0.92) 100%);
}

.GO-slider-wrapper .GO_card[data-index="1"] { background-color: #7ac943; }
.GO-slider-wrapper .GO_card[data-index="1"] .GO_card_overlay {
  background: linear-gradient(180deg, rgba(123, 163, 66, 0.8) 0%, rgba(88, 137, 32, 0.92) 100%);
}

.GO-slider-wrapper .GO_card[data-index="2"] { background-color: #f4cc21; }
.GO-slider-wrapper .GO_card[data-index="2"] .GO_card_overlay {
  background: linear-gradient(180deg, rgba(244, 204, 33, 0.8) 0%, rgba(160, 66, 30, 0.92) 100%);
}

.GO-slider-wrapper .GO_card[data-index="3"] { background-color: #ff00ff; }
.GO-slider-wrapper .GO_card[data-index="3"] .GO_card_overlay {
  background: linear-gradient(180deg, rgba(205, 0, 205, 0.8) 0%, rgba(205, 0, 205, 0.92) 100%);
}

.GO-slider-wrapper .GO_card[data-index="4"] { background-color: #0c2be2; }
.GO-slider-wrapper .GO_card[data-index="4"] .GO_card_overlay {
  background: linear-gradient(180deg, rgba(12, 43, 226, 0.8) 0%, rgba(2, 15, 28, 0.95) 100%);
}

/* --- Contenido interno --- */
.GO-slider-wrapper .GO_card_content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 40px 45px 35px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
}

.GO-slider-wrapper .GO_card_title {
  font-size: 42px;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.1;
  color: #fff;
}

.GO-slider-wrapper .GO_card_details {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition:
    opacity    0.5s ease,
    max-height 0.5s ease;
}

.GO-slider-wrapper .GO_card_divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
  margin-bottom: 18px;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.8s var(--ease-smooth) 0.15s;
}

.GO-slider-wrapper .GO_card_description {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 18px 0;
  max-width: 520px;
}

.GO-slider-wrapper .GO_card_button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  padding: 9px 22px;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  width: fit-content;
  transition:
    background   0.3s ease,
    border-color 0.3s ease,
    transform    0.2s ease;
}

.GO-slider-wrapper .GO_card_button:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #fff;
  transform: scale(1.03);
}

/* ============================================================
   Estados de posición (controlados por slider.js)
   ============================================================ */
.GO-slider-wrapper .GO_card.is-active {
  transform: translateY(0) scale(1);
  z-index: 10;
  filter: brightness(1);
}

.GO-slider-wrapper .GO_card.is-active .GO_card_details {
  opacity: 1;
  max-height: 400px;
}

.GO-slider-wrapper .GO_card.is-active .GO_card_divider {
  transform: scaleX(1);
}

.GO-slider-wrapper .GO_card.is-behind-1 {
  transform: translateY(-90px) scale(0.96);
  z-index: 9;
  filter: brightness(0.82);
}

.GO-slider-wrapper .GO_card.is-behind-2 {
  transform: translateY(-180px) scale(0.93);
  z-index: 8;
  filter: brightness(0.68);
}

.GO-slider-wrapper .GO_card.is-behind-3 {
  transform: translateY(-270px) scale(0.90);
  z-index: 7;
  filter: brightness(0.55);
}

.GO-slider-wrapper .GO_card.is-behind-4 {
  transform: translateY(-360px) scale(0.87);
  z-index: 6;
  filter: brightness(0.45);
}

/* ============================================================
   Dots (a la derecha, vertical)
   ============================================================ */
.GO-slider-wrapper .GO_dots {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 100;
}

.GO-slider-wrapper .GO_dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  padding: 0;
  transition:
    background 0.35s ease,
    height     0.35s ease;
}

.GO-slider-wrapper .GO_dot.is-active {
  background: var(--go-blue);
  height: 30px;
  border-radius: 5px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 968px) {
  .GO-section2_inner {
    flex-direction: column;
    align-items: stretch;
    gap: 30px;
  }

  .GO-section2_left,
  .GO-section2_right {
    width: 100%;
  }

  .GO-section2_title {
    font-size: 30px;
  }
}

@media (max-width: 768px) {
  .GO-slider-wrapper {
    padding: 40px 15px 60px;
  }

  .GO-slider-wrapper .GO_stack {
    height: 560px;
    max-width: 100%;
  }

  .GO-slider-wrapper .GO_card {
    top: 280px;
    height: 280px;
    border-radius: 18px;
  }

  .GO-slider-wrapper .GO_card_inner {
    border-radius: 18px;               /* ✔ mantiene coherencia con la tarjeta exterior */
  }

  .GO-slider-wrapper .GO_card_content {
    padding: 25px 25px 22px;
  }

  .GO-slider-wrapper .GO_card_title {
    font-size: 26px;
  }

  .GO-slider-wrapper .GO_card_description {
    font-size: 13px;
  }

  .GO-slider-wrapper .GO_card.is-behind-1 { transform: translateY( -70px) scale(0.96); }
  .GO-slider-wrapper .GO_card.is-behind-2 { transform: translateY(-140px) scale(0.93); }
  .GO-slider-wrapper .GO_card.is-behind-3 { transform: translateY(-210px) scale(0.90); }
  .GO-slider-wrapper .GO_card.is-behind-4 { transform: translateY(-280px) scale(0.87); }

  .GO-slider-wrapper .GO_dots {
    right: -5px;
    gap: 10px;
  }

  .GO-slider-wrapper .GO_dot.is-active {
    height: 22px;
  }
}
