﻿:root {
  --bg: #0b1120;
  --bg-soft: #111a2e;
  --surface: #1e293b;
  --surface-2: #27344a;
  --border: rgba(248, 250, 252, 0.09);
  --border-strong: rgba(248, 250, 252, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent-1: #6366f1;
  --accent-2: #06b6d4;
  --green: #34d399;
  --grad: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  --grad-soft: linear-gradient(135deg, rgba(99, 102, 241, 0.16), rgba(6, 182, 212, 0.16));
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
}

[data-theme="light"] {
  --bg: #f8fafc;
  --bg-soft: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --border: rgba(15, 23, 42, 0.09);
  --border-strong: rgba(15, 23, 42, 0.18);
  --text: #0f172a;
  --muted: #64748b;
  --grad-soft: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(6, 182, 212, 0.12));
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.35s ease, color 0.35s ease;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(20px, 4vw, 48px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}
.logo-dot { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { font-size: 0.95rem; font-weight: 500; color: var(--muted); transition: color 0.2s ease; white-space: nowrap; }
.site-nav a:hover { color: var(--text); }
.site-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  padding: 8px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.site-nav .nav-cta:hover { border-color: var(--green); background: rgba(52, 211, 153, 0.1); }

.dot-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  position: relative;
  flex-shrink: 0;
}
.dot-pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--green);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }

.header-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  transition: background 0.2s ease, transform 0.2s ease;
}
.icon-btn:hover { background: var(--surface-2); transform: translateY(-1px); }
.icon-btn svg { width: 19px; height: 19px; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: none; }

.lang-btn { font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 10px; }
.menu-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding: 150px clamp(20px, 4vw, 48px) 60px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 80% 10%, rgba(99, 102, 241, 0.22), transparent 60%),
    radial-gradient(50% 40% at 10% 90%, rgba(6, 182, 212, 0.18), transparent 60%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  max-width: 1200px;
  margin-inline: auto;
}

.hero-availability {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green);
  padding: 8px 16px;
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero-eyebrow {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.hero-name {
  font-size: clamp(3rem, 7.5vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-top: 10px;
}
.hero-name-accent {
  display: block;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-tagline {
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 500;
  max-width: 560px;
}

.hero-desc {
  margin-top: 14px;
  max-width: 560px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px rgba(99, 102, 241, 0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(6, 182, 212, 0.4); }
.btn-ghost { border: 1px solid var(--border-strong); color: var(--text); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--accent-1); background: var(--grad-soft); }
.btn-copy {
  border: 1px dashed var(--border-strong);
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
}
.btn-copy svg { width: 16px; height: 16px; flex: none; }
.btn-copy:hover {
  transform: translateY(-2px);
  border-color: var(--accent-1);
  border-style: solid;
  background: var(--grad-soft);
  color: var(--accent-1);
}
.btn-copy.is-copied {
  border-color: #22c55e;
  border-style: solid;
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
}
.btn-wa-icon { width: 18px; height: 18px; flex: none; }
.btn-wa:hover { border-color: #25d366; color: #25d366; }

/* Photo */
.hero-photo-wrap { position: relative; max-width: 420px; margin-inline: auto; width: 100%; }
.hero-photo {
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  background: var(--surface);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.cert-badge {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 190px;
}
.cert-badge-1 { top: 20px; left: -40px; }
.cert-badge-2 { bottom: 20px; right: -40px; }
.cert-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.cert-name { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1200px;
  margin: 70px auto 0;
  border-top: 1px solid var(--border);
  padding-top: 40px;
}
.stat { text-align: center; }
.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { display: block; margin-top: 4px; color: var(--muted); font-size: 0.92rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 120px) clamp(20px, 4vw, 48px); position: relative; }
.section-alt { background: var(--bg-soft); border-block: 1px solid var(--border); }

.section-head { max-width: 760px; margin-inline: auto; margin-bottom: 48px; text-align: center; }
.section-kicker {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-1);
  margin-bottom: 12px;
}
[data-theme="light"] .section-kicker { color: var(--accent-1); }
.section-title { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; }
.section-sub { margin-top: 14px; color: var(--muted); }

/* ---------- About ---------- */
.about-content { max-width: 820px; margin-inline: auto; }
.about-p { color: var(--muted); margin-top: 18px; font-size: 1.05rem; text-align: center; }

/* ---------- Tools ---------- */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; }
.tool-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 28px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.tool-card:hover { transform: translateY(-6px); border-color: var(--accent-1); }
.tool-head { display: flex; align-items: center; gap: 12px; }
.tool-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--bg-soft);
  flex: none;
}
.tool-icon img { width: 26px; height: 26px; }
.tool-head h3 { font-size: 1.2rem; }
.tool-desc { margin-top: 14px; color: var(--muted); font-size: 0.95rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-soft);
}
.chips li img { width: 16px; height: 16px; flex: none; }
.chips li .chip-fallback { width: 16px; height: 16px; flex: none; opacity: 0.55; }
[data-theme="dark"] .chips li img {
  background: #fff;
  border-radius: 4px;
  padding: 2px;
  box-sizing: content-box;
}
[data-theme="dark"] .tool-icon {
  background: #fff;
  border-color: transparent;
}
[data-theme="dark"] .tool-icon img { filter: none; opacity: 1; }

