/* =============================================
   NUEK OPEN FINANCE — Landing Page
   ============================================= */

/* ===== VARIABLES ===== */
:root {
  --black:        #0a0a0a;
  --black-card:   #161616;
  --black-border: #2a2a2a;
  --white:        #ffffff;
  --purple:       #7C3AED;
  --purple-dim:   rgba(124, 58, 237, 0.15);
  --gray-light:   #f5f4f0;
  --gray-mid:     #888888;
  --gray-dim:     #555555;
  --text-dark:    #111111;
  --green:        #22c55e;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm:  8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --max-w: 1440px;
  --section-pad: clamp(80px, 10vw, 160px);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--white);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 1440px;
  margin: 0 auto;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 5.5vw, 80px);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--white);
  color: var(--black);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 100px;
  border: 1.5px solid transparent;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
  white-space: nowrap;
}
.btn:hover { opacity: 0.85; }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.25);
}
.btn-outline:hover { border-color: rgba(255,255,255,0.6); opacity: 1; }

.btn-submit {
  width: 100%;
  background: var(--text-dark);
  color: var(--white);
  padding: 14px;
  font-size: 15px;
  border-radius: var(--radius-sm);
  margin-top: 8px;
}
.btn-submit:hover { opacity: 0.85; }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== EYEBROW BADGE ===== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}
.eyebrow-icon { flex-shrink: 0; opacity: 1; }

/* ===== STATUS BADGE ===== */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-dark);
  background: rgba(0,0,0,0.06);
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid rgba(0,0,0,0.1);
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-green { background: var(--green); }

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1440px;
  z-index: 100;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--black-border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
}
.logo {
  color: var(--white);
  display: flex;
  align-items: center;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: grid;
  grid-template-rows: 1fr auto;
  background: var(--black);
  overflow: hidden;
  padding-top: 44px;
}
.hero-glow {
  position: absolute;
  inset: 0;
  background-image: url('images/hero-bg.jpg');
  background-size: cover;
  background-position: left center;
  opacity: 1;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(40px, 6vh, 80px) 0;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 auto 40px;
  max-width: 700px;
}
.hero .eyebrow {
  justify-content: center;
}
.hero-bar {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px 0;
}
.hero-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-bar .badge-status {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
}
.hero-bar .dot-green { background: var(--green); }
.hero-location {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}

/* ===== SECTION: LO QUE APRENDERÁS ===== */
.section-learn {
  background: var(--black);
  padding: var(--section-pad) 0;
  overflow: hidden;
}
.section-title {
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  margin-bottom: 36px;
  letter-spacing: -0.01em;
  text-align: left;
}

