/* Color verde de acento para textos destacados en el hero */
.accent-green {
  color: var(--accent);
}
/* ====== Estilos base ====== */
:root{
  --bg: #0f1222;
  --bg-2: #8a48a2;
  --surface: #10152e;
  --text: #e9ecff;
  --muted: #b8c0ff;
  --primary-500: #5b8cff;
  --primary-600: #4b7cf7;
  --primary-700: #3966e6;
  --accent: #00e0b8;
  --success: #2dd4bf;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --petrol-blue: #176B87;
  --metal-blue: #1b63ff;
  --green: #44ff00;
}
.accent-petrol {
  color: var(--petrol-blue);
}
.accent-metal {
  color: var(--metal-blue);
}
.accent-green {
  color: var(--green);
}

@media (prefers-color-scheme: light){
  :root{
    --bg: #f7f8ff;
    --bg-2: #ffffff;
    --surface: #ffffff;
    --text: #111433;
    --muted: #4b556b;
    --primary-500: #3b5bfd;
    --primary-600: #334de6;
    --primary-700: #2b3ec9;
    --accent: #00bfa6;
    --success: #10b981;
    --shadow: 0 10px 30px rgba(0,0,0,.12);
  }
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji", "Segoe UI Symbol";
  color: var(--text);
  background: radial-gradient(1200px 800px at 80% -10%, rgba(91,140,255,.20), transparent 60%),
              linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  line-height: 1.6;
}

/* Utilidades */
.container{
  width: min(1100px, 92%);
  margin-inline: auto;
}
.section{ padding: 80px 0; }
.section-title{
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.2rem);
  margin: 0 0 8px;
}
.section-subtitle{
  margin: 0 0 32px;
  color: var(--muted);
}

.btn{
  display: inline-block;
  padding: 12px 18px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
  box-shadow: var(--shadow);
}
.btn:hover{ transform: translateY(-2px); }
.btn:active{ transform: translateY(0); }
.btn--primary{
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  color: white;
}
.btn--outline{
  background: transparent;
  color: var(--text);
  border-color: rgba(255,255,255,.25);
}

/* Header */
.site-header{
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner{
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand{
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 600;
}
.brand-logo-text {
  display: flex;
  align-items: center;
  gap: 12px;
}
#logoRssDeveloper {
  height: clamp(32px, 5vw, 48px);
  width: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.brand-name {
  font-size: clamp(1.1rem, 1vw + 1rem, 1rem);
  font-weight: 450;
  color: var(--text);
  font-family: 'Poppins', sans-serif;
}

.brand-mark{
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-500), var(--accent));
  color: #0b1024; font-weight: 800;
}
.brand-name strong{ color: var(--primary-500); }

.main-nav{
  display: flex; align-items: center; gap: 22px;
}
.main-nav ul{
  display: flex; list-style: none; padding: 0; margin: 0; gap: 18px;
}
.main-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color .2s;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--primary-500), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  border-radius: 2px;
}
.main-nav a:hover::after {
  transform: scaleX(1);
}
.main-nav .nav-cta{ margin-left: 8px; }
.main-nav .nav-cta::after {
  display: none !important;
}

/* Menú móvil */
.menu-toggle{
  display: none;
  width: 42px; height: 42px; border: none; background: transparent; position: relative;
}
.menu-toggle span{
  position: absolute; inset-inline: 10px; height: 2px; background: var(--text);
  transition: transform .25s ease, opacity .25s ease;
}
.menu-toggle span:nth-child(1){ top: 13px; }
.menu-toggle span:nth-child(2){ top: 20px; }
.menu-toggle span:nth-child(3){ top: 27px; }

@media (max-width: 880px){
  .menu-toggle{ display: inline-block; }
  .main-nav{
    position: fixed; inset: 60px 16px auto 16px; top: 64px;
    flex-direction: column; align-items: stretch; gap: 14px;
    background: var(--surface); padding: 16px; border-radius: 16px; box-shadow: var(--shadow);
    opacity: 0; pointer-events: none; transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease;
  }
  .main-nav.open{ opacity: 1; transform: translateY(0); pointer-events: all; }
  .main-nav ul{ flex-direction: column; gap: 10px; }
  .main-nav .nav-cta{ width: 100%; text-align: center; }
}

