/* ============================================================
   NOSOTROS FLECTO
   Scroll-driven experience: sticky car video + 3 layered panels
   Prefix: nsf-
   ============================================================ */

/* ── Wrapper & sticky ────────────────────────────────────── */
.nsf-wrapper {
  position: relative;
  height: 400vh;          /* 300vh scroll travel → 3 × 100vh panels */
}

.nsf-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

/* ── Background video ────────────────────────────────────── */
.nsf-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  z-index: 0;
}

/* ── Dark overlay ────────────────────────────────────────── */
.nsf-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    160deg,
    rgba(7, 18, 48, 0.80) 0%,
    rgba(7, 18, 48, 0.54) 50%,
    rgba(7, 18, 48, 0.76) 100%
  );
}

/* ── Panel layers (all stacked at z-index 2) ─────────────── */
.nsf-panel {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: opacity, transform;
  pointer-events: none;
}
.nsf-panel[aria-hidden="false"] { pointer-events: auto; }

/* ── Gemini watermark cover ──────────────────────────────── */
.creditpro-video-shield {
  position: absolute;
  right: 110px;
  bottom: 32px;
  width: 110px;
  height: 110px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  filter: drop-shadow(0 0 18px rgba(49, 183, 255, 0.45));
  animation: shieldFloat 5s ease-in-out infinite;
  background: none;
}
.creditpro-video-shield img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
@keyframes shieldFloat {
  0%, 100% { transform: translateY(0);    opacity: 0.92; }
  50%       { transform: translateY(-6px); opacity: 1;   }
}
@media (max-width: 768px) {
  .creditpro-video-shield {
    right: 60px;
    bottom: 24px;
    width: 80px;
    height: 80px;
  }
}


/* ============================================================
   PANEL 1 — Misión + Visión
   ============================================================ */
.nsf-mv {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: 860px;
  padding: 0 48px;
}