/* ===== CAROUSEL ===== */
.carousel { position: relative; overflow: hidden; }
.carousel-track {
  display: flex;
  gap: 16px;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.carousel-slide { flex: 0 0 91%; min-width: 0; }
.slide-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.slide-media--light {
  background-color: #e0ded9;
  background-image: url('images/slide-tablet.jpg');
}
.slide-media--dark {
  background-color: #111111;
  background-image: url('images/slide-terminal.jpg');
}
.slide-media--purple {
  background-color: #0d0d0d;
  background-image: url('images/slide-wave.jpg');
}

/* Mockup placeholder inside slide 1 */
.slide-placeholder--light {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 6%;
}
.mockup-screen {
  background: #111;
  border-radius: 12px;
  padding: 24px 28px;
  width: 42%;
  max-width: 280px;
}
.mockup-title { font-size: 11px; color: rgba(255,255,255,0.5); margin-bottom: 12px; }
.mockup-stat { font-size: 2rem; font-weight: 700; color: var(--white); line-height: 1; }
.mockup-sub { font-size: 10px; color: rgba(255,255,255,0.5); margin-top: 6px; }

.slide-caption {
  position: absolute;
  top: 28px;
  right: 32px;
  max-width: 280px;
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 500;
  line-height: 1.35;
  text-align: right;
  z-index: 1;
}
.slide-caption--center {
  right: 0;
  left: 0;
  text-align: center;
  max-width: 100%;
  padding: 0 48px;
}
.slide-caption--dark { color: var(--text-dark); }
.slide-caption--light { color: var(--white); text-shadow: 0 1px 8px rgba(0,0,0,0.5); }
@media (max-width: 600px) {
  .slide-caption { top: 16px; right: 16px; max-width: 180px; }
  .slide-caption--center { right: 0; left: 0; padding: 0 20px; }
}

/* Carousel controls */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}
.carousel-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #1c1c1c;
  padding: 8px 14px;
  border-radius: 100px;
}
.carousel-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 100px;
  background: rgba(255,255,255,0.3);
  border: none;
  padding: 0;
  transition: width 0.3s, background 0.3s;
  cursor: pointer;
}
.carousel-dots .dot.active {
  width: 22px;
  background: var(--white);
}
.carousel-next {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1c1c1c;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}
.carousel-next:hover { background: #2a2a2a; }

/* ===== SECTION: INFRAESTRUCTURA ===== */
.section-infra {
  position: relative;
  background-color: var(--black);
  background-image: url('images/infra-spiral.jpg');
  background-size: cover;
  background-position: right center;
  overflow: hidden;
  min-height: 645px;
}
.infra-text-wrap {
  position: relative;
  z-index: 1;
  max-width: 46%;
  padding: clamp(48px, 6vw, 80px) clamp(20px, 5.5vw, 80px);
}
.infra-text-wrap .eyebrow {
  margin-bottom: 16px;
}
.infra-text-wrap h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
@media (max-width: 768px) {
  .infra-text-wrap { max-width: 100%; }
}

/* ===== SECTION: AUDIENCIA ===== */
.section-audience {
  background: var(--black);
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--black-border);
}
.section-audience h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  text-align: center;
}
.audience-subtitle {
  font-size: clamp(14px, 1.5vw, 16px);
  color: rgba(255,255,255,0.5);
  text-align: center;
  max-width: 500px;
  margin: 0 auto 48px;
  line-height: 1.65;
}
.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 680px;
  margin: 0 auto;
}
.audience-card {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.audience-icon {
  flex-shrink: 0;
  color: rgba(255,255,255,0.55);
  margin-top: 2px;
}
.audience-card p {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}

/* ===== SECTION: TECNOLOGÍA ===== */
.section-tech {
  background: var(--black);
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--black-border);
}
.tech-lead {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  max-width: 700px;
  margin-bottom: 48px;
}
.text-purple { color: #AB5BFF; }

.link-accent {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255,255,255,0.35);
  transition: text-decoration-color 0.2s;
}
.link-accent:hover { text-decoration-color: var(--white); }
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tech-media {
  aspect-ratio: 4 / 3;
  background: #1a1a1a;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.tech-item:nth-child(1) .tech-media {
  background-image: url('images/tech-1.jpg');
}
.tech-item:nth-child(2) .tech-media {
  background-image: url('images/tech-2.jpg');
}
.tech-item:nth-child(3) .tech-media {
  background-image: url('images/tech-3.jpg');
}
.tech-item p {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
}
@media (max-width: 768px) {
  .tech-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ===== SECTION: EVENTO ===== */
.section-event {
  background: var(--gray-light);
  padding: var(--section-pad) 0 clamp(40px, 6vw, 80px);
  color: var(--text-dark);
}
.event-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 16px;
}
.event-date-big {
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
}
.event-venue {
  font-size: clamp(1.6rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-top: 4px;
}
.event-time {
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: 300;
  color: var(--gray-mid);
  letter-spacing: -0.01em;
  align-self: flex-start;
  padding-top: 12px;
}
.event-photo {
  width: 100%;
  aspect-ratio: 16 / 7;
  background: #b0afaa;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-image: url('images/santiago-aerial.jpg');
}
.event-address {
  font-size: 13px;
  color: var(--gray-mid);
  margin-top: 16px;
}

/* ===== SECTION: REGISTRO ===== */
.section-register {
  background: var(--gray-light);
  padding: clamp(40px, 6vw, 80px) 0 var(--section-pad);
  border-top: 1px solid rgba(0,0,0,0.08);
  color: var(--text-dark);
}
.register-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.register-info { display: flex; flex-direction: column; gap: 14px; }
.register-date {
  font-size: 14px;
  color: var(--gray-mid);
}
.register-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #cccac5;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-image: url('images/hands.jpg');
}