/* ---------- Hover vivo de tarjetas ---------- */
.tool-card, .metric-card, .job-card, .edu-card, .featured-card, .work-card {
  position: relative;
}
.tool-card::after, .metric-card::after, .job-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(99, 102, 241, 0.14), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.tool-card:hover::after, .metric-card:hover::after, .job-card:hover::after { opacity: 1; }

/* Icono de tarjeta: crece y gira suavemente al hover */
.tool-card:hover .tool-icon { transform: scale(1.12) rotate(-4deg); border-color: var(--accent-1); }
.tool-icon { transition: transform 0.3s ease, border-color 0.3s ease; }

/* Botones: brillo de barrido */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
  pointer-events: none;
}
.btn:hover::after { left: 130%; }
[data-theme="light"] .btn::after { background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.6), transparent); }

/* Play circle: pulso al hover */
.play-circle { animation: playPulse 2.4s ease-in-out infinite; }
@keyframes playPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.45); }
  50% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
}

/* Chip de herramienta: escala sutil al hover */
.chips li { transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease; }
.chips li:hover { transform: translateY(-2px); border-color: var(--accent-1); }

/* ---------- Conteo de métricas ---------- */
.metric-value { will-change: content; }

/* ---------- Featured ---------- */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.featured-grid .featured-card:nth-child(1) { transition-delay: 0s; }
.featured-grid .featured-card:nth-child(2) { transition-delay: 0.1s; }
.featured-grid .featured-card:nth-child(3) { transition-delay: 0.2s; }
.featured-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.featured-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.featured-media { overflow: hidden; position: relative; background: #000; cursor: pointer; flex: none; }
.featured-media.is-image,
.featured-media.is-video { aspect-ratio: 4 / 5; }
.featured-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.featured-card:hover .featured-media img { transform: scale(1.04); }
.featured-media .play-circle {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 64px; height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  font-size: 1.2rem;
  z-index: 2;
}
.featured-body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.featured-cat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-1);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--grad-soft);
}
.featured-title { margin-top: 12px; font-size: 1.25rem; font-weight: 700; }
.featured-desc { margin-top: 8px; color: var(--muted); font-size: 0.95rem; }
.featured-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 16px; font-weight: 600; font-size: 0.95rem; color: var(--accent-1); }
[data-theme="light"] .featured-cta { color: var(--accent-1); }
.featured-cta:hover { text-decoration: underline; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.92rem;
  transition: all 0.2s ease;
}
.filter:hover { color: var(--text); border-color: var(--accent-1); }
.filter.is-active { background: var(--grad); color: #fff; border-color: transparent; }

/* ---------- Gallery (masonry) ---------- */
.grid {
  columns: 3 320px;
  column-gap: 24px;
}
.work-card {
  break-inside: avoid;
  display: inline-block;
  width: 100%;
  margin-bottom: 24px;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.work-media { overflow: hidden; position: relative; background: #000; }
.work-card.is-video .work-media { aspect-ratio: 9 / 16; }
.work-card.is-image .work-media { aspect-ratio: 16 / 9; }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.work-card:hover .work-media img { transform: scale(1.05); }
.work-media .play-btn {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.35);
  transition: background 0.25s ease;
}
.play-btn .play-circle {
  width: 60px; height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  font-size: 1.15rem;
  transition: transform 0.25s ease;
}
.work-card:hover .play-circle { transform: scale(1.1); }
.work-body { padding: 14px 16px 16px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.work-title { font-weight: 600; font-size: 1rem; }
.work-cat {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-1);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--grad-soft);
  white-space: nowrap;
}
.work-card.is-hidden { display: none; }

.portfolio-more { margin-top: 40px; text-align: center; }

/* ---------- Metrics ---------- */
.metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.metric-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 30px 26px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.metric-card:hover { transform: translateY(-6px); border-color: var(--accent-1); }
.metric-value {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.metric-title { margin-top: 14px; font-weight: 600; font-size: 1.02rem; }
.metric-desc { margin-top: 6px; color: var(--muted); font-size: 0.9rem; }

/* ---------- Experience ---------- */
.timeline { position: relative; max-width: 860px; padding-left: 30px; margin-inline: auto; }
.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--grad);
  opacity: 0.5;
}
.job-card {
  position: relative;
  margin-bottom: 34px;
  padding: 26px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.job-card::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 30px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--grad);
  border: 3px solid var(--bg);
}
.job-role { font-size: 1.25rem; font-weight: 700; }
.job-company { margin-top: 4px; font-weight: 600; color: var(--accent-1); }
[data-theme="light"] .job-company { color: var(--accent-1); }
.job-period {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
}
.job-bullets { margin-top: 14px; }
.job-bullets li {
  position: relative;
  padding-left: 20px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}
