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

:root {
  --navy:       #0D1B2A;
  --navy-light: #132236;
  --navy-card:  #1A2E45;
  --teal:       #00D4B8;
  --teal-dim:   #00a896;
  --indigo:     #6366F1;
  --text:       #E8F0FE;
  --text-muted: #8FA3BC;
  --border:     rgba(0, 212, 184, 0.15);
  --radius:     14px;
  --shadow:     0 8px 40px rgba(0, 0, 0, 0.4);
  --font:       'Outfit', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--navy);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── GRADIENT TEXT ────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--teal), var(--indigo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--indigo));
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 212, 184, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 212, 184, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.btn-outline-nav {
  background: transparent;
  color: var(--teal);
  border: 1.5px solid var(--teal);
  padding: 9px 22px;
  font-size: 0.88rem;
}
.btn-outline-nav:hover {
  background: var(--teal);
  color: var(--navy);
}

.btn-full { width: 100%; justify-content: center; border-radius: var(--radius); }

/* ── NAVBAR ───────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  transition: background 0.3s, box-shadow 0.3s;
}
#navbar.scrolled {
  background: rgba(13, 27, 42, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img { display: block; }

/* ── HERO ─────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 70% 40%, rgba(99, 102, 241, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(0, 212, 184, 0.10) 0%, transparent 55%),
    var(--navy);
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,184,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,184,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  flex: 1;
}

.badge-pill {
  display: inline-block;
  background: rgba(0, 212, 184, 0.12);
  border: 1px solid rgba(0, 212, 184, 0.3);
  color: var(--teal);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 1.08rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 500px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--teal), var(--indigo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }
.stat-divider { width: 1px; height: 36px; background: var(--border); }

/* Hero visual */
.hero-visual {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}
.glow-ring {
  width: 340px; height: 340px;
  border-radius: 50%;
  border: 1px solid rgba(0,212,184,0.2);
  position: absolute;
  animation: pulseRing 3s ease-in-out infinite;
}
.glow-ring::before {
  content: '';
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  border: 1px solid rgba(99,102,241,0.15);
  animation: pulseRing 3s ease-in-out infinite 0.5s;
}
@keyframes pulseRing {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.05); opacity: 1; }
}

.floating-cards { position: relative; width: 320px; height: 320px; }
.fcard {
  position: absolute;
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}
.fcard-1 { top: 10%; left: 10%; animation: float1 4s ease-in-out infinite; }
.fcard-2 { top: 5%; right: 5%; animation: float2 4.5s ease-in-out infinite; }
.fcard-3 { top: 50%; left: 0; animation: float1 5s ease-in-out infinite 0.5s; }
.fcard-4 { bottom: 15%; left: 20%; animation: float2 4s ease-in-out infinite 1s; }
.fcard-5 { bottom: 10%; right: 10%; animation: float1 4.5s ease-in-out infinite 0.3s; }
@keyframes float1 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(10px); }
}

/* ── SECTION COMMONS ──────────────────────────────────────── */
.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
  text-align: center;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 560px;
  margin: 0 auto 52px;
}

