*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --text-main: #111827;
  --text-soft: #6b7280;
  --accent: #ff7a22;
  --accent-soft: rgba(255, 122, 34, 0.12);
  --border-soft: #e5e7eb;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius-lg: 20px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f3f4f6;
  color: var(--text-main);
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 245, 247, 0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
}

.brand-name {
  font-weight: 600;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transition: width 0.2s ease-out;
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: #ffffff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.2rem;
}

.nav-toggle span {
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: #111827;
}

/* HERO */
.hero {
  padding: 2.6rem 0 2.1rem; /* menos aire arriba y abajo */
  background: #f5f5f7;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.hero-left .pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  font-size: 0.75rem;
  color: var(--text-soft);
  margin-bottom: 0.9rem;
}
.hero-left .pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e; /* verde online */
  box-shadow: 0 0 0 2px #dcfce7; /* aro suave */
  margin-right: 0.45rem;
}

.hero-left h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(2.2rem, 3vw, 2.6rem);
  letter-spacing: -0.04em;
}

.hero-left .accent {
  color: transparent;
  background: linear-gradient(90deg, var(--accent), #ffb85c, var(--accent));
  background-size: 200% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  animation: accent-sheen 3.8s linear infinite, accent-flip 14s ease-in-out infinite;
  position: relative;
  display: inline-block;
  will-change: transform, background-position;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}
.hero-left .accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.18em;
  height: 0.28em;
  background: linear-gradient(90deg, rgba(255, 122, 34, 0.18), rgba(255, 184, 92, 0.22));
  border-radius: 999px;
  pointer-events: none;
}

