/* =============================================
   ArrayGo Software — Estilos principales
   ============================================= */

:root[data-theme="dark"] {
  --bg:        #1f1f1f;
  --bg2:       #262626;
  --bg3:       #2e2e2e;
  --text:      #ede9e3;
  --text-muted:#8a8680;
  --border:    #333333;
  --accent:    #f16b27;
  --salmon:    #ff9c8f;
  --accent-bg: rgba(241,107,39,0.10);
  --salmon-bg: rgba(255,156,143,0.12);
  --card-bg:   #262626;
  --card-bg2:  #2e2e2e;
  --nav-bg:    rgba(31,31,31,0.94);
  --shadow:    0 4px 32px rgba(0,0,0,0.4);
  --hero-dim:  brightness(0.18) saturate(0.6);
}
:root[data-theme="light"] {
  --bg:        #f4f1ec;
  --bg2:       #ece8e1;
  --bg3:       #ffffff;
  --text:      #1c1b19;
  --text-muted:#7a7670;
  --border:    #ddd8d0;
  --accent:    #e05e1e;
  --salmon:    #e8806e;
  --accent-bg: rgba(208,94,40,0.08);
  --salmon-bg: rgba(232,128,110,0.10);
  --card-bg:   #ffffff;
  --card-bg2:  #f4f1ec;
  --nav-bg:    rgba(244,241,236,0.94);
  --shadow:    0 4px 32px rgba(0,0,0,0.07);
  --hero-dim:  brightness(0.45) saturate(0.8);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 0.35s, color 0.35s;
  overflow-x: hidden;
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0 5%;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.35s, border-color 0.35s;
}
.nav-logo {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 0.875rem; color: var(--text-muted);
  text-decoration: none; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 1rem; }

/* THEME TOGGLE */
.theme-toggle {
  display: flex; align-items: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.2rem;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.theme-toggle:hover { opacity: 1; }
.theme-icon {
  display: none;
  width: 20px; height: 20px;
  fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
[data-theme="dark"]  .theme-icon-dark  { display: block; stroke: #ede9e3; }
[data-theme="dark"]  .theme-icon-light { display: none; }
[data-theme="light"] .theme-icon-light { display: block; stroke: #1c1b19; }
[data-theme="light"] .theme-icon-dark  { display: none; }
.toggle-knob { display: none; }

/* HERO */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 7rem 5% 5rem;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: url('https://images.unsplash.com/photo-1593642632559-0c6d3fc62b89?auto=format&fit=crop&w=1600&q=80');
  background-size: cover; background-position: center center;
  filter: var(--hero-dim);
  transition: filter 0.35s;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(120deg, rgba(31,31,31,0.82) 0%, rgba(31,31,31,0.25) 70%);
}
.hero-content { position: relative; z-index: 2; max-width: 700px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(241,107,39,0.10);
  border: 1px solid rgba(241,107,39,0.28);
  color: #d4581a;
  font-size: 0.78rem; font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  margin-bottom: 1.75rem;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.hero h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 1.5rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-sub {
  font-size: 1.05rem; color: rgba(255,255,255,0.68);
  line-height: 1.75; max-width: 520px;
  margin-bottom: 2.5rem; font-weight: 300;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--salmon); color: #fff;
  font-family: 'Manrope', sans-serif; font-weight: 600;
  font-size: 0.9rem; padding: 0.8rem 1.6rem;
  border-radius: 8px; text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); }
.btn-salmon { background: var(--salmon); color: #111 !important; }
.btn-salmon:hover { background: var(--salmon); filter: brightness(1.08); }
.btn-orange { background: var(--accent); color: #fff; }
.btn-orange:hover { background: var(--accent); filter: brightness(1.1); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; color: rgba(255,255,255,0.85);
  font-family: 'Manrope', sans-serif; font-weight: 500;
  font-size: 0.9rem; padding: 0.8rem 1.6rem;
  border-radius: 8px; text-decoration: none;
  border: 1px solid rgba(255,255,255,0.22);
  transition: background 0.2s, transform 0.15s; cursor: pointer;
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); transform: translateY(-1px); }

/* SECTIONS */
section { padding: 6rem 5%; }
.section-alt { background: var(--bg2); transition: background 0.35s; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  font-weight: 700; letter-spacing: -0.025em;
  margin-bottom: 0.65rem;
}
.section-header p {
  color: var(--text-muted); font-size: 0.95rem;
  max-width: 480px; margin: 0 auto; line-height: 1.65;
}

/* PROBLEMAS */
.problems-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem; max-width: 860px; margin: 0 auto;
}
.problem-card {
  display: flex; align-items: center; gap: 1rem;
  background: var(--card-bg2);
  border: 1px solid var(--border);
  border-radius: 10px; padding: 1.1rem 1.4rem;
  transition: border-color 0.2s, transform 0.2s, background 0.35s;
}
.problem-card:hover { border-color: var(--salmon); transform: translateY(-2px); }
.problem-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  background: var(--salmon-bg);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--salmon);
}
.problem-icon svg { width: 18px; height: 18px; stroke: var(--salmon); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.problem-card span { font-size: 0.92rem; font-weight: 400; line-height: 1.45; }

/* SERVICIOS */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem; max-width: 1050px; margin: 0 auto;
}
.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px; padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s, background 0.35s;
}
.service-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.service-icon {
  width: 44px; height: 44px;
  background: var(--accent-bg);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
  color: var(--accent);
}
.service-icon svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 1rem; font-weight: 700;
  margin-bottom: 0.65rem; letter-spacing: -0.01em;
}
.service-card p { color: var(--text-muted); font-size: 0.875rem; line-height: 1.65; }