.job-bullets li::before {
  content: "â–¹";
  position: absolute;
  left: 0;
  color: var(--accent-1);
}

.exp-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 860px; margin: 20px auto 0; }
.exp-block-title { font-size: 1.1rem; margin-bottom: 16px; }
.roles li { margin-top: 12px; color: var(--muted); font-size: 0.95rem; }
.roles li strong { color: var(--text); }
.edu-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 18px 20px;
  margin-top: 12px;
}
.edu-degree { font-weight: 700; }
.edu-school { font-size: 0.9rem; color: var(--accent-1); margin-top: 2px; }
[data-theme="light"] .edu-school { color: var(--accent-1); }
.edu-desc { margin-top: 8px; color: var(--muted); font-size: 0.9rem; }

/* ---------- Contact ---------- */
.section-contact { background: var(--grad-soft); border-top: 1px solid var(--border); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 44px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; width: min(1000px, 100%); margin-inline: auto; }

.contact-channels { display: grid; gap: 14px; align-content: start; }
.channel-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.channel-card:hover { transform: translateX(6px); border-color: var(--accent-1); }
.channel-icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
}
.channel-icon img { width: 24px; height: 24px; }
.channel-whatsapp .channel-icon { background: #fff; }
.channel-whatsapp .channel-icon img { width: 28px; height: 28px; }
.channel-label { font-weight: 600; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  gap: 18px;
}
.field { display: grid; gap: 8px; }
.field label { font-size: 0.9rem; font-weight: 600; }
.field input, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-soft);
  color: var(--text);
  font-family: inherit;
  font-size: 0.98rem;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 32px clamp(20px, 4vw, 48px); }