/* Hero */
.hero{
  padding: 72px 0 40px;
}
.hero-inner{
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  align-items: center;
}
.hero-copy h1{
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem);
  line-height: 1.1; margin: 0 0 10px;
}
.accent{ color: var(--accent); }
.hero-copy p{ color: var(--muted); margin-bottom: 16px; }
.hero-actions{ display: flex; gap: 12px; align-items: center; margin: 10px 0 16px; }
.hero-highlights{ display: flex; gap: 16px; padding: 0; margin: 0; list-style: none; color: var(--muted); }

.hero-art{
  background: radial-gradient(400px 220px at 40% 30%, rgba(91,140,255,.25), transparent 60%);
  border-radius: 24px; padding: 14px; display: grid; place-items: center;
  box-shadow: var(--shadow);
}
.hero-monitor{ fill: #0b1024; stroke: rgba(255,255,255,.1); stroke-width: 2; }
.hero-card{ fill: #12183a; stroke: rgba(255,255,255,.08); stroke-width: 1.6; }

@media (max-width: 920px){
  .hero-inner{ grid-template-columns: 1fr; }
}

/* Cards & grid */
.grid{ display: grid; gap: 18px; }
.services{ grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px){ .services{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px){ .services{ grid-template-columns: 1fr; } }

.card{
  background: color-mix(in oklab, var(--surface) 92%, transparent);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px; padding: 18px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover{ transform: translateY(-4px); box-shadow: 0 14px 36px rgba(0,0,0,.35); border-color: rgba(255,255,255,.15); }
.card h3{ margin: 8px 0; font-size: 1.1rem; }
.card p{ color: var(--muted); margin: 0 0 8px; }
.card-icon svg{ width: 28px; height: 28px; fill: var(--primary-500); }

.tick{ margin: 8px 0 0 0; padding: 0; list-style: none; color: var(--muted); }
.tick li{ position: relative; padding-left: 22px; }
.tick li::before{
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--success); font-weight: 700;
}

.fineprint{ color: var(--muted); font-size: .9rem; margin-top: 6px; }

/* About */
.about{
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 26px; align-items: center;
}
.about-copy p{ color: var(--muted); }
.features{
  display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; padding: 0; margin: 16px 0 0; list-style: none;
}
.features li{
  background: color-mix(in oklab, var(--surface) 92%, transparent);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px; padding: 12px;
}
.feat-title{ display: block; font-weight: 600; }
.feat-desc{ color: var(--muted); font-size: .95rem; }

.about-media .glassy-card{
  display: grid; gap: 10px;
  background: linear-gradient(135deg, rgba(91,140,255,.15), rgba(0,224,184,.12));
  border: 1px solid rgba(255,255,255,.12);
  padding: 18px; border-radius: 18px;
  box-shadow: var(--shadow);
}
.stat{ display: grid; gap: 4px; background: rgba(0,0,0,.12); padding: 12px; border-radius: 14px; }
.stat .num{ font-size: 1.6rem; font-weight: 700; }
.stat .label{ color: var(--muted); }

@media (max-width: 920px){
  .about{ grid-template-columns: 1fr; }
}

/* Proyectos */
.projects{ grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px){ .projects{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px){ .projects{ grid-template-columns: 1fr; } }

.project{
  display: grid; gap: 10px; text-decoration: none; color: inherit;
}
.project-thumb{
  aspect-ratio: 16/10;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(91,140,255,.15), rgba(0,224,184,.12)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.08) 0 4px, transparent 4px 8px);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
  transition: transform .2s ease;
}
.project:hover .project-thumb{ transform: translateY(-3px); }
.project-meta h3{ margin: 0; font-size: 1.05rem; }
.project-meta span{ color: var(--muted); }

/* Contacto */
.contact{
  display: grid; grid-template-columns: 1fr 1fr; gap: 26px;
}
.contact-copy p{ color: var(--muted); }
.contact-list{ list-style: none; padding: 0; margin: 12px 0 0; }
.contact-list li{ margin: 6px 0; }
.contact-list a{ color: var(--primary-500); text-decoration: none; }
.contact-list a:hover{ text-decoration: underline; }

.contact-form{
  background: color-mix(in oklab, var(--surface) 92%, transparent);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px; padding: 16px;
  box-shadow: var(--shadow);
}
.field{ display: grid; gap: 6px; margin-bottom: 12px; }
label{ font-weight: 600; }
input, select, textarea{
  width: 100%; border-radius: 12px; border: 1px solid rgba(255,255,255,.12);
  background: #0d1330; color: var(--text);
  padding: 12px 12px;
}
@media (prefers-color-scheme: light){
  input, select, textarea{ background: #f5f7ff; color: #111433; border-color: rgba(0,0,0,.08); }
}
input:focus, select:focus, textarea:focus{ outline: 2px solid var(--primary-500); outline-offset: 1px; }
.form-note{ color: var(--muted); font-size: .92rem; margin: 6px 0 0; }

@media (max-width: 920px){
  .contact{ grid-template-columns: 1fr; }
}

/* Footer */
.site-footer{
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0 40px;
}
.footer-inner{
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.social{ display: flex; gap: 14px; }
.social a{ color: var(--muted); text-decoration: none; }
.social a:hover{ color: var(--text); }

/* Botón flotante WhatsApp con texto */
.fab-whatsapp {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 50px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  z-index: 999;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fab-whatsapp:hover {
  transform: scale(1.06);
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
}

.fab-whatsapp img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}


@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.fab-whatsapp {
  animation: pulse 2.5s infinite;
}


/* Accesibilidad / motion */
@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; scroll-behavior: auto; }
}

/* Hero - ajustes de alineación */
.hero {
  min-height: calc(100vh - 72px); /* siempre ocupa la pantalla completa menos el header */
  display: flex;
  align-items: center;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  align-items: center;
}

/* En móviles el texto arriba y el gráfico centrado debajo */
@media (max-width: 920px){
  .hero {
    padding: 60px 0 40px; /* un poco menos de espacio lateral en móviles */
  }
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-copy {
    order: 1;
  }
  .hero-art {
    order: 2;
    max-width: 320px;  /* evita que el gráfico se deforme */
    margin: 0 auto;   /* centra horizontalmente */
  }
  .hero-art svg {
    width: 100%;
    height: auto;
    display: block;
  }
}

/* Redes sociales dentro de contacto */
.contact-social {
  margin-top: 20px;
  display: flex;
  gap: 18px;
}

.contact-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--surface) 92%, transparent);
  box-shadow: var(--shadow);
  color: white;
  transition: transform 0.25s ease, background 0.25s ease;
}
/* ==== Redes sociales animadas (Contacto) ==== */