/* Organic card base */
.nsf-mv-card {
  position: relative;
  background: rgba(8, 20, 55, 0.84);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid rgba(54, 181, 255, 0.14);
  padding: 48px 52px 44px;
  width: 62%;
  box-shadow:
    0 28px 70px -18px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.04);
  /* entrance state */
  opacity: 0;
  transform: scale(0.92) translateY(44px);
  transition:
    opacity  0.95s cubic-bezier(.16,1,.3,1),
    transform 0.95s cubic-bezier(.16,1,.3,1),
    box-shadow 0.4s ease;
}
.nsf-mv-card.is-in {
  opacity: 1;
  transform: none;
}
.nsf-mv-card:hover {
  box-shadow:
    0 28px 70px -18px rgba(0,0,0,0.55),
    0 0 0 1px rgba(54,181,255,0.18),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

/* Misión — upper-left, sharp top-left corner, rest very round */
.nsf-mv-mision {
  border-radius: 10px 72px 72px 72px / 10px 72px 56px 72px;
  align-self: flex-start;
  margin-bottom: -32px;  /* overlap Visión */
  z-index: 2;
}

/* Visión — lower-right, sharp top-right, rest very round */
.nsf-mv-vision {
  border-radius: 72px 10px 72px 72px / 72px 10px 72px 56px;
  align-self: flex-end;
  transition-delay: 0.22s, 0.22s, 0s;
}

/* Floating pill label */
.nsf-mv-pill {
  position: absolute;
  top: -17px;
  left: 44px;
  background: var(--cyan-400);
  color: #fff;
  font-family: var(--font);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 18px 4px;
  border-radius: 100px;
  box-shadow: 0 5px 18px rgba(54,181,255,0.42);
  white-space: nowrap;
}
.nsf-mv-vision .nsf-mv-pill {
  left: auto;
  right: 44px;
}

.nsf-mv-content p {
  font-size: 17px;
  line-height: 1.72;
  color: rgba(255,255,255,0.84);
  margin: 0;
  font-weight: 400;
  text-wrap: pretty;
}


/* ============================================================
   PANEL 2 — Círculo
   ============================================================ */
.nsf-circle-wrap {
  position: relative;
  width: min(72vw, 560px);
  height: min(72vw, 560px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* SVG ring layer — fills the wrap */
.nsf-circle-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Animated stroke — starts from 12 o'clock */
.nsf-circle-ring {
  transform: rotate(-90deg);
  transform-origin: 250px 250px;
  stroke-dasharray: 1382;
  stroke-dashoffset: 1382;
  transition: stroke-dashoffset 2.6s cubic-bezier(.16,1,.3,1) 0.15s;
}
.nsf-circle-drawn .nsf-circle-ring {
  stroke-dashoffset: 0;
}

/* Dot markers at compass points */
.nsf-ring-dot {
  opacity: 0;
  transition: opacity 0.5s ease;
}
.nsf-circle-drawn .nsf-ring-dot { opacity: 1; }
.nsf-circle-drawn .nsf-ring-dot:nth-child(1) { transition-delay: 2.0s; }
.nsf-circle-drawn .nsf-ring-dot:nth-child(2) { transition-delay: 2.1s; }
.nsf-circle-drawn .nsf-ring-dot:nth-child(3) { transition-delay: 2.2s; }
.nsf-circle-drawn .nsf-ring-dot:nth-child(4) { transition-delay: 2.3s; }

/* Pills container (sits over SVG) */
.nsf-circle-pills {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.nsf-cp {
  position: absolute;
  display: inline-block;
  background: rgba(8, 18, 52, 0.90);
  border: 1px solid rgba(54, 181, 255, 0.28);
  color: rgba(255,255,255,0.88);
  font-family: var(--font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(.16,1,.3,1);
}
.nsf-cp.is-in { opacity: 1; }

/* Positions at circle edge — SVG viewBox 500×500, r=220 */
/* top   (250, 30)  → 50%, 6%                              */
/* right (470, 250) → 94%, 50%                             */
/* bot   (250, 470) → 50%, 94%                             */
/* left  (30, 250)  →  6%, 50%                             */
.nsf-cp-top    { top: 5%;  left: 50%; transform: translateX(-50%); }
.nsf-cp-right  { top: 50%; right: 4%; transform: translateY(-50%); }
.nsf-cp-bottom { bottom: 5%; left: 50%; transform: translateX(-50%); }
.nsf-cp-left   { top: 50%; left: 5%; transform: translate(-100%, -50%); }

/* Gentle float animation post-entrance */
@keyframes nsf-float-y {
  0%,100% { transform: translateX(-50%) translateY(0);   }
  50%      { transform: translateX(-50%) translateY(-5px);}
}
@keyframes nsf-float-yr {
  0%,100% { transform: translateX(-50%) translateY(0);  }
  50%      { transform: translateX(-50%) translateY(4px);}
}
@keyframes nsf-float-xr {
  0%,100% { transform: translateY(-50%) translateX(0); }
  50%      { transform: translateY(-50%) translateX(4px);}
}
@keyframes nsf-float-xl {
  0%,100% { transform: translate(-100%, -50%); }
  50%      { transform: translate(calc(-100% - 5px), -50%); }
}
.nsf-cp-top.is-floating    { animation: nsf-float-y  7s  ease-in-out infinite; }
.nsf-cp-bottom.is-floating { animation: nsf-float-yr 8.5s ease-in-out infinite 1.1s; }
.nsf-cp-right.is-floating  { animation: nsf-float-xr 6.5s ease-in-out infinite 0.5s; }
.nsf-cp-left.is-floating   { animation: nsf-float-xl 9s   ease-in-out infinite 0.2s; }

/* Central text — centered via flex parent */
.nsf-circle-center {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 55%;
  opacity: 0;
  transition: opacity 1.3s ease;
}
.nsf-circle-center.is-in { opacity: 1; }
.nsf-circle-center p {
  font-size: clamp(14px, 1.75vw, 20px);
  line-height: 1.68;
  color: rgba(255,255,255,0.84);
  font-weight: 400;
  margin: 0;
  text-wrap: pretty;
}
.nsf-circle-center .hi {
  color: var(--cyan-400);
  font-weight: 600;
}


/* ============================================================
   PANEL 3 — Quiénes Somos
   ============================================================ */
.nsf-qs {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  max-width: 860px;
  padding: 0 48px;
}

.nsf-qs-card {
  position: relative;
  background: rgba(8, 20, 55, 0.84);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid rgba(54, 181, 255, 0.14);
  padding: 52px 60px;
  border-radius: 72px 72px 72px 8px / 56px 72px 8px 72px;
  box-shadow:
    0 32px 90px -22px rgba(0,0,0,0.58),
    inset 0 1px 0 rgba(255,255,255,0.04);
  opacity: 0;
  transform: scale(0.93) translateY(50px);
  transition: opacity 1s cubic-bezier(.16,1,.3,1), transform 1s cubic-bezier(.16,1,.3,1);
}
.nsf-qs-card.is-in {
  opacity: 1;
  transform: none;
}

.nsf-qs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-400);
  margin-bottom: 22px;
}
.nsf-qs-eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: currentColor;
  display: inline-block;
  flex-shrink: 0;
}

.nsf-qs-title {
  font-size: clamp(20px, 2.8vw, 32px);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
}
.nsf-qs-title .g {
  background: linear-gradient(90deg, #fff 30%, var(--cyan-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nsf-qs-paras p {
  font-size: 15px;
  line-height: 1.74;
  color: rgba(255,255,255,0.72);
  margin: 0 0 16px;
  text-wrap: pretty;
}
.nsf-qs-paras p:last-child { margin-bottom: 0; }

/* Badge below card */
.nsf-qs-badge {
  align-self: flex-end;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(8, 18, 52, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(54,181,255,0.13);
  border-radius: 18px;
  padding: 14px 22px 14px 16px;
  max-width: 460px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.75s cubic-bezier(.16,1,.3,1) 0.38s, transform 0.75s cubic-bezier(.16,1,.3,1) 0.38s;
}
.nsf-qs-badge.is-in { opacity: 1; transform: none; }
.nsf-qs-badge img { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }
.nsf-qs-badge-text {
  font-size: 12px;
  line-height: 1.56;
  color: rgba(255,255,255,0.66);
  font-style: italic;
  margin: 0;
}
.nsf-qs-badge-text strong {
  color: rgba(255,255,255,0.90);
  font-style: normal;
}


/* ============================================================
   NEW CONTACT FORM — more commercial, shorter
   ============================================================ */
.nsf-con-section {
  position: relative;
  padding: 112px 0 96px;
  background: var(--navy-950);
  overflow: hidden;
}

/* reuse existing con-bg / con-glow from styles.css */

.nsf-con-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

/* Left: info */
.nsf-con-info .eyebrow { display: block; margin-bottom: 20px; }
.nsf-con-info h2 {
  font-size: clamp(26px, 3.4vw, 44px);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
}
.nsf-con-info > p {
  font-size: 16px;
  line-height: 1.72;
  color: rgba(255,255,255,0.60);
  margin: 0 0 36px;
  text-wrap: pretty;
}
.nsf-con-channels { display: flex; flex-direction: column; gap: 12px; }
.nsf-con-channel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.68);
  text-decoration: none;
  transition: color 0.2s;
}
.nsf-con-channel:hover { color: var(--cyan-400); }
.nsf-con-channel .ic {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: rgba(54,181,255,0.08);
  border: 1px solid rgba(54,181,255,0.16);
  border-radius: 9px;
  color: var(--cyan-400);
  flex-shrink: 0;
  transition: background 0.2s;
}
.nsf-con-channel:hover .ic { background: rgba(54,181,255,0.14); }

/* Right: form card */
.nsf-con-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 36px;
  padding: 44px 44px 40px;
}

.nsf-con-fields {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 28px;
}

.nsf-con-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  cursor: pointer;
}
.nsf-con-field > span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.40);
}
.nsf-con-field input {
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 15px;
  color: #fff;
  outline: none;
  transition: border-color 0.22s, background 0.22s;
  font-family: var(--font);
}
.nsf-con-field input::placeholder { color: rgba(255,255,255,0.24); }
.nsf-con-field input:focus {
  border-color: rgba(54,181,255,0.48);
  background: rgba(54,181,255,0.06);
}

