/* ==========================================================================
   SAYA ECO — Landing Page Commercial Stylesheet
   Smart Testing RD / ST-ITcloud
   ========================================================================== */

/* -- Design Tokens -- */
:root {
  --navy: #0E1D3D;
  --navy-dark: #081225;
  --teal: #007D83;
  --cyan: #00A4AC;
  --cyan-bright: #24CDD5;
  --cyan-soft: #E5FAFB;
  --orange: #FF7A00;
  --orange-dark: #E65C00;
  --green-accent: #55E889;
  --text-body: #334155;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --bg-white: #FFFFFF;
  --bg-alt: #F8F9FA;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 10px rgba(14, 29, 61, 0.05);
  --shadow-md: 0 8px 25px -5px rgba(14, 29, 61, 0.08);
  --shadow-lg: 0 20px 45px -10px rgba(14, 29, 61, 0.15);

  --trans: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --trans-smooth: 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* -- Reset -- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* -- Utility -- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-cyan { color: var(--cyan-bright); }
.font-mono { font-family: var(--font-mono); }

/* -- Buttons -- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--trans);
  white-space: nowrap;
}
.btn-sm { padding: 10px 20px; }
.btn-lg { padding: 16px 36px; font-size: 17px; }
.btn-orange {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 122, 0, 0.35);
}
.btn-orange:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 122, 0, 0.45);
}
.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}
.btn-outline-light:hover {
  border-color: var(--cyan-bright);
  background: rgba(36, 205, 213, 0.1);
  color: var(--cyan-bright);
}

/* -- Navbar -- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(14, 29, 61, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(36, 205, 213, 0.12);
  transition: background var(--trans);
}
.navbar.scrolled { background: rgba(8, 18, 37, 0.95); }
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-logo { width: 32px; height: 32px; object-fit: contain; border-radius: 6px; }
.nav-name { font-weight: 700; font-size: 18px; color: #fff; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--trans);
}
.nav-links a:hover { color: var(--cyan-bright); }
.nav-cta { margin-left: auto; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--trans);
}

/* -- Hero -- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--navy);
  overflow: hidden;
  padding: 80px 24px 40px;
}
.hero-bg-gradient {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(0, 125, 131, 0.25), transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(36, 205, 213, 0.15), transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(0, 164, 172, 0.12), transparent 60%);
}
.hero-grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(36, 205, 213, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 205, 213, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(36, 205, 213, 0.1);
  border: 1px solid rgba(36, 205, 213, 0.25);
  border-radius: var(--radius-full);
  color: var(--cyan-bright);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 32px;
}
.pulse-dot {
  width: 8px; height: 8px;
  background: var(--green-accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.hero-logo {
  width: 80px; height: 80px;
  margin: 0 auto 28px;
  border-radius: 16px;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.6;
}
.hero-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-size: 1.75rem; font-weight: 700; color: var(--cyan-bright); font-family: var(--font-mono); }
.stat-label { font-size: 13px; color: rgba(255, 255, 255, 0.5); text-transform: uppercase; letter-spacing: 0.05em; }
.hero-scroll-indicator {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* -- Section base -- */
.section { padding: 100px 0; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-desc { font-size: 1.1rem; color: var(--text-muted); }

/* -- Problema -- */
.section-problema { background: var(--bg-alt); }
.problema-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}
.problema-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-md);
  position: relative;
  border: 1px solid var(--border);
  transition: transform var(--trans-smooth);
}
.problema-card:hover { transform: translateY(-4px); }
.problema-bad { border-top: 4px solid #DC2626; }
.problema-good { border-top: 4px solid var(--green-accent); }
.problema-icon {
  width: 64px; height: 64px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.problema-bad .problema-icon { background: #FEF2F2; color: #DC2626; }
.problema-good .problema-icon { background: #ECFBF1; color: var(--green-accent); }
.problema-card h3 { font-size: 1.3rem; font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.problema-list li {
  padding: 8px 0;
  font-size: 15px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.problema-list li::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}
.problema-bad .problema-list li::before { background: #DC2626; }
.problema-good .problema-list li::before { background: var(--green-accent); }
.problema-tag {
  position: absolute;
  top: 20px; right: 20px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}
.tag-bad { background: #FEF2F2; color: #DC2626; }
.tag-good { background: #ECFBF1; color: #16A34A; }
.problema-vs {
  display: flex; align-items: center; justify-content: center;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--cyan-bright);
  font-weight: 700;
  font-size: 16px;
  box-shadow: var(--shadow-md);
}

/* -- Solución -- */
.solucion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.solucion-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--trans-smooth);
}
.solucion-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--cyan-bright);
}
.solucion-icon-wrap {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.icon-cyan { background: var(--cyan-soft); color: var(--cyan); }
.icon-green { background: #ECFBF1; color: var(--green-accent); }
.icon-orange { background: #FFF3E8; color: var(--orange); }
.solucion-card h3 { font-size: 1.25rem; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.solucion-desc { font-size: 15px; color: var(--text-secondary); margin-bottom: 20px; line-height: 1.55; }
.solucion-features { display: flex; flex-wrap: wrap; gap: 8px; }
.feature-pill {
  padding: 5px 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* -- Flujo -- */
.section-flujo { background: var(--navy); color: #fff; }
.section-flujo .section-title { color: #fff; }
.section-flujo .section-desc { color: rgba(255, 255, 255, 0.6); }
.section-flujo .section-eyebrow { color: var(--cyan-bright); }
.flujo-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 40px 0;
}
.flujo-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 130px;
  padding: 20px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(36, 205, 213, 0.15);
  border-radius: var(--radius-md);
  transition: all var(--trans-smooth);
}
.flujo-node:hover {
  background: rgba(36, 205, 213, 0.1);
  border-color: var(--cyan-bright);
  transform: translateY(-4px);
}
.flujo-node-highlight {
  background: rgba(36, 205, 213, 0.08);
  border-color: rgba(36, 205, 213, 0.3);
}
.flujo-node-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(36, 205, 213, 0.15);
  color: var(--cyan-bright);
  display: flex; align-items: center; justify-content: center;
}
.flujo-node-label { font-size: 14px; font-weight: 600; color: #fff; }
.flujo-node-sub { font-size: 11px; color: rgba(255, 255, 255, 0.5); font-family: var(--font-mono); }
.flujo-arrow {
  font-size: 24px;
  color: var(--cyan-bright);
  opacity: 0.6;
  font-weight: 300;
}
.flujo-note {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 700px;
  margin: 30px auto 0;
  padding: 16px 24px;
  background: rgba(255, 122, 0, 0.08);
  border: 1px solid rgba(255, 122, 0, 0.2);
  border-radius: var(--radius-md);
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}
.flujo-note svg { color: var(--orange); flex-shrink: 0; }

/* -- Seguridad -- */
.section-seguridad { background: var(--bg-alt); }
.seguridad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.seguridad-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  text-align: center;
  transition: all var(--trans-smooth);
}
.seguridad-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.seguridad-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--cyan-soft);
  color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.seguridad-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.seguridad-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.55; }
.seguridad-badges {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 48px;
}
.badge {
  padding: 10px 24px;
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
  transition: all var(--trans);
}
.badge:hover { border-color: var(--cyan); color: var(--cyan); }

/* -- Caso de Éxito -- */
.section-caso { background: var(--bg-white); }
.caso-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.caso-metric {
  text-align: center;
  padding: 40px 20px;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all var(--trans-smooth);
}
.caso-metric:hover { background: var(--cyan-soft); border-color: var(--cyan-bright); }
.caso-metric-num {
  display: block;
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--cyan);
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.caso-metric-label { display: block; font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.caso-metric-desc { display: block; font-size: 13px; color: var(--text-muted); }

/* -- Metodología Timeline -- */
.section-metodologia { background: var(--bg-alt); }
.timeline { max-width: 700px; margin: 0 auto; position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 80px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--cyan-bright), var(--orange));
}
.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 40px;
  position: relative;
}
.timeline-week {
  width: 80px;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: right;
  padding-top: 4px;
}
.timeline-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--cyan-bright);
  border: 3px solid var(--bg-alt);
  box-shadow: 0 0 0 2px var(--cyan-bright);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  margin-top: 4px;
  margin-left: -8px;
}
.timeline-content {
  flex: 1;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--trans);
}
.timeline-content:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }
.timeline-content h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.timeline-content p { font-size: 14px; color: var(--text-secondary); }

