/* =====================================================================
   DESIGN SYSTEM — Dark Mode Variables
   ===================================================================== */
:root {
  --blue:        #3b82f6;
  --blue-dark:   #2563eb;
  --blue-light:  rgba(59,130,246,0.14);
  --sky:         #38bdf8;
  --navy:        #060e1f;
  --text:        #e2e8f0;
  --text-muted:  #94a3b8;
  --border:      rgba(255,255,255,0.08);
  --bg:          #0f172a;
  --bg-alt:      #111e36;
  --green:       #34d399;
  --white:       #ffffff;

  --font:        'Inter', sans-serif;
  --font-display:'Poppins', sans-serif;

  --radius-s:    8px;
  --radius-m:    12px;
  --radius-l:    16px;
  --radius-pill: 9999px;

  --shadow-s:  0 1px 3px rgba(0,0,0,0.4);
  --shadow-m:  0 4px 12px rgba(0,0,0,0.45);
  --shadow-l:  0 10px 24px rgba(0,0,0,0.5);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.6);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --fast: 150ms;
  --base: 250ms;
  --slow: 450ms;

  --max-w:       1200px;
  --pad-section: 100px 24px;
}

/* =====================================================================
   RESET
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }

/* =====================================================================
   SCROLL PROGRESS BAR
   ===================================================================== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--sky));
  z-index: 9999;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* =====================================================================
   NAVBAR
   ===================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: rgba(6, 14, 31, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--base), box-shadow var(--base);
}
.navbar.scrolled {
  border-bottom-color: rgba(255,255,255,0.07);
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}

/* Logo area */
.navbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* Avatar button (navbar) */
.avatar-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Photo avatar */
.logo-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 15%;
  border: 2px solid rgba(59,130,246,0.6);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
  flex-shrink: 0;
  transition: border-color var(--base), box-shadow var(--base), transform var(--base);
}
.avatar-btn:hover .logo-avatar {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(56,189,248,0.25);
  transform: scale(1.08);
}

/* ── Avatar lightbox ── */
.avatar-modal {
  display: none;
  position: fixed; inset: 0;
  z-index: 9000;
  align-items: center;
  justify-content: center;
}
.avatar-modal.open { display: flex; }

.avatar-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.25s ease;
}

.avatar-modal-inner {
  position: relative;
  animation: popIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

.avatar-modal-img {
  display: block;
  width: min(340px, 80vw);
  height: min(340px, 80vw);
  border-radius: 50%;
  object-fit: cover;
  object-position: center 15%;
  border: 3px solid rgba(56,189,248,0.6);
  box-shadow: 0 0 0 6px rgba(56,189,248,0.15), 0 24px 60px rgba(0,0,0,0.6);
}

.avatar-modal-close {
  position: absolute;
  top: -14px; right: -14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--blue);
  border: none;
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  transition: background var(--base), transform var(--base);
}
.avatar-modal-close:hover {
  background: var(--sky);
  transform: scale(1.1);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1); }
}

/* Legacy badge (footer only) */
.logo-badge {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue), var(--sky));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  border-radius: var(--radius-s);
  flex-shrink: 0;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.logo-name { font-weight: 700; font-size: 0.95rem; color: var(--text); }
.logo-sub  { font-size: 0.72rem; color: var(--text-muted); font-weight: 400; }

/* Nav links */
.navbar-right { display: flex; align-items: center; gap: 8px; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-right: 8px; }
.nav-link {
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--fast), background var(--fast);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--sky);
  background: rgba(56,189,248,0.1);
}
.nav-cta {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 18px;
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 0.85rem; font-weight: 600;
  transition: background var(--fast), transform var(--fast), box-shadow var(--fast);
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(59,130,246,0.45);
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
  margin-right: 4px;
}
.lang-btn {
  padding: 5px 12px;
  border: none;
  background: transparent;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  transition: all var(--base) var(--ease);
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
}
.lang-btn.active {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 2px 10px rgba(59,130,246,0.45);
}
.lang-btn:not(.active):hover {
  color: var(--sky);
  background: rgba(56,189,248,0.1);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px; height: 17px;
  background: none; border: none; padding: 0;
}
.hamburger span {
  display: block; width: 100%; height: 2px;
  background: var(--text-muted); border-radius: 2px;
  transition: transform var(--base), opacity var(--base);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 140px;
  overflow: hidden;
  background: var(--navy);
}