.nsf-con-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--cyan-400);
  color: var(--navy-950);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 16px 28px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s ease;
  margin-bottom: 14px;
}
.nsf-con-btn:hover:not(:disabled) {
  opacity: 0.88;
  transform: translateY(-1px);
}
.nsf-con-btn:disabled { opacity: 0.38; cursor: default; }

.nsf-con-disclaimer {
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255,255,255,0.32);
  text-align: center;
  margin: 0;
}

/* Done state */
.nsf-con-done {
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
  padding: 64px 24px;
}
.nsf-con-check {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  background: rgba(54,181,255,0.10);
  border: 1px solid rgba(54,181,255,0.26);
  border-radius: 50%;
  color: var(--cyan-400);
  margin: 0 auto 24px;
}
.nsf-con-done h3 {
  font-size: 28px; font-weight: 700;
  color: #fff; margin: 0 0 12px;
}
.nsf-con-done p {
  font-size: 16px; line-height: 1.68;
  color: rgba(255,255,255,0.58); margin: 0 0 32px;
}
.nsf-con-done button {
  background: none;
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.50);
  font-family: var(--font);
  font-size: 13px;
  padding: 10px 24px;
  border-radius: 100px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.nsf-con-done button:hover { color: #fff; border-color: rgba(255,255,255,0.32); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .nsf-mv { padding: 0 28px; }
  .nsf-mv-card { width: 82%; padding: 36px 34px; }
  .nsf-mv-content p { font-size: 15px; }

  .nsf-circle-wrap {
    width: min(88vw, 420px);
    height: min(88vw, 420px);
  }
  .nsf-circle-center { max-width: 62%; }
  .nsf-cp { font-size: 9px; padding: 5px 12px; letter-spacing: 0.08em; }

  .nsf-qs { padding: 0 24px; }
  .nsf-qs-card { padding: 38px 36px; }
  .nsf-qs-title { font-size: 20px; }
  .nsf-qs-badge { align-self: stretch; }

  .nsf-con-grid { grid-template-columns: 1fr; gap: 44px; }
  .nsf-con-card { padding: 32px 28px; border-radius: 28px; }
}

