/* ============================================
   ITtude — Main Stylesheet
   ============================================ */

:root {
  --purple:   #4600FF;
  --green:    #6CEA1B;
  --dark:     #414042;
  --mid:      #6b6b6b;
  --muted:    #9a9a9a;
  --bg:       #ffffff;
  --bg-alt:   #f7f7fb;
  --radius:   12px;
  --radius-sm: 8px;
  --shadow:   0 4px 24px rgba(70, 0, 255, 0.08);
  --shadow-lg: 0 8px 40px rgba(70, 0, 255, 0.13);
  --max-w:    1100px;
  --nav-h:    68px;
}

/* ── Reset ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--dark);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Layout ─────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ── Typography ─────────────────────────────── */
.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 12px;
}

/* ── Buttons ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); opacity: 0.92; }
.btn-primary {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 4px 20px rgba(70, 0, 255, 0.30);
}
.btn-primary:hover { box-shadow: 0 6px 28px rgba(70, 0, 255, 0.40); }
.btn-outline {
  background: transparent;
  color: var(--purple);
  border: 2px solid var(--purple);
}
.btn-outline:hover { background: var(--purple); color: #fff; }
.btn-sm { padding: 10px 22px; font-size: 0.88rem; }

/* ── Navbar ─────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  display: flex;
  align-items: center;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo img {
  height: 36px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--dark);
  opacity: 0.75;
  transition: opacity 0.15s;
}
.nav-links a:hover { opacity: 1; }
.nav-cta { margin-left: auto; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  padding: 20px 24px 28px;
  flex-direction: column;
  gap: 20px;
  z-index: 99;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--dark);
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.nav-mobile .btn { align-self: flex-start; margin-top: 4px; }

/* ── Hero ────────────────────────────────────── */
.hero {
  padding-top: calc(var(--nav-h) + 72px);
  padding-bottom: 80px;
  background: linear-gradient(135deg, #f0ecff 0%, #f7f7fb 60%, #e8fff0 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -120px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(70,0,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -80px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108,234,27,0.09) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--dark);
  max-width: 780px;
  margin-inline: auto;
  letter-spacing: -0.02em;
}
.hero h1 span { color: var(--purple); }
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--mid);
  max-width: 560px;
  margin: 20px auto 36px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Stats ────────────────────────────────────── */
.stats {
  background: var(--bg);
  padding: 64px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.stat-item {
  text-align: center;
  padding: 24px 16px;
  border-right: 1px solid rgba(0,0,0,0.07);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 800;
  color: var(--purple);
  letter-spacing: -0.03em;
  line-height: 1;
  display: block;
}
.stat-suffix {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--purple);
}
.stat-label {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: 6px;
}

/* ── Programa ─────────────────────────────────── */
.programa {
  padding: 88px 0;
  background: var(--bg-alt);
}
.programa-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.programa-badge {
  display: flex;
  justify-content: center;
  align-items: center;
}
.programa-badge img {
  width: min(280px, 100%);
  filter: drop-shadow(0 8px 32px rgba(70,0,255,0.15));
}
.programa-text .section-label { margin-bottom: 16px; }
.programa-text h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.programa-text p {
  font-size: 1rem;
  color: var(--mid);
  line-height: 1.75;
  margin-bottom: 14px;
}
.programa-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 24px 0 32px;
}
.programa-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.93rem;
  font-weight: 500;
}
.programa-feature::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  background: var(--green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
}

/* ── Clientes ─────────────────────────────────── */
.clientes {
  padding: 64px 0;
  background: var(--bg);
}
.clientes-title {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 40px;
}
.clientes .container {
  max-width: 1400px;
}
.clients-grid {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 24px 48px;
}
.client-logo {
  height: 36px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: none;
  opacity: 1;
  transition: opacity 0.2s;
}
.client-logo:hover { opacity: 0.75; }
@media (max-width: 1100px) {
  .clients-grid { flex-wrap: wrap; }
  .client-logo { max-width: 100px; height: 30px; }
}

/* ── Testimonios ───────────────────────────────── */
.testimonios {
  padding: 88px 0;
  background: var(--bg-alt);
}
.section-header {
  text-align: center;
  margin-bottom: 52px;
}
.section-header h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.testimonial-quote {
  font-size: 0.97rem;
  line-height: 1.7;
  color: var(--dark);
  flex: 1;
}
.testimonial-quote::before { content: '"'; }
.testimonial-quote::after  { content: '"'; }
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-author img {
  height: 28px;
  width: auto;
  max-width: 80px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.7);
}
.author-info .name { font-weight: 700; font-size: 0.88rem; }
.author-info .company { font-size: 0.82rem; color: var(--muted); }

/* ── Equipo ─────────────────────────────────────── */
.equipo {
  padding: 88px 0;
  background: var(--bg);
}
.section-intro {
  font-size: 1.05rem;
  color: var(--mid);
  max-width: 640px;
  margin: 16px auto 0;
  line-height: 1.7;
}
.team-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 64px;
  padding-top: 64px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.team-row:first-of-type { border-top: none; margin-top: 52px; padding-top: 0; }
.team-row-reverse { }
.team-row-photo img {
  width: 100%;
  max-width: 420px;
  display: block;
}
.team-name {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.team-role {
  font-size: 0.85rem;
  color: var(--purple);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.team-bio {
  font-size: 1rem;
  color: var(--mid);
  line-height: 1.75;
  margin-bottom: 14px;
}
.team-handle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--purple);
  margin-top: 8px;
  transition: opacity 0.15s;
}
.team-handle:hover { opacity: 0.75; }
.team-handle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ── Footer ─────────────────────────────────────── */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.85);
  padding: 56px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand img {
  height: 32px;
  width: auto;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}
.footer-tagline {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  max-width: 220px;
}
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  transition: background 0.2s, color 0.2s;
}
.social-link:hover { background: var(--purple); color: #fff; }
.social-link svg { width: 16px; height: 16px; fill: currentColor; }

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.15s;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.35); }

/* ── WhatsApp flotante ───────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 200;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.40);
  transition: transform 0.2s, box-shadow 0.2s;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .programa-inner { grid-template-columns: 1fr; gap: 40px; }
  .programa-badge { order: -1; }

  .testimonios-grid { grid-template-columns: 1fr; gap: 20px; }

  .team-row { grid-template-columns: 1fr; gap: 32px; }
  .team-row-reverse .team-row-photo { order: -1; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(0,0,0,0.07); }
  .stat-item:last-child { border-bottom: none; }

.footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