.hero-bg-image {
  position: absolute; inset: 0;
  background-image: url('Fondo_perfil_linkedin.jpg');
  background-size: cover;
  background-position: center right;
  background-attachment: scroll;
  opacity: 0.28;
}

.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 80% at 50% 50%, rgba(6,14,31,0.15) 0%, rgba(6,14,31,0.55) 100%),
    linear-gradient(to bottom, rgba(6,14,31,0.25) 0%, transparent 40%, rgba(6,14,31,0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

/* Name */
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}

/* Typing title */
.hero-title-wrap {
  min-height: 2.4em;
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(1rem, 2.5vw, 1.45rem);
  color: #94a3b8;
  margin-bottom: 22px;
  gap: 2px;
}
.typing-text { color: var(--sky); font-weight: 600; }
.cursor {
  color: var(--sky);
  animation: blink 0.75s step-end infinite;
  font-weight: 300;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Hero description */
.hero-desc {
  font-size: 1.05rem;
  color: #94a3b8;
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.75;
}

/* CTA buttons */
.hero-actions {
  display: flex; gap: 14px;
  justify-content: center; flex-wrap: wrap;
  margin-bottom: 56px;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: 0.95rem;
  transition: all var(--base) var(--ease);
  border: none;
  font-family: inherit;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--sky));
  color: #fff;
  box-shadow: 0 4px 18px rgba(59,130,246,0.42);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(59,130,246,0.55); }
.btn-outline {
  background: rgba(255,255,255,0.06);
  color: #e2e8f0;
  border: 1.5px solid rgba(226,232,240,0.22);
  backdrop-filter: blur(8px);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: rgba(226,232,240,0.45); transform: translateY(-2px); }
.btn-full { width: 100%; justify-content: center; }

/* Hero stats */
.hero-stats {
  display: flex; align-items: center; justify-content: center;
  gap: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-l);
  padding: 22px 32px;
  backdrop-filter: blur(12px);
  max-width: 580px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.stat-item {
  display: flex; flex-direction: column; align-items: center;
  padding: 6px 24px;
}
.stat-value {
  display: flex; align-items: baseline; gap: 1px;
  margin-bottom: 5px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 1.9rem; font-weight: 800; color: #fff; line-height: 1;
}
.stat-suffix { font-size: 1.3rem; font-weight: 800; color: var(--sky); }
.stat-label {
  font-size: 0.69rem; color: #64748b;
  text-transform: uppercase; letter-spacing: 0.06em;
  text-align: center; line-height: 1.45;
}
.stat-sep { width: 1px; height: 42px; background: rgba(255,255,255,0.08); flex-shrink: 0; }

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  color: #334155;
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em;
}
.scroll-line-anim {
  width: 1px; height: 38px;
  background: linear-gradient(to bottom, #334155, transparent);
  animation: scrollAnim 1.8s ease-in-out infinite;
}
@keyframes scrollAnim {
  0%   { transform: scaleY(0); transform-origin: top;    opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top;    opacity: 1; }
  51%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* =====================================================================
   LAYOUT HELPERS
   ===================================================================== */
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--pad-section);
}
.section-alt { background: var(--bg-alt); }
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-tag {
  display: inline-block;
  background: rgba(59,130,246,0.14);
  color: var(--sky);
  padding: 4px 15px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.09em;
  margin-bottom: 12px;
}
h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  color: var(--text);
  position: relative;
  padding-bottom: 18px;
}
h2::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 46px; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--sky));
  border-radius: 2px;
}

/* =====================================================================
   SCROLL REVEAL
   ===================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }

/* =====================================================================
   ABOUT
   ===================================================================== */
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 60px;
  align-items: start;
}
.sobre-texto p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.85;
}
.sobre-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.highlight-card {
  display: flex; gap: 13px;
  padding: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-m);
  transition: border-color var(--base), box-shadow var(--base), transform var(--base), background var(--base);
}
.highlight-card:hover {
  border-color: rgba(59,130,246,0.5);
  background: rgba(59,130,246,0.05);
  box-shadow: 0 0 0 4px rgba(59,130,246,0.07), var(--shadow-m);
  transform: translateY(-2px);
}
.h-icon {
  width: 38px; height: 38px;
  background: rgba(56,189,248,0.12); color: var(--sky);
  border-radius: var(--radius-s);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; flex-shrink: 0;
}
.h-body h4 { font-size: 0.875rem; font-weight: 700; margin-bottom: 5px; color: var(--text); }
.h-body p  { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; }
.h-body strong { color: var(--sky); }