.footer-inner {
  max-width: 1200px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-text { color: var(--muted); font-size: 0.92rem; }
.footer-top { color: var(--muted); font-size: 0.92rem; transition: color 0.2s ease; }
.footer-top:hover { color: var(--text); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: rgba(5, 5, 10, 0.92);
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-body { max-width: 1100px; width: 100%; max-height: 90vh; display: grid; gap: 16px; }
.lightbox-body img { width: 100%; max-height: 78vh; object-fit: contain; border-radius: var(--radius-sm); }
.lightbox-caption { color: var(--muted); text-align: center; font-size: 0.98rem; }
.lightbox-close {
  position: absolute;
  top: 22px;
  right: 26px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.2); transform: rotate(90deg); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(80px);
  z-index: 300;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 12px 22px;
  box-shadow: var(--shadow);
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  pointer-events: none;
}
.toast.is-visible { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Stagger: tarjetas de grid aparecen en cascada */
.tools-grid .reveal:nth-child(1) { transition-delay: 0s; }
.tools-grid .reveal:nth-child(2) { transition-delay: 0.12s; }
.tools-grid .reveal:nth-child(3) { transition-delay: 0.24s; }
.metrics-grid .reveal:nth-child(1) { transition-delay: 0s; }
.metrics-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.metrics-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.metrics-grid .reveal:nth-child(4) { transition-delay: 0.3s; }

/* Título de sección: barra degradada animada */
.section-title { position: relative; padding-bottom: 14px; }
.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 56px;
  height: 3px;
  border-radius: 99px;
  background: var(--grad);
  background-size: 200% auto;
  animation: shimmer 4s linear infinite;
}

/* ---------- Entrada del hero ---------- */
@keyframes heroInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes heroInLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: none; } }
@keyframes heroInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
.hero .reveal { animation: heroInUp 0.7s ease both; transform: none; }
.hero .reveal.is-visible { animation: heroInUp 0.7s ease both; }
.hero .hero-eyebrow { animation: heroInUp 0.6s 0.05s ease both; }
.hero .hero-name { animation: heroInUp 0.7s 0.15s ease both; }
.hero .hero-tagline, .hero .hero-desc { animation: heroInUp 0.7s 0.28s ease both; }
.hero .hero-cta { animation: heroInUp 0.7s 0.4s ease both; }
.hero .hero-photo-wrap { animation: heroInRight 0.8s 0.1s ease both; }
.hero .stats-row { animation: heroInUp 0.8s 0.5s ease both; }

/* ---------- Float ---------- */
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-photo-wrap { animation: heroInRight 0.8s 0.1s ease both; }
.cert-badge-1 { animation: floaty 5s ease-in-out infinite; }
.cert-badge-2 { animation: floaty 6s 0.6s ease-in-out infinite; }

/* ---------- Shimmer del texto degradado ---------- */
@keyframes shimmer { to { background-position: 200% center; } }
.hero-name-accent,
.metric-value {
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shimmer 6s linear infinite;
}

/* ---------- Resplandor pulsante de fondo ---------- */
@keyframes glowMove {
  0%, 100% { opacity: 0.7; transform: translate(0, 0) scale(1); }
  50% { opacity: 1; transform: translate(30px, -20px) scale(1.15); }
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  pointer-events: none;
}
.hero::before { background: rgba(99, 102, 241, 0.28); top: -120px; right: -80px; animation: glowPulse 9s ease-in-out infinite; }
.hero::after { background: rgba(6, 182, 212, 0.22); bottom: -120px; left: -80px; animation: glowPulse 11s 1.5s ease-in-out infinite; }
@keyframes glowPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
.hero-grid, .stats-row { position: relative; z-index: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-photo-wrap { order: -1; max-width: 340px; }
  .cert-badge-1 { left: -12px; }
  .cert-badge-2 { right: -12px; }
  .contact-grid { grid-template-columns: 1fr; }
  .exp-extra { grid-template-columns: 1fr; }
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .menu-toggle { display: flex; }
  .site-nav {
    position: fixed;
    inset: 72px 16px auto 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .site-nav a { padding: 12px 16px; border-radius: var(--radius-sm); }
  .site-nav a:hover { background: var(--surface-2); }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .grid, .featured-grid { columns: 1; }
  .featured-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
}