/* -- CTA Final -- */
.section-cta-final {
  position: relative;
  background: var(--navy);
  padding: 100px 0;
  overflow: hidden;
}
.cta-final-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(0, 164, 172, 0.2), transparent 50%),
    radial-gradient(ellipse at 70% 50%, rgba(255, 122, 0, 0.12), transparent 50%);
}
.cta-final-content { position: relative; z-index: 2; text-align: center; }
.cta-final-title { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 800; color: #fff; margin-bottom: 16px; letter-spacing: -0.02em; }
.cta-final-desc { font-size: 1.15rem; color: rgba(255, 255, 255, 0.7); margin-bottom: 36px; }
.cta-final-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.cta-final-contact { display: flex; gap: 12px; justify-content: center; align-items: center; color: rgba(255, 255, 255, 0.5); font-size: 14px; }
.dot-sep { color: var(--cyan-bright); }

/* -- Footer -- */
.footer { background: var(--navy-dark); color: rgba(255, 255, 255, 0.6); padding: 60px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-logo { width: 160px; border-radius: 8px; }
.footer-motto { font-size: 13px; color: var(--cyan-bright); font-style: italic; max-width: 300px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links h4 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-links a { font-size: 14px; color: rgba(255, 255, 255, 0.6); transition: color var(--trans); }
.footer-links a:hover { color: var(--cyan-bright); }
.footer-text { font-size: 14px; color: rgba(255, 255, 255, 0.4); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 20px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-bottom span { font-size: 13px; }
.footer-product { font-family: var(--font-mono); color: var(--cyan-bright); }

/* -- Animations -- */
.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* -- Responsive -- */
@media (max-width: 1024px) {
  .solucion-grid, .seguridad-grid { grid-template-columns: 1fr; gap: 20px; }
  .caso-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--navy-dark);
    padding: 20px 24px;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .section { padding: 70px 0; }
  .problema-grid { grid-template-columns: 1fr; gap: 20px; }
  .problema-vs { margin: 0 auto; }
  .caso-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-stats { gap: 24px; }
  .flujo-diagram { flex-direction: column; }
  .flujo-arrow { transform: rotate(90deg); }
  .timeline::before { left: 12px; }
  .timeline-item { gap: 16px; }
  .timeline-week { width: auto; text-align: left; font-size: 12px; }
  .timeline-dot { margin-left: 4px; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-cta-group { flex-direction: column; align-items: center; }
  .btn-lg { width: 100%; }
  .hero-stats { flex-direction: column; gap: 20px; }
}