/* =====================================================================
   TECHNOLOGIES
   ===================================================================== */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.tech-item {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 22px 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-m);
  min-width: 105px;
  text-align: center;
  transition: border-color var(--base), transform var(--base), box-shadow var(--base), background var(--base);
}
.tech-item:hover {
  border-color: rgba(56,189,248,0.45);
  background: rgba(56,189,248,0.05);
  transform: translateY(-5px);
  box-shadow: var(--shadow-l);
}
.tech-icon-wrap {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
}
.tech-icon-wrap img {
  width: 100%; height: 100%;
  object-fit: contain;
}
.tech-icon-fa {
  font-size: 2.6rem;
  color: var(--icon-color, var(--blue));
}
.tech-item p {
  font-size: 0.82rem; font-weight: 600;
  color: var(--text-muted);
}
.tech-item:hover p { color: var(--sky); }

/* =====================================================================
   PROJECTS
   ===================================================================== */
.filtros-proyectos {
  display: flex; justify-content: center;
  gap: 10px; flex-wrap: wrap;
  margin-bottom: 36px;
}
.btn-filtro {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  border: 1.5px solid rgba(255,255,255,0.1);
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: 0.85rem;
  transition: all var(--base) var(--ease);
}
.btn-filtro:hover {
  border-color: var(--sky);
  color: var(--sky);
  background: rgba(56,189,248,0.08);
}
.btn-filtro.active {
  background: var(--blue); color: #fff;
  border-color: var(--blue);
  box-shadow: 0 4px 16px rgba(59,130,246,0.4);
}

.grid-proyectos {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
}

/* Project card */
.proyecto {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-l);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--base) var(--ease), box-shadow var(--base), border-color var(--base), background var(--base);
}
.proyecto:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(59,130,246,0.4);
  background: rgba(255,255,255,0.05);
}
.proyecto-img {
  width: 100%;
  height: auto;
  display: block;
}
.proyecto-contenido {
  padding: 22px;
  display: flex; flex-direction: column; flex-grow: 1;
}
.proyecto-meta {
  font-size: 0.72rem; font-weight: 700;
  color: var(--sky); text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 7px;
}
.proyecto h3 {
  font-size: 1.05rem; font-weight: 700;
  color: var(--text); margin-bottom: 10px; line-height: 1.4;
}
.proyecto p {
  font-size: 0.855rem; color: var(--text-muted);
  line-height: 1.72; margin-bottom: 16px; flex-grow: 1;
}
.tags {
  display: flex; flex-wrap: wrap; gap: 5px;
  margin-bottom: 18px;
}
.tags span {
  background: rgba(59,130,246,0.15); color: var(--sky);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.73rem; font-weight: 600;
}
.btn-proyecto {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 20px;
  background: transparent;
  color: var(--sky);
  border: 1.5px solid rgba(56,189,248,0.4);
  border-radius: var(--radius-pill);
  font-size: 0.85rem; font-weight: 600;
  transition: all var(--base) var(--ease);
  align-self: flex-start;
}
.btn-proyecto:hover {
  background: var(--blue); color: #fff;
  border-color: var(--blue);
  box-shadow: 0 4px 16px rgba(59,130,246,0.4);
  transform: translateX(2px);
}

/* =====================================================================
   CERTIFICATIONS
   ===================================================================== */
.grid-certificaciones {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.certificacion {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-m);
  padding: 20px;
  display: flex; align-items: flex-start; gap: 14px;
  transition: border-color var(--base), transform var(--base), box-shadow var(--base), background var(--base);
}
.certificacion:hover {
  border-color: rgba(59,130,246,0.45);
  background: rgba(59,130,246,0.04);
  transform: translateY(-3px);
  box-shadow: var(--shadow-l);
}
.icono-cert {
  width: 48px; height: 48px;
  object-fit: contain; border-radius: var(--radius-s);
  flex-shrink: 0;
}
.cert-info { flex: 1; min-width: 0; }
.certificacion h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 3px; color: var(--text); }
.certificacion p  { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 10px; }
.btn-certificado {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.8rem; font-weight: 600;
  color: var(--sky);
  transition: gap var(--fast);
}
.btn-certificado i { font-size: 0.7rem; transition: transform var(--fast); }
.btn-certificado:hover i { transform: translate(2px, -2px); }