/* Form */
.register-form-wrap h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.form-field { margin-bottom: 12px; }
.form-field input,
.form-field select {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.form-field input:focus,
.form-field select:focus { border-color: var(--text-dark); }
.form-field input::placeholder { color: #aaa; }
.form-field select { color: var(--text-dark); cursor: pointer; }
.form-field select option[value=""] { color: #aaa; }
.form-field select:invalid { color: #aaa; }

/* Checkboxes */
.check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: rgba(0,0,0,0.6);
  line-height: 1.5;
  cursor: pointer;
  margin-bottom: 12px;
  position: relative;
}
.check-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.check-custom {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border: 1.5px solid rgba(0,0,0,0.25);
  border-radius: 4px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
  margin-top: 1px;
}
.check-label input:checked + .check-custom {
  background: var(--text-dark);
  border-color: var(--text-dark);
}
.check-label input:checked + .check-custom::after {
  content: '';
  display: block;
  width: 8px;
  height: 5px;
  border-left: 1.5px solid var(--white);
  border-bottom: 1.5px solid var(--white);
  transform: rotate(-45deg) translateY(-1px);
}
.form-error {
  font-size: 13px;
  color: #e53e3e;
  margin-top: 6px;
}
.add-calendar {
  display: block;
  text-align: center;
  font-size: 13px;
  color: var(--gray-mid);
  margin-top: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.add-calendar:hover { color: var(--text-dark); }

/* Success state */
.success-message {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
  gap: 16px;
}
.success-icon { flex-shrink: 0; }
.success-message h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}
.success-message p {
  font-size: 15px;
  color: var(--gray-mid);
}

@media (max-width: 768px) {
  .register-inner { grid-template-columns: 1fr; }
  .register-photo { aspect-ratio: 16 / 9; }
}

/* ===== FOOTER ===== */
.footer {
  background: var(--black);
  border-top: 1px solid var(--black-border);
  padding: 24px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-tagline {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}
.footer-links {
  display: flex;
  gap: 28px;
}
.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}
.footer-links a:hover { color: rgba(255,255,255,0.8); }

/* ===== DESKTOP OVERRIDES (≥ 769px) ===== */
@media (min-width: 769px) {
  .section-title { text-align: center; }
}

/* ===== MOBILE OVERRIDES (≤ 600px) ===== */
@media (max-width: 600px) {
  /* Hero left-aligned */
  .hero-content {
    align-items: flex-start;
    text-align: left;
    padding-left: clamp(20px, 5.5vw, 40px);
    padding-right: clamp(20px, 5.5vw, 40px);
  }
  .hero .eyebrow { justify-content: flex-start; }
  .hero h1 { margin-left: 0; margin-right: 0; max-width: 100%; }

  /* Carousel full-width, sin peek */
  .carousel-slide { flex: 0 0 100%; }

  /* Audience cards 1 columna */
  .audience-grid { grid-template-columns: 1fr; }
}

/* ===== RESPONSIVE GLOBAL ===== */
@media (max-width: 480px) {
  .hero h1 br { display: none; }
  .audience-subtitle br { display: none; }
  .infra-text-wrap h2 br { display: none; }
  .hero-bar-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
