/* ═══════════════════════════════════════════════
   OASYS® — Landing Page Styles
   ═══════════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:       #0a2240;
  --navy-dark:  #071829;
  --navy-mid:   #0f2d4d;
  --blue:       #2563eb;
  --blue-light: #3b82f6;
  --blue-glow:  #60a5fa;
  --gray:       #94a3b8;
  --gray-light: #cbd5e1;
  --white:      #ffffff;
  --font:       'Inter', sans-serif;
  --max-w:      1200px;
  --radius:     12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--navy);
  color: var(--white);
  overflow-x: hidden;
}

/* ── Loader ── */
#loader {
  position: fixed;
  inset: 0;
  background: var(--navy-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.loader-logo {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.loader-logo sup {
  font-size: 1rem;
  color: var(--blue-glow);
  vertical-align: super;
}

.loader-track {
  width: 220px;
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 99px;
  overflow: hidden;
}

#loader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--blue-glow));
  border-radius: 99px;
  transition: width 0.08s linear;
}

.loader-text {
  color: var(--gray);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Navbar ── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
  background: rgba(7, 24, 41, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

.nav-logo { text-decoration: none; }

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--white);
}

.logo-text sup {
  font-size: 0.6em;
  color: var(--blue-glow);
  vertical-align: super;
}

#nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

#nav-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

#nav-links a:hover { color: var(--white); }

.btn-nav {
  background: var(--blue) !important;
  color: var(--white) !important;
  padding: 0.55rem 1.2rem;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.15s !important;
}

.btn-nav:hover {
  background: var(--blue-light) !important;
  transform: translateY(-1px);
}

/* Hamburger */
#menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

#menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── Hero ── */
#hero-section {
  position: relative;
  height: 500vh;
}

#hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--navy-dark);
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#hero-top-fade {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(to bottom, rgba(7,24,41,0.75) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

#hero-bottom-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65%;
  background: linear-gradient(to top,
    rgba(7,24,41,0.92) 0%,
    rgba(7,24,41,0.5) 40%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Text overlays */
.hero-overlay {
  position: absolute;
  bottom: 14%;
  left: 0;
  right: 0;
  text-align: center;
  padding: 0 2rem;
  opacity: 0;
  transform: translateY(20px);
  z-index: 2;
  pointer-events: none;
}

/* Primer overlay visible desde el frame 0 */
#overlay-1 {
  opacity: 1;
  transform: translateY(0);
}

/* Last overlay has CTAs — needs pointer events when visible */
.hero-overlay:last-of-type { pointer-events: auto; }

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-glow);
  margin-bottom: 0.875rem;
}

.hero-overlay h1 {
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--white);
  text-shadow: 0 4px 30px rgba(0,0,0,0.6);
  margin-bottom: 2rem;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll indicator */
#scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
  color: rgba(255,255,255,0.45);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: scrollPulse 2s ease infinite;
  transition: opacity 0.3s;
}

.scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.45), transparent);
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) translateY(0); }
  50%       { opacity: 1;   transform: translateX(-50%) translateY(5px); }
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.22);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  background: transparent;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  border: 1.5px solid rgba(255,255,255,0.35);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  white-space: nowrap;
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.05);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
}

/* ── Sections ── */
.section { padding: 7rem 0; }
.section-dark  { background: var(--navy-dark); }
.section-navy  { background: var(--navy); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue-glow);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 1.25rem;
}

.section-desc {
  color: var(--gray-light);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── Reveal Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Pain Points ── */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.pain-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.25s, transform 0.25s;
}

.pain-card:hover {
  border-color: rgba(96,165,250,0.35);
  transform: translateY(-3px);
}

.pain-icon { font-size: 2rem; margin-bottom: 1rem; }

.pain-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pain-card p {
  color: var(--gray-light);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ── Modules ── */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.module-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  transition: border-color 0.25s;
}

.module-card.module-featured {
  background: rgba(37,99,235,0.12);
  border-color: rgba(96,165,250,0.4);
}

.module-card:hover { border-color: rgba(96,165,250,0.4); }

.module-badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  background: var(--blue);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  border-radius: 5px;
  margin-bottom: 1.25rem;
}

.module-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.module-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.module-card li {
  color: var(--gray-light);
  font-size: 0.88rem;
  padding-left: 1.3rem;
  position: relative;
  line-height: 1.4;
}

.module-card li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--blue-glow);
  font-size: 0.8rem;
}

.extra-modules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.extra-module {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 1.25rem;
}

.extra-badge {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: rgba(37,99,235,0.25);
  color: var(--blue-glow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  margin-top: 1px;
}

.extra-module strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.extra-module p {
  color: var(--gray);
  font-size: 0.82rem;
  line-height: 1.45;
}

/* ── Why Oasys ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.why-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 2rem;
}

.why-number {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--blue-glow);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.why-icon { font-size: 2.25rem; margin-bottom: 0.5rem; }

.why-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.why-card p {
  color: var(--gray-light);
  font-size: 0.88rem;
  line-height: 1.65;
}

/* ── Clients ── */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.client-logo {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 8px;
  padding: 1.25rem 1rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--gray-light);
  letter-spacing: 0.01em;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.client-logo:hover {
  background: rgba(255,255,255,0.09);
  color: var(--white);
  border-color: rgba(255,255,255,0.2);
}

.clients-note {
  text-align: center;
  color: var(--gray);
  font-style: italic;
  font-size: 0.9rem;
}

/* ── CTA Section ── */
.section-cta {
  background: linear-gradient(150deg, #0f2d4d 0%, var(--navy-dark) 100%);
  border-top: 1px solid rgba(96,165,250,0.15);
  border-bottom: 1px solid rgba(96,165,250,0.15);
}

.cta-content {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 1.25rem;
}

.cta-desc {
  color: var(--gray-light);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  line-height: 1.65;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}

.contact-info h2 {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.contact-info > p {
  color: var(--gray-light);
  line-height: 1.7;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gray-light);
  font-size: 0.9rem;
}

.contact-icon { font-size: 1.1rem; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-light);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--white);
  font-family: var(--font);
  font-size: 0.9rem;
  transition: border-color 0.2s;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.28);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-light);
}

/* ── Footer ── */
.footer {
  background: var(--navy-dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 3rem 0 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  color: var(--gray);
  font-size: 0.82rem;
  margin-top: 0.75rem;
  line-height: 1.6;
}

.footer-nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
}

.footer-nav a {
  color: var(--gray);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem;
  color: var(--gray);
  font-size: 0.78rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-powered strong {
  color: var(--gray-light);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 960px) {
  .modules-grid,
  .extra-modules {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  /* Hero más corto en móvil para no requerir scroll excesivo */
  #hero-section { height: 250vh; }

  #menu-toggle { display: flex; }

  #nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(7, 24, 41, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    z-index: 999;
  }

  #nav-links.open { display: flex; }
  #nav-links a { font-size: 1.3rem; }

  #navbar { padding: 1.25rem 1.5rem; }

  .hero-overlay h1 { font-size: 2rem; }
  .hero-cta-group { flex-direction: column; align-items: center; }

  .section { padding: 5rem 0; }
  .section-header { margin-bottom: 3rem; }

  .form-row { grid-template-columns: 1fr; }

  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-nav {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .pain-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-buttons { flex-direction: column; }
}