/* =====================================================================
   CONTACT
   ===================================================================== */
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: start;
}
.contacto-desc {
  font-size: 1rem; color: var(--text-muted);
  margin-bottom: 30px; line-height: 1.8;
}
.redes { display: flex; flex-direction: column; gap: 12px; }
.red-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-m);
  transition: border-color var(--base), transform var(--base), box-shadow var(--base), background var(--base);
}
.red-item:hover {
  border-color: rgba(59,130,246,0.45);
  background: rgba(59,130,246,0.05);
  transform: translateX(4px);
  box-shadow: 0 0 0 4px rgba(59,130,246,0.07);
}
.red-icon {
  width: 42px; height: 42px;
  background: rgba(56,189,248,0.12); color: var(--sky);
  border-radius: var(--radius-s);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.red-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.red-label {
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted);
}
.red-value {
  font-size: 0.875rem; font-weight: 500;
  color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.red-arrow { font-size: 0.7rem; color: rgba(255,255,255,0.2); flex-shrink: 0; }

/* Form */
.form-contacto { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: #cbd5e1; }
.form-group input, .form-group textarea {
  padding: 11px 15px;
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-s);
  font-family: var(--font); font-size: 0.95rem;
  color: var(--text); background: rgba(255,255,255,0.05);
  transition: border-color var(--fast), box-shadow var(--fast), background var(--fast);
  outline: none; resize: vertical;
}
.form-group input::placeholder, .form-group textarea::placeholder {
  color: rgba(148,163,184,0.45);
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--blue);
  background: rgba(255,255,255,0.07);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

/* =====================================================================
   FOOTER
   ===================================================================== */
footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 48px 24px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex; flex-direction: column;
  align-items: center; gap: 24px;
  text-align: center;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-badge {
  background: rgba(59,130,246,0.15) !important;
  color: var(--sky) !important;
  border: 1px solid rgba(56,189,248,0.2);
}
.footer-name { font-weight: 700; font-size: 0.95rem; color: #e2e8f0; }
.footer-sub  { font-size: 0.78rem; color: #475569; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.footer-links a {
  color: #334155; font-size: 0.85rem;
  transition: color var(--fast);
}
.footer-links a:hover { color: #64748b; }
.footer-copy { font-size: 0.78rem; color: #1e293b; }

/* =====================================================================
   BACK TO TOP
   ===================================================================== */
.back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  background: var(--blue); color: #fff;
  border: none; border-radius: var(--radius-s);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.88rem;
  box-shadow: 0 4px 20px rgba(59,130,246,0.45);
  transition: all var(--base) var(--ease);
  opacity: 0; pointer-events: none;
  transform: translateY(10px);
  z-index: 998;
}
.back-to-top.visible { opacity: 1; pointer-events: all; transform: none; }
.back-to-top:hover   { background: var(--blue-dark); transform: translateY(-3px); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) {
  .sobre-grid    { grid-template-columns: 1fr; gap: 40px; }
  .contacto-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  :root { --pad-section: 72px 20px; }

  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: rgba(6, 14, 31, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column; align-items: stretch;
    padding: 16px; gap: 4px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    box-shadow: var(--shadow-xl);
  }
  .nav-links.active { display: flex; }
  .nav-link { padding: 12px 16px; border-radius: var(--radius-s); }

  .hero-stats { padding: 16px 12px; }
  .stat-item  { padding: 6px 14px; }
  .stat-sep   { display: none; }

  .sobre-highlights { grid-template-columns: 1fr; }
  .grid-proyectos   { grid-template-columns: 1fr; }
  .grid-certificaciones { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .btn          { width: 100%; max-width: 300px; }
  .hero-scroll-hint { display: none; }
  .tech-grid { gap: 12px; }
  .tech-item { min-width: 90px; padding: 16px 12px; }
  .lang-btn  { padding: 5px 9px; font-size: 0.70rem; }

  .hero-bg-image {
    background-position: center center;
  }
}

@media (max-width: 400px) {
  .logo-text { display: none; }
}