/* Tamaño consistente para PNG/SVG dentro del botón redondo */
.contact-social img,
.contact-social svg{
  width: 35px;
  height: 35px;
  display: block;
  object-fit: contain;
}

/* Estado base del botón redondo */
.contact-social a{
  position: relative;
  isolation: isolate;                /* para que el "ring" no se salga */
  transform: translateZ(0);          /* acelera animación */
}

/* Hover: pop + tilt sutil + brillo */
.contact-social a:hover{
  animation: popTilt .35s cubic-bezier(.2,.7,.2,1) both;
  background: linear-gradient(135deg, var(--primary-500), var(--accent));
  box-shadow: 0 14px 36px rgba(0,0,0,.35);
}

/* Anillo expansivo (ripple) al hover */
.contact-social a::after{
  content:"";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid color-mix(in oklab, var(--accent) 70%, transparent);
  transform: scale(.6);
  opacity: 0;
  pointer-events: none;
}
.contact-social a:hover::after{
  animation: ring .6s ease-out forwards;
}

/* Idle: flotación muy leve alternada para cada icono */
.contact-social a:nth-child(1){ animation: floatY 5s ease-in-out infinite; }
.contact-social a:nth-child(2){ animation: floatY 5.5s ease-in-out infinite .15s; }
.contact-social a:nth-child(3){ animation: floatY 6s ease-in-out infinite .3s; }

/* Keyframes */
@keyframes popTilt{
  0%   { transform: scale(1)   rotate(0deg); }
  60%  { transform: scale(1.12) rotate(-2.5deg); }
  100% { transform: scale(1.06) rotate(0deg); }
}
@keyframes ring{
  0%   { transform: scale(.6); opacity: .0; }
  35%  { opacity: .7; }
  100% { transform: scale(1.35); opacity: 0; }
}
@keyframes floatY{
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-4px); }
}