@keyframes accent-sheen {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes accent-flip {
  0%, 82%, 100% { transform: perspective(900px) rotateX(0deg); }
  86% { transform: perspective(900px) rotateX(180deg); }
  90% { transform: perspective(900px) rotateX(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-left .accent { animation: none; color: var(--accent); background: none; -webkit-background-clip: initial; background-clip: initial; }
  .hero-left .accent::after { opacity: 1; }
}

.hero-subtitle {
  margin: 0 0 1.4rem;
  color: var(--text-soft);
  font-size: 0.98rem;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease-out;
}

.btn-primary {
  background: #111827;
  color: #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.45);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.6);
}

.btn-ghost {
  background: transparent;
  color: #111827;
  border-color: var(--border-soft);
}

.btn-ghost:hover {
  background: #ffffff;
}

.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.4rem;
}

.meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.meta-number {
  font-weight: 700;
  font-size: 1.2rem;
}

.meta-label {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.hero-tags span {
  font-size: 0.78rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: var(--text-soft);
}

/* SERVICE TICKER */
.service-ticker {
  position: relative;
  flex: 1 1 480px;
  min-width: 240px;
  height: 30px;
  overflow: hidden;
}
.service-ticker::before,
.service-ticker::after {
  content: "";
  position: absolute;
  top: 0;
  width: 48px;
  height: 100%;
  pointer-events: none;
}
.service-ticker::before {
  left: 0;
  background: linear-gradient(90deg, #f5f5f7, rgba(245,245,247,0));
}
.service-ticker::after {
  right: 0;
  background: linear-gradient(270deg, #f5f5f7, rgba(245,245,247,0));
}
.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
  animation: ticker-scroll 28s linear infinite;
}
.service-ticker span {
  display: inline-flex;
  align-items: center;
  color: var(--text-soft);
  font-size: 0.78rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}
.service-ticker .sep {
  background: transparent;
  border: 0;
  padding: 0 0.2rem;
}
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (max-width: 960px) {
  .service-ticker { height: 28px; }
  .ticker-track { animation-duration: 24s; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* HERO RIGHT */
.hero-right {
  display: flex;
  justify-content: center;
}

.hero-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4 / 5;
  background: #ffffff;
  border-radius: 30px;
  box-shadow: var(--shadow-soft);
  padding: 1.4rem 1.4rem 1.6rem;
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  inset: -40% -15% auto auto;
  background: var(--accent);
  transform: skewX(-18deg);
}

.avatar-wrapper {
  position: relative;
  margin: 0 auto;
  margin-top: 2rem;
  z-index: 1;
  width: clamp(96px, 42vw, 180px);
  height: clamp(96px, 42vw, 180px);
}

.avatar-circle {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
}

.avatar-inner {
  text-align: center;
  color: #f9fafb;
}

.avatar-initials {
  display: block;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: clamp(1.6rem, 6vw, 2.2rem);
}

.avatar-sub {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.85;
  font-size: clamp(0.64rem, 2.6vw, 0.75rem);
}

.avatar-orbit { display: none; }

.orbit-1 {
  inset: 6%;
}

.orbit-2 {
  inset: 14%;
}

/* removed hero-skill-badge per request */

/* SECTIONS */
.section {
  padding: 4rem 0;
  background: #f9fafb;
}

.section:nth-of-type(even) {
  background: #f3f4f6;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header.left {
  text-align: left;
}

.section-header h2 {
  margin: 0 0 0.5rem;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}

.section-header p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* SERVICES */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.04);
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  border-color: rgba(15, 23, 42, 0.15);
}

.service-card h3 {
  margin: 0.2rem 0 0.4rem;
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-main);
}
.service-card h3::after {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
  margin-top: 0.4rem;
}

.service-card p {
  margin: 0.75rem 0 0.2rem;
  font-size: 0.92rem;
  color: #4b5563;
  line-height: 1.6;
}

.service-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.service-card li {
  font-size: 0.86rem;
  color: #4b5563;
  margin-bottom: 0.25rem;
}

/* Service cards styled similar to project cards */
.services-grid { counter-reset: svc; }
.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding-top: 7.4rem; /* ensure content sits below header band */
  counter-increment: svc;
  background: linear-gradient(#ffffff, #ffffff) padding-box,
              linear-gradient(180deg, rgba(15,23,42,0.08), rgba(15,23,42,0.02)) border-box;
  border: 1px solid transparent;
}
.service-card > * { position: relative; z-index: 1; }
.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 108px;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  background: linear-gradient(135deg, #111827, #374151);
}
.service-card::after {
  content: counter(svc, decimal-leading-zero);
  position: absolute;
  top: 72px;
  right: 1.1rem;
  background: #111827;
  color: #f9fafb;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(15,23,42,0.18);
}

/* Gradient variants per card */
.services-grid .service-card:nth-child(1)::before { background: linear-gradient(135deg, #020617, #f97316); }
.services-grid .service-card:nth-child(2)::before { background: linear-gradient(135deg, #0f172a, #38bdf8); }
.services-grid .service-card:nth-child(3)::before { background: linear-gradient(135deg, #0f172a, #22c55e); }
.services-grid .service-card:nth-child(4)::before { background: linear-gradient(135deg, #0f172a, #a855f7); }
.services-grid .service-card:nth-child(5)::before { background: linear-gradient(135deg, #0f172a, #f59e0b); }
.services-grid .service-card:nth-child(6)::before { background: linear-gradient(135deg, #111827, #ef4444); }
.services-grid .service-card:nth-child(7)::before { background: linear-gradient(135deg, #0f172a, #10b981); }
.services-grid .service-card:nth-child(8)::before { background: linear-gradient(135deg, #0f172a, #06b6d4); }
.services-grid .service-card:nth-child(9)::before { background: linear-gradient(135deg, #0f172a, #3b82f6); }

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

@media (max-width: 720px) {
  .service-card { padding-top: 6.2rem; }
  .service-card::before { height: 92px; }
  .service-card::after { top: 62px; }
  .service-card h3 { margin-top: 0.1rem; font-size: 1rem; }
}

/* PROJECTS */
.projects {
  background: #f9fafb;
}

.projects-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.8rem;
  margin-top: 1.5rem;
}

.project-card {
  display: grid;
  grid-template-rows: 190px auto;
  border-radius: 24px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
  transform: translateY(0);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.project-thumb {
  position: relative;
  padding: 1.1rem;
}

.thumb-1 {
  background: #0b1220; /* fallback while preview loads */
}

.thumb-2 {
  background: linear-gradient(135deg, #0f172a, #38bdf8);
}

.project-index {
  position: absolute;
  bottom: 1rem;
  right: 1.1rem;
  background: #111827;
  color: #f9fafb;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
}

.project-body {
  padding: 1.2rem 1.4rem 1.3rem;
}

/* Project thumbnail image support */
.project-thumb {
  position: relative;
  overflow: hidden;
}
.project-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

/* Small button variant */
.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
}

/* Hover/active states for project cards */
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
  border-color: rgba(15, 23, 42, 0.12);
}
.project-card:hover .project-thumb img {
  transform: scale(1.05);
}

/* Reveal on scroll */
.project-card.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
}
.project-card.reveal.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1), opacity 600ms ease;
}
@media (prefers-reduced-motion: reduce) {
  .project-card,
  .project-thumb img,
  .project-card.reveal,
  .project-card.reveal.in-view { transition: none; transform: none; opacity: 1; }
}

/* External visit button styling */
.btn-visit::after {
  content: "\2197"; /* ↗ */
  font-size: 0.9em;
  margin-left: 0.45rem;
}

/* Project status pill */
.project-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: #111827;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  margin-bottom: 0.5rem;
}

.project-body h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.project-body p {
  margin: 0 0 0.8rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #b45309;
}

/* CONTACT */
.contact {
  background: #f3f4f6;
}

/* SOCIALS */
.socials {
  background: #f9fafb;
}
/* Compactar inicio de la sección de redes para reducir salto desde el hero */
.section.socials { padding-top: 2.2rem; }
.socials-grid {
  display: flex;
  gap: 0.75rem;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: stretch;
}
.social-btn {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 0.9rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  color: #111827;
  box-shadow: 0 10px 26px rgba(15,23,42,0.05);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  flex: 1 1 0;
  justify-content: center;
  min-width: 0;
}
.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(15,23,42,0.12);
  border-color: rgba(15, 23, 42, 0.12);
}
.social-btn .icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: lowercase;
  color: #fff;
}
.social-btn .label {
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}
/* Brand colors */
.social-btn.linkedin .icon { background: #0a66c2; }
.social-btn.github .icon { background: #111827; }
.social-btn.instagram .icon { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social-btn.x .icon { background: #0f172a; }
.social-btn.whatsapp .icon { background: #22c55e; }
.social-btn.email .icon { background: #ef4444; }

@media (max-width: 720px) {
  /* Redes: en móviles usar grilla 3x2 con icono arriba y etiqueta abajo */
  .socials-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
    justify-items: stretch;
    align-items: stretch;
  }
  .social-btn {
    padding: 0.7rem 0.5rem;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .social-btn .icon { width: 32px; height: 32px; font-size: 0.78rem; }
  .social-btn .label { font-size: 0.82rem; }
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

.contact-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.contact-list li {
  font-size: 0.9rem;
  color: #374151;
  margin-bottom: 0.25rem;
}

.contact-form {
  border-radius: 22px;
  background: #ffffff;
  border: 2px solid #cbd5e1; /* borde más visible */
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
  padding: 1.2rem 1.2rem 1.3rem;
}

.form-group {
  margin-bottom: 0.9rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: #374151;
}

input,
textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1; /* bordes de inputs más notorios */
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  background: #ffffff; /* fondo blanco para que el borde resalte */
  transition: border-color 0.18s ease-out, box-shadow 0.18s ease-out, background 0.18s ease-out;
}

/* Hover: leve realce del borde */
input:hover,
textarea:hover {
  border-color: #b6c2d1;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.3);
  background: #ffffff;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* Focus within group highlight */
.form-group:focus-within label { color: var(--accent); }
.form-group:focus-within input,
.form-group:focus-within textarea {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18);
  background: #fff;
}

.error-message {
  min-height: 0.8rem;
  font-size: 0.76rem;
  color: #b91c1c;
  margin: 0.15rem 0 0;
}

.btn.full {
  width: 100%;
}

.btn-outline {
  width: 100%;
  margin-top: 0.5rem;
  border-color: #d1d5db;
  background: #ffffff;
  color: #111827;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-top: 0.5rem;
}

/* FOOTER */
.site-footer {
  padding: 1.8rem 0 2.4rem;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.8rem;
  color: #6b7280;
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }

  .hero-right {
    order: -1;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .projects-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .hero { padding: 2.2rem 0 1.6rem; }
  .section.socials { padding-top: 1.8rem; }
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 120%;
    right: 0;
    flex-direction: column;
    background: #ffffff;
    padding: 0.7rem 0.9rem;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.15);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.18s ease-out, transform 0.18s ease-out;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .section {
    padding: 3.2rem 0;
  }

  .services-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Avatar: ocultar texto interno en móvil */
  .avatar-initials,
  .avatar-sub {
    display: none;
  }

  /* Pill visible también en móviles */
  .hero-left .pill { display: inline-flex; font-size: 0.72rem; }
  .hero-left h1 { display: block; }
  .hero-left h1::after { content: none; display: none; }

  /* Ocultar tarjeta de avatar en teléfonos */
  .hero-right { display: none; }
}

@media (max-width: 480px) {
  /* En pantallas muy pequeñas, pasar a 2 columnas para mayor legibilidad */
  .socials-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .hero-actions {
    flex-direction: column;
  }

  .btn,
  .btn.full,
  .btn-outline {
    width: 100%;
    justify-content: center;
  }
}