@media (max-width: 560px) {
  .nsf-wrapper { height: 380vh; }
  .nsf-mv-card { width: 93%; }
  .nsf-gemini-badge { padding: 8px 12px 8px 10px; }
  .nsf-gb-text { display: none; }
  .nsf-circle-center p { font-size: 12px; }
  .nsf-cp { font-size: 8px; padding: 4px 10px; }
  .nsf-con-section { padding: 72px 0 64px; }
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .nsf-mv-card,
  .nsf-qs-card,
  .nsf-qs-badge,
  .nsf-cp,
  .nsf-circle-center { transition: none !important; }
  .nsf-mv-card,
  .nsf-mv-card.is-in,
  .nsf-qs-card.is-in { opacity: 1 !important; transform: none !important; }
  .nsf-cp,
  .nsf-cp.is-in { opacity: 1 !important; }
  .nsf-circle-center,
  .nsf-circle-center.is-in { opacity: 1 !important; }
  .nsf-circle-ring { stroke-dashoffset: 0 !important; transition: none !important; }
  .nsf-ring-dot { opacity: 1 !important; }
  .nsf-cp-top.is-floating,
  .nsf-cp-bottom.is-floating,
  .nsf-cp-right.is-floating,
  .nsf-cp-left.is-floating { animation: none !important; }
}