/* ===== Menú móvil animado ===== */

/* Botón hamburguesa: cursor y transiciones */
.menu-toggle{ cursor: pointer; }
.menu-toggle span{
  transition: transform .28s ease, opacity .2s ease, top .28s ease;
  transform-origin: center;
}
.menu-toggle.is-open span:nth-child(1){
  top: 20px; transform: rotate(45deg);
}
.menu-toggle.is-open span:nth-child(2){
  opacity: 0; transform: translateX(8px);
}
.menu-toggle.is-open span:nth-child(3){
  top: 20px; transform: rotate(-45deg);
}

/* Panel del menú (móvil) con slide+fade y z-index alto */
@media (max-width: 880px){
  .main-nav{
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px) scale(.98);
    transform-origin: top right;
    transition: opacity .25s ease, transform .25s cubic-bezier(.2,.7,.2,1);
  }
  .main-nav.open{
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  /* Animación escalonada de los items */
  .main-nav.open li{
    opacity: 0;
    animation: navItem .35s cubic-bezier(.2,.7,.2,1) forwards;
  }
  .main-nav.open li:nth-child(1){ animation-delay: .05s; }
  .main-nav.open li:nth-child(2){ animation-delay: .10s; }
  .main-nav.open li:nth-child(3){ animation-delay: .15s; }
  .main-nav.open li:nth-child(4){ animation-delay: .20s; }
}

@keyframes navItem{
  from{ opacity: 0; transform: translateY(-8px); }
  to  { opacity: 1; transform: translateY(0); }
}

/* Backdrop detrás del menú */
.nav-backdrop{
  position: fixed; inset: 0;
  background: rgba(0,0,0,.35);
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
  z-index: 900;
}
.nav-backdrop.show{
  opacity: 1; pointer-events: auto;
}

/* Respeto a reduce motion */
@media (prefers-reduced-motion: reduce){
  .menu-toggle span,
  .main-nav,
  .main-nav.open li,
  .nav-backdrop{ transition: none !important; animation: none !important; }
}

/* FIX compatibilidad móvil para las 3 líneas del botón */
.menu-toggle {
  position: relative; width: 42px; height: 42px; border: 0; background: transparent;
  cursor: pointer;
}
.menu-toggle span{
  position: absolute;
  left: 10px;   /* en lugar de inset-inline */
  right: 10px;  /* en lugar de inset-inline */
  height: 2px;
  background: var(--text);
  transition: transform .28s ease, opacity .2s ease, top .28s ease;
  transform-origin: center;
}
.menu-toggle span:nth-child(1){ top: 13px; }
.menu-toggle span:nth-child(2){ top: 20px; }
.menu-toggle span:nth-child(3){ top: 27px; }

.menu-toggle.is-open span:nth-child(1){ top: 20px; transform: rotate(45deg); }
.menu-toggle.is-open span:nth-child(2){ opacity: 0; transform: translateX(8px); }
.menu-toggle.is-open span:nth-child(3){ top: 20px; transform: rotate(-45deg); }

/* ===== Menú móvil animado + compatibilidad ===== */

/* Botón hamburguesa: que siempre sea "clickeable" y animable */
.menu-toggle{ cursor: pointer; position: relative; width: 42px; height: 42px; border: 0; background: transparent; }
.menu-toggle span{
  position: absolute;
  left: 10px; right: 10px;           /* en vez de inset-inline, mejor soporte móvil */
  height: 2px; background: var(--text);
  transition: transform .28s ease, opacity .2s ease, top .28s ease;
  transform-origin: center;
}
.menu-toggle span:nth-child(1){ top: 13px; }
.menu-toggle span:nth-child(2){ top: 20px; }
.menu-toggle span:nth-child(3){ top: 27px; }

.menu-toggle.is-open span:nth-child(1){ top: 20px; transform: rotate(45deg); }
.menu-toggle.is-open span:nth-child(2){ opacity: 0; transform: translateX(8px); }
.menu-toggle.is-open span:nth-child(3){ top: 20px; transform: rotate(-45deg); }