/* EJEMPLOS */
.examples-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; max-width: 1100px; margin: 0 auto;
}
.example-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, background 0.35s;
}
.example-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.example-img {
  width: 100%; height: 200px; object-fit: cover; display: block;
  filter: brightness(0.82); transition: filter 0.3s;
}
.example-card:hover .example-img { filter: brightness(1); }
.example-body { padding: 1.4rem; }
.example-tag {
  display: inline-block;
  background: var(--bg3); color: var(--text-muted);
  font-size: 0.72rem; font-weight: 600;
  padding: 0.2rem 0.6rem; border-radius: 100px;
  margin-bottom: 0.7rem; letter-spacing: 0.04em;
  text-transform: uppercase; border: 1px solid var(--border);
}
.example-body h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 0.98rem; font-weight: 700;
  margin-bottom: 0.45rem; letter-spacing: -0.01em;
}
.example-body p { color: var(--text-muted); font-size: 0.855rem; line-height: 1.6; margin-bottom: 1rem; }
.example-link {
  color: var(--salmon); font-size: 0.855rem; font-weight: 600;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.3rem;
  transition: gap 0.2s;
}
.example-link:hover { gap: 0.55rem; }

/* PROCESO */
.process-steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem; max-width: 960px; margin: 0 auto 2.25rem;
}
.step { text-align: center; padding: 1.5rem 1rem; }
.step-num {
  width: 52px; height: 52px;
  background: var(--accent-bg);
  border: 1px solid rgba(241,107,39,0.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif;
  font-weight: 700; font-size: 1rem;
  color: var(--accent); margin: 0 auto 1rem;
}
.step h4 {
  font-family: 'Manrope', sans-serif;
  font-size: 0.92rem; font-weight: 700;
  margin-bottom: 0.45rem;
}
.step p { color: var(--text-muted); font-size: 0.82rem; line-height: 1.55; }
.process-tagline {
  text-align: center; font-size: 1rem;
  color: var(--text-muted); margin-top: 0.5rem;
}
.process-tagline strong { color: var(--salmon); }

/* NOSOTROS */
.about-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
  max-width: 880px; margin: 0 auto;
}
.about-text h2 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  font-weight: 700; letter-spacing: -0.025em;
  margin-bottom: 1.1rem;
}
.about-text p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.78; }
.about-text p + p { margin-top: 0.85rem; }

.about-team { display: flex; gap: 1.5rem; margin-top: 2rem; flex-wrap: wrap; }
.about-person { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; text-align: center; }
.about-avatar-img {
  width: 72px; height: 72px; border-radius: 50%;
  object-fit: cover; object-position: center top;
  border: 2px solid var(--salmon);
  display: block;
}
.about-person-name { font-weight: 700; font-size: 0.88rem; display: block; }
.about-person-role { color: var(--salmon); font-size: 0.78rem; font-weight: 500; }

.about-visual {
  background: var(--card-bg2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--salmon);
  border-radius: 18px; padding: 2rem;
  transition: background 0.35s, border-color 0.35s;
}
.about-stat { display: flex; align-items: baseline; gap: 0.6rem; margin-bottom: 1.5rem; }
.about-stat:last-child { margin-bottom: 0; }
.stat-num {
  font-family: 'Sora', sans-serif;
  font-size: 2rem; font-weight: 700;
  color: var(--accent); letter-spacing: -0.03em;
}
.stat-label { color: var(--text-muted); font-size: 0.875rem; line-height: 1.45; }

/* CONTACTO */
.contact-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: start;
  max-width: 820px; margin: 0 auto;
}
.contact-left h2 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  font-weight: 700; letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}
.contact-left p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.65; margin-bottom: 1.75rem; }
.contact-info { color: var(--text-muted); font-size: 0.82rem; margin-top: 1.25rem; line-height: 1.8; }

.contact-right h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 0.95rem; font-weight: 700;
  margin-bottom: 1.2rem;
}
.expect-list { list-style: none; display: flex; flex-direction: column; gap: 0.9rem; }
.expect-list li {
  display: flex; align-items: flex-start; gap: 0.75rem;
  font-size: 0.875rem; color: var(--text-muted); line-height: 1.5;
}
.expect-num {
  width: 22px; height: 22px; flex-shrink: 0;
  background: var(--salmon-bg);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700;
  color: var(--salmon); font-family: 'Manrope', sans-serif;
}

/* FOOTER */
footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 2rem 5%;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  transition: background 0.35s, border-color 0.35s;
}
.footer-logo {
  font-family: 'Sora', sans-serif; font-weight: 700;
  font-size: 0.95rem; color: var(--text); text-decoration: none;
}
.footer-logo span { color: var(--accent); }
footer p { color: var(--text-muted); font-size: 0.78rem; }

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-content > * { animation: fadeUp 0.65s ease both; }
.hero-tag    { animation-delay: 0.1s; }
.hero h1     { animation-delay: 0.22s; }
.hero-sub    { animation-delay: 0.36s; }
.hero-btns   { animation-delay: 0.5s; }

/* MOBILE */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .problems-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .examples-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-inner { grid-template-columns: 1fr; gap: 2rem; }
  footer { flex-direction: column; text-align: center; }
}