/* ── BRAND STORY ──────────────────────────────────────────── */
#marca {
  padding: 100px 0;
  background: var(--navy-light);
}
#marca .section-title { text-align: left; }
.brand-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 40px;
}
.brand-text p {
  color: var(--text-muted);
  margin-bottom: 18px;
  font-size: 1rem;
}
.brand-text strong { color: var(--text); }
.brand-pillars { margin-top: 36px; display: flex; flex-direction: column; gap: 16px; }
.pillar {
  display: flex;
  align-items: center;
  gap: 16px;
}
.pillar-icon {
  font-size: 1.4rem;
  width: 46px; height: 46px;
  background: rgba(0,212,184,0.1);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pillar strong { display: block; font-size: 0.92rem; color: var(--text); }
.pillar span { font-size: 0.8rem; color: var(--text-muted); }

/* Brand visual card */
.brand-visual { display: flex; justify-content: center; }
.brand-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.bc-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(0,0,0,0.2);
  border-bottom: 1px solid var(--border);
}
.bc-dot { width: 10px; height: 10px; border-radius: 50%; }
.bc-dot.red { background: #FF5F57; }
.bc-dot.yellow { background: #FFBD2E; }
.bc-dot.green { background: #28C840; }
.bc-title { font-size: 0.75rem; color: var(--text-muted); margin-left: 6px; }
.bc-body { padding: 20px; }
.bc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.bc-bar {
  height: 6px;
  background: linear-gradient(90deg, var(--teal), var(--indigo));
  border-radius: 3px;
  flex-shrink: 0;
  animation: barGrow 1.5s ease-out forwards;
}
@keyframes barGrow {
  from { width: 0 !important; }
}
.bc-metric {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.bc-metric-item { text-align: center; }
.bc-num { display: block; font-size: 1.3rem; font-weight: 700; color: var(--teal); }
.bc-lbl { font-size: 0.72rem; color: var(--text-muted); }

/* ── SOLUTIONS ────────────────────────────────────────────── */
#soluciones {
  padding: 100px 0;
}
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.sol-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  transition: all 0.25s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.sol-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,212,184,0.04), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}
.sol-card:hover {
  border-color: var(--teal);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,212,184,0.12);
}
.sol-card:hover::before { opacity: 1; }
.sol-active { border-color: rgba(0,212,184,0.4); }
.sol-card-erp {
  grid-column: span 2;
  border-color: rgba(99,102,241,0.4);
  background: linear-gradient(135deg, var(--navy-card), rgba(99,102,241,0.08));
}
.sol-icon { font-size: 2rem; margin-bottom: 10px; }
.sol-name { font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.sol-desc { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }
.sol-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 50px;
  margin-bottom: 8px;
  letter-spacing: 0.4px;
}
.sol-tag-live { background: rgba(0,212,184,0.15); color: var(--teal); border: 1px solid rgba(0,212,184,0.3); }
.sol-tag-soon { background: rgba(255,189,46,0.1); color: #FFBD2E; border: 1px solid rgba(255,189,46,0.2); }
.sol-tag-future { background: rgba(99,102,241,0.15); color: #A5B4FC; border: 1px solid rgba(99,102,241,0.3); }

/* ── LEAD FORM ────────────────────────────────────────────── */
#contacto {
  padding: 100px 0;
  background: var(--navy-light);
}
.form-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.form-description {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 16px;
  margin-bottom: 28px;
  line-height: 1.7;
}
.form-trust { display: flex; flex-direction: column; gap: 10px; }
.trust-item { font-size: 0.88rem; color: var(--text-muted); }

.form-right {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  box-shadow: var(--shadow);
}

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  font-family: var(--font);
  font-size: 0.92rem;
  color: var(--text);
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
  appearance: none;
}
.form-group textarea {
  resize: vertical;
  min-height: 80px;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); opacity: 0.6; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,212,184,0.1);
}
.form-group input.error,
.form-group select.error,
.form-group textarea.error { border-color: #FF5F57; }

.select-wrapper { position: relative; }
.select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 1rem;
}
select option { background: var(--navy-card); color: var(--text); }

.field-error { display: block; font-size: 0.76rem; color: #FF5F57; margin-top: 5px; min-height: 16px; }

/* Form states */
.form-success, .form-error-msg { text-align: center; padding: 20px 0; }
.success-icon { font-size: 3rem; margin-bottom: 12px; }
.form-success h3 { font-size: 1.3rem; margin-bottom: 8px; }
.form-success p { color: var(--text-muted); font-size: 0.9rem; }
.form-error-msg p { color: var(--text-muted); font-size: 0.9rem; }
.form-error-msg a { color: var(--teal); }
.hidden { display: none !important; }

/* Spinner */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── FOOTER ───────────────────────────────────────────────── */
#footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand img { margin-bottom: 8px; }
.footer-brand p { font-size: 0.8rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.85rem; color: var(--text-muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--teal); }
.footer-copy { font-size: 0.78rem; color: var(--text-muted); }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
  #hero { flex-direction: column; text-align: center; padding-top: 100px; }
  .hero-content { max-width: 100%; }
  .hero-cta-group { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { min-height: 280px; }
  .brand-grid, .form-wrapper { grid-template-columns: 1fr; gap: 40px; }
  #marca .section-title { text-align: center; }
  .brand-pillars { align-items: flex-start; }
  .sol-card-erp { grid-column: span 1; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
@media (max-width: 560px) {
  .solutions-grid { grid-template-columns: 1fr 1fr; }
  .form-right { padding: 24px; }
  .hero-title { font-size: 1.9rem; }
}