/* Panel móvil con slide+fade y stagger en los links */
@media (max-width: 880px){
  .main-nav{
    z-index: 1000;                   /* por encima del header y contenido */
    opacity: 0;
    transform: translateY(-10px) scale(.98);
    transform-origin: top right;
    transition: opacity .25s ease, transform .25s cubic-bezier(.2,.7,.2,1);
  }
  .main-nav.open{ opacity: 1; transform: translateY(0) scale(1); }

  .main-nav.open li{
    opacity: 0; animation: navItem .35s cubic-bezier(.2,.7,.2,1) forwards;
  }
  .main-nav.open li:nth-child(1){ animation-delay: .05s; }
  .main-nav.open li:nth-child(2){ animation-delay: .10s; }
  .main-nav.open li:nth-child(3){ animation-delay: .15s; }
  .main-nav.open li:nth-child(4){ animation-delay: .20s; }
}

@keyframes navItem{
  from{ opacity: 0; transform: translateY(-8px); }
  to  { opacity: 1; transform: translateY(0); }
}

.nav-backdrop{ background: transparent; }
.nav-backdrop.show{ opacity: 0; pointer-events: none; }  /* invisible e inerte */


.nav-backdrop.show{ opacity: 1; pointer-events: auto; }

/* Respeto accesibilidad */
@media (prefers-reduced-motion: reduce){
  .menu-toggle span, .main-nav, .main-nav.open li, .nav-backdrop{
    transition: none !important; animation: none !important;
  }
}

/* Mostrar SIEMPRE los links cuando el usuario reduce movimiento */
@media (max-width: 880px) and (prefers-reduced-motion: reduce){
  .main-nav.open li{
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* Animación escalonada SOLO si NO hay preferencia de reducir movimiento */
@media (max-width: 880px) and (prefers-reduced-motion: no-preference){
  .main-nav{ z-index: 1000; } /* por encima del contenido */
  .main-nav.open li{
    opacity: 0;
    animation: navItem .35s cubic-bezier(.2,.7,.2,1) forwards;
  }
  .main-nav.open li:nth-child(1){ animation-delay: .05s; }
  .main-nav.open li:nth-child(2){ animation-delay: .10s; }
  .main-nav.open li:nth-child(3){ animation-delay: .15s; }
  .main-nav.open li:nth-child(4){ animation-delay: .20s; }
}

@keyframes navItem{
  from{ opacity: 0; transform: translateY(-8px); }
  to  { opacity: 1; transform: translateY(0); }
}

/* === Despliegue vertical con clip-path + stagger === */
@media (max-width: 880px){
  .main-nav{
    /* estado cerrado: recortado arriba (como si estuviera “plegado”) */
    clip-path: inset(0 0 100% 0 round 16px);
    opacity: 0;
    transform: translateY(-4px);
    transition:
      clip-path .38s cubic-bezier(.2,.7,.2,1),
      opacity .22s ease,
      transform .38s cubic-bezier(.2,.7,.2,1);
  }
  .main-nav.open{
    /* estado abierto: sin recorte = desplegado */
    clip-path: inset(0 0 0 0 round 16px);
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  /* Entrada escalonada de items */
  .main-nav.open li{
    opacity: 0;
    animation: navItem .35s cubic-bezier(.2,.7,.2,1) forwards;
  }
  .main-nav.open li:nth-child(1){ animation-delay: .06s; }
  .main-nav.open li:nth-child(2){ animation-delay: .12s; }
  .main-nav.open li:nth-child(3){ animation-delay: .18s; }
  .main-nav.open li:nth-child(4){ animation-delay: .24s; }
}
@keyframes navItem{
  from{ opacity: 0; transform: translateY(-8px); }
  to  { opacity: 1; transform: translateY(0); }
}

/* Hamburguesa → X (ya tienes spans dentro del #menuToggle) */
.menu-toggle{ cursor: pointer; position: relative; }
.menu-toggle span{
  transition: transform .28s ease, opacity .2s ease, top .28s ease;
  transform-origin: center;
  transform-origin: center;
}
.menu-toggle.is-open span:nth-child(1){ top: 20px; transform: rotate(45deg); }
.menu-toggle.is-open span:nth-child(2){ opacity: 0; transform: translateX(8px); }
.menu-toggle.is-open span:nth-child(3){ top: 20px; transform: rotate(-45deg); }


