/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ===== SKIP LINK ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.6rem 1.2rem;
  background: var(--g);
  color: #060608;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* ===== FOCUS VISIBLE ===== */
:focus-visible {
  outline: 2px solid #00ffcc;
  outline-offset: 3px;
  border-radius: 4px;
}
/* Quita el outline default en favor del focus-visible */
:focus:not(:focus-visible) {
  outline: none;
}

:root {
  color-scheme: dark;
  --g:       #00ffcc;
  --g-dim:   rgba(0, 255, 204, 0.12);
  --g-glow:  rgba(0, 255, 204, 0.4);
  --bg:      #060608;
  --text:    #e8eaf0;
  --muted:   rgba(232, 234, 240, 0.65);
  --border:  rgba(255, 255, 255, 0.07);
}

html, body {
  height: 100%;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #060608;
  background-color: #060608;
  color: #e8eaf0;
  overflow-x: hidden;
  color-scheme: dark;
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 1.5rem;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

/* Scrolled state — se activa con JS o simplemente se aplica siempre */
.nav {
  background: rgba(6, 6, 8, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--border);
}

.nav__inner {
  max-width: 1100px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo-img {
  height: 40px;
  width: auto;
  display: block;
}

/* Links */
.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav__link {
  padding: 0.4rem 0.85rem;
  border-radius: 7px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav__link:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

/* Botón pequeño para el nav */
.btn--sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  border-radius: 8px;
  flex-shrink: 0;
}

/* ---- Hamburguesa ---- */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 6px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: auto;
  forced-color-adjust: none;
}

.nav__burger span {
  display: block;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.28s ease, opacity 0.2s ease, width 0.2s ease;
}

/* X al abrir */
.nav__burger.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav__burger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav__burger.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ---- Menú mobile drawer ---- */
.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
  background: rgba(6, 6, 8, 0.95);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.3s ease, visibility 0s 0.35s;
}

.nav__mobile.is-open {
  max-height: 400px;
  opacity: 1;
  visibility: visible;
  transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.3s ease, visibility 0s 0s;
}

.nav__mobile-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav__mobile-link {
  padding: 0.7rem 0.75rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.nav__mobile-link:hover {
  color: var(--text);
  background: rgba(255,255,255,0.04);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6rem 1.5rem 4rem;
}

/* Glow blob central */
.hero__bg-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(0,255,204,0.13) 0%, transparent 70%),
    radial-gradient(ellipse 30% 25% at 20% 70%, rgba(0,255,204,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 25% 20% at 80% 20%, rgba(0,255,204,0.06) 0%, transparent 60%);
  pointer-events: none;
}

/* Grid sutil de fondo */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 80%);
  pointer-events: none;
}

/* Contenido */
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* Badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(0,255,204,0.25);
  background: rgba(0,255,204,0.07);
  color: var(--g);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  font-weight: 500;
}

.hero__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--g);
  box-shadow: 0 0 6px var(--g);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

/* Título */
.hero__title {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
}

/* Línea con degradado: puntas verdes fuertes, centro más claro/blanco */
.hero__title-gradient {
  display: inline-block;
  background: linear-gradient(
    90deg,
    #00c9a0 0%,
    #00ffcc 20%,
    #e0fff8 48%,
    #ffffff 50%,
    #e0fff8 52%,
    #00ffcc 80%,
    #00b38a 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(0,255,204,0.4));
  forced-color-adjust: none;
}

/* Subtítulo */
.hero__subtitle {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
}

/* ===== BOTONES ===== */
.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  forced-color-adjust: none;
}

/* Botón principal — verde neon sólido */
.btn--primary {
  background: var(--g);
  color: #060608;
  box-shadow:
    0 0 20px rgba(0,255,204,0.45),
    0 0 60px rgba(0,255,204,0.15),
    inset 0 1px 0 rgba(255,255,255,0.25);
}

.btn--primary:hover {
  background: #1affd6;
  box-shadow:
    0 0 32px rgba(0,255,204,0.7),
    0 0 80px rgba(0,255,204,0.25),
    inset 0 1px 0 rgba(255,255,255,0.3);
  transform: translateY(-2px);
}

.btn--primary:hover svg {
  transform: translateX(3px);
}

.btn--primary svg {
  transition: transform 0.2s ease;
}

/* Botón secundario — contorno neon */
.btn--ghost {
  background: transparent;
  color: var(--g);
  border: 1.5px solid rgba(0,255,204,0.4);
  box-shadow: inset 0 0 0 0 rgba(0,255,204,0);
}

.btn--ghost:hover {
  border-color: var(--g);
  background: rgba(0,255,204,0.08);
  box-shadow:
    0 0 18px rgba(0,255,204,0.2),
    inset 0 0 20px rgba(0,255,204,0.05);
  transform: translateY(-2px);
}



/* ===== FEATURES ===== */
.features {
  padding: 7rem 1.5rem;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, rgba(0,255,204,0.25), transparent);
}

.features__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

/* Header */
.features__header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.features__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--g);
}

.features__title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
}

.features__subtitle {
  font-size: 1rem;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.7;
}

/* Body: features + phones */
.features__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

/* Grilla 2×2 de features */
.features__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 2rem;
}

/* Feature item */
.feat-item {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.feat-item__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(0,255,204,0.2);
  background: rgba(0,255,204,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.feat-item__icon svg {
  width: 19px;
  height: 19px;
  color: var(--g);
}

.feat-item:hover .feat-item__icon {
  border-color: rgba(0,255,204,0.5);
  box-shadow: 0 0 14px rgba(0,255,204,0.2);
}

.feat-item__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin: 0;
}

.feat-item__desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* Zona de teléfonos */
.features__phones {
  position: relative;
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.features__phones-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,255,204,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.features__phone {
  position: absolute;
  width: 200px;
  height: 400px;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  overflow: hidden;
}

.features__phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: inherit;
}

.features__phone-placeholder {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(160deg, rgba(0,255,204,0.07) 0%, transparent 60%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 28px,
      rgba(0,255,204,0.04) 28px,
      rgba(0,255,204,0.04) 29px
    );
}

.features__phone--back {
  transform: rotate(6deg) translateX(85px) translateY(15px);
  z-index: 1;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.5),
    0 0 0 1px var(--border);
}

.features__phone--front {
  transform: rotate(-4deg) translateX(-55px) translateY(-10px);
  z-index: 2;
  box-shadow:
    0 40px 100px rgba(0,0,0,0.6),
    0 0 30px rgba(0,255,204,0.08),
    0 0 0 1px rgba(0,255,204,0.1);
}

/* ===== PROYECTOS ===== */
.projects {
  padding: 7rem 1.5rem;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.projects::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 1px; height: 80px;
  background: linear-gradient(to bottom, transparent, rgba(0,255,204,0.25), transparent);
}

.projects__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.projects__header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.projects__eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--g);
}

.projects__title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
}

.projects__title-accent {
  color: var(--g);
  filter: drop-shadow(0 0 12px rgba(0,255,204,0.4));
}

.projects__subtitle {
  font-size: 1rem;
  color: var(--muted);
  max-width: 440px;
}

/* Slider wrapper */
.projects__slider-wrap {
  position: relative;
}

.projects__track-clip {
  overflow: hidden;
}

/* Flechas */
.projects__arrow {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(0,255,204,0.25);
  background: rgba(6,6,8,0.85);
  color: var(--g);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  backdrop-filter: blur(8px);
}

.projects__arrow svg {
  width: 20px;
  height: 20px;
}

.projects__arrow:hover {
  border-color: var(--g);
  box-shadow: 0 0 16px rgba(0,255,204,0.25);
  transform: translateY(-50%) scale(1.08);
}

.projects__arrow--prev { left: 0; }
.projects__arrow--next { right: 0; }

/* Track */
.projects__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Slide */
.proj-slide {
  min-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding: 0 4.5rem;
}

/* Mockup de browser */
.proj-slide__browser {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.5),
    0 0 0 1px var(--border),
    0 0 40px rgba(0,255,204,0.04);
}

/* Barra del browser */
.proj-slide__bar {
  height: 38px;
  background: #111114;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  gap: 0.75rem;
  flex-shrink: 0;
}

.proj-slide__dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot--red    { background: #ff5f57; }
.dot--yellow { background: #febc2e; }
.dot--green  { background: #28c840; }

.proj-slide__url {
  flex: 1;
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.2rem 0.75rem;
  max-width: 280px;
  margin: 0 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.proj-slide__bar-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.proj-slide__bar-actions span {
  width: 14px;
  height: 10px;
  border-radius: 2px;
  background: rgba(255,255,255,0.06);
}

/* Pantalla */
.proj-slide__screen {
  aspect-ratio: 16 / 9;
  background: #0d0d10;
  overflow: hidden;
  position: relative;
}

.proj-slide__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Ocultar imágenes vacías */
.proj-slide__screen img:not([src]),
.proj-slide__screen img[src=""] {
  visibility: hidden;
}

/* Info del proyecto */
.proj-slide__info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.proj-slide__meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.proj-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(0,255,204,0.75);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(0,255,204,0.18);
  background: rgba(0,255,204,0.06);
}

.proj-slide__name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin: 0;
}

.proj-slide__desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 580px;
  margin: 0;
}

.proj-slide__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--g);
  text-decoration: none;
  transition: gap 0.2s ease;
  width: fit-content;
}
.proj-slide__link:hover {
  gap: 0.65rem;
}
.proj-slide__link svg {
  transition: transform 0.2s ease;
}
.proj-slide__link:hover svg {
  transform: translateX(3px);
}

/* Dots de paginación */
.projects__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.proj-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.15);
  cursor: pointer;
  transition: background 0.25s, width 0.25s;
  padding: 0;
}

.proj-dot.is-active {
  background: var(--g);
  width: 24px;
  box-shadow: 0 0 8px rgba(0,255,204,0.5);
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 5rem 1.5rem 2rem;
  position: relative;
  background: var(--bg);
}

.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer__logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.footer__logo-accent {
  color: var(--g);
  text-shadow: 0 0 10px rgba(0,255,204,0.4);
}

.footer__tagline {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 380px;
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer__col-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--g);
  margin-bottom: 0.25rem;
}

.footer__link {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  width: fit-content;
}

.footer__link:hover {
  color: var(--text);
}

.footer__bottom {
  max-width: 1100px;
  margin: 2rem auto 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: rgba(232,234,240,0.3);
}

@media (max-width: 768px) {
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer__links {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer__bottom {
    flex-direction: column;
    gap: 0.25rem;
  }
}

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

/* =============================================
   RESPONSIVE
   ============================================= */

/* --- Tablet ancho: 901px – 1100px --- */
@media (max-width: 1100px) {
  .features__inner {
    gap: 4rem;
  }
  .features__body {
    gap: 3rem;
  }
}

/* --- Tablet: ≤ 900px --- */
@media (max-width: 900px) {

  /* Nav: ocultar links y botón CTA, mostrar hamburguesa */
  .nav__links,
  .nav .btn--sm {
    display: none;
  }
  .nav__burger {
    display: flex;
  }
  .nav__mobile {
    display: flex;
  }
  .nav__inner {
    gap: 0.75rem;
  }
  .nav__logo {
    margin-right: auto;
  }

  /* Hero */
  .hero {
    padding: 7rem 2rem 5rem;
  }
  .hero__content {
    gap: 1.75rem;
    max-width: 600px;
  }
  .hero__subtitle {
    font-size: 1rem;
  }

  /* Features: body apilado */
  .features__body {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  /* Phones: primero visualmente */
  .features__phones {
    height: 380px;
    order: -1;
  }
  .features__phone {
    width: 170px;
    height: 340px;
  }
  .features__phone--back {
    transform: rotate(6deg) translateX(72px) translateY(12px);
  }
  .features__phone--front {
    transform: rotate(-4deg) translateX(-46px) translateY(-8px);
  }

  /* feat-items: fila horizontal (ícono + texto lado a lado) con card */
  .features__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .feat-item {
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.025);
  }
  .feat-item__icon {
    flex-shrink: 0;
    margin-top: 2px;
  }
}

/* --- Mobile: ≤ 640px --- */
@media (max-width: 640px) {
  /* Proyectos */
  .proj-slide { padding: 0 0.5rem; }
  .projects__arrow--prev { left: 0; }
  .projects__arrow--next { right: 0; }
  .projects__arrow { width: 38px; height: 38px; }


  /* Hero: padding horizontal generoso para dar aire */
  .hero {
    padding: 6rem 1.75rem 4rem;
    min-height: 100svh;
  }
  .hero__content {
    gap: 1.5rem;
    max-width: 100%;
  }
  .hero__subtitle {
    font-size: 0.95rem;
    max-width: 340px;
  }

  /* Badge: texto más corto no se corta */
  .hero__badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.85rem;
    text-align: center;
  }

  /* Botones: apilados y full-width */
  .hero__actions {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }
  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Features: padding con aire lateral */
  .features {
    padding: 5rem 1.75rem;
  }
  .features__inner {
    gap: 3rem;
  }
  .features__header {
    gap: 0.85rem;
  }
  .features__subtitle {
    font-size: 0.92rem;
    max-width: 320px;
  }

  /* feat-items: 1 columna, card horizontal */
  .features__grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .feat-item {
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.025);
  }
  .feat-item__icon {
    flex-shrink: 0;
    margin-top: 2px;
  }

  /* Phones: más compacto */
  .features__phones {
    height: 320px;
  }
  .features__phone {
    width: 145px;
    height: 290px;
    border-radius: 22px;
  }
  .features__phone--back {
    transform: rotate(5deg) translateX(60px) translateY(10px);
  }
  .features__phone--front {
    transform: rotate(-3deg) translateX(-38px) translateY(-6px);
  }
  .features__phones-glow {
    width: 220px;
    height: 220px;
  }
}

/* --- Mobile pequeño: ≤ 390px --- */
@media (max-width: 390px) {

  .hero {
    padding: 5.5rem 1.5rem 3.5rem;
  }
  .hero__title {
    font-size: clamp(2.2rem, 10vw, 3rem);
    word-break: keep-all;
  }
  .hero__subtitle {
    max-width: 280px;
  }

  .features {
    padding: 4rem 1.5rem;
  }
  .features__subtitle {
    max-width: 280px;
  }

  .features__phones {
    height: 280px;
  }
  .features__phone {
    width: 125px;
    height: 252px;
    border-radius: 18px;
  }
  .features__phone--back {
    transform: rotate(5deg) translateX(50px) translateY(8px);
  }
  .features__phone--front {
    transform: rotate(-3deg) translateX(-32px) translateY(-5px);
  }
}

/* ===== PROCESO ===== */
.process {
  padding: 7rem 1.5rem;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.process::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 1px; height: 80px;
  background: linear-gradient(to bottom, transparent, rgba(0,255,204,0.25), transparent);
}

.process__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.process__header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.process__eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--g);
}

.process__title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
}

.process__title-accent {
  color: var(--g);
}

.process__subtitle {
  font-size: 1rem;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.7;
}

/* Steps */
.process__steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.process__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 0 1rem;
}

/* Número */
.process__step-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--g);
  margin-bottom: 1rem;
}

/* Línea conectora */
.process__step-line {
  position: absolute;
  top: 72px;
  left: 50%;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, rgba(0,255,204,0.3), rgba(0,255,204,0.1));
  z-index: 0;
}

.process__step:last-child .process__step-line {
  display: none;
}

/* Cuerpo */
.process__step-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

/* Ícono */
.process__step-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 1px solid rgba(0,255,204,0.2);
  background: #060608;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--g);
  flex-shrink: 0;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.process__step:hover .process__step-icon {
  transform: scale(1.18);
  background: #0d201b;
  border-color: rgba(0,255,204,0.5);
  box-shadow: 0 0 20px rgba(0,255,204,0.2);
}

.process__step-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.process__step-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 200px;
}

/* Responsive proceso */
@media (max-width: 900px) {
  .process__steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 2rem;
  }
  .process__step-line {
    display: none;
  }
}

@media (max-width: 500px) {
  .process__steps {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .process__step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 1.25rem;
    padding: 0;
  }
  .process__step-body {
    align-items: flex-start;
    text-align: left;
  }
  .process__step-num {
    display: none;
  }
  .process__step-desc {
    max-width: 100%;
  }
}

/* ===== FAQ ===== */
.faq {
  padding: 7rem 1.5rem;
  position: relative;
  background: var(--bg);
}

.faq::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 1px; height: 80px;
  background: linear-gradient(to bottom, transparent, rgba(0,255,204,0.25), transparent);
}

.faq__inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.faq__header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.faq__eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--g);
}

.faq__title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
}

.faq__title-accent {
  color: var(--g);
}

.faq__subtitle {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
}

/* Lista */
.faq__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq__item {
  border-bottom: 1px solid var(--border);
}

.faq__item:first-child {
  border-top: 1px solid var(--border);
}

/* Botón pregunta */
.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  transition: color 0.2s ease;
}

.faq__question:hover {
  color: var(--g);
}

/* Ícono +/- */
.faq__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--g);
  font-size: 1.2rem;
  line-height: 1;
  transition: background 0.2s, border-color 0.2s, transform 0.3s ease;
  position: relative;
}

/* Barras del + */
.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  background: var(--g);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.faq__icon::before {
  width: 12px;
  height: 1.5px;
}

.faq__icon::after {
  width: 1.5px;
  height: 12px;
}

/* Estado abierto: + → − */
.faq__question[aria-expanded="true"] .faq__icon {
  background: rgba(0,255,204,0.1);
  border-color: rgba(0,255,204,0.4);
  transform: rotate(45deg);
}

/* Respuesta */
.faq__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.faq__answer.is-open {
  grid-template-rows: 1fr;
}

.faq__answer-inner {
  overflow: hidden;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.75;
  padding-bottom: 0;
  transition: padding-bottom 0.35s ease;
}

.faq__answer.is-open .faq__answer-inner {
  padding-bottom: 1.4rem;
}

/* ===== CONTACTO ===== */
.contact {
  padding: 7rem 1.5rem;
  position: relative;
  background: var(--bg);
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 1px; height: 80px;
  background: linear-gradient(to bottom, transparent, rgba(0,255,204,0.25), transparent);
}

/* Glow de fondo */
.contact::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 60%, rgba(0,255,204,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.contact__inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 1;
  text-align: center;
}

.contact__eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--g);
}

.contact__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.contact__title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
}

.contact__title-accent {
  color: var(--g);
  filter: drop-shadow(0 0 16px rgba(0,255,204,0.35));
}

.contact__subtitle {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 480px;
}

/* Botones */
.contact__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 380px;
}

.contact__wa-btn {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 1rem 2rem;
  gap: 0.6rem;
}

.contact__actions .btn--ghost {
  width: 100%;
  justify-content: center;
  font-size: 0.9rem;
}

/* Trust badges */
.contact__trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem 2rem;
}

.contact__trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.contact__trust-item svg {
  color: var(--g);
  flex-shrink: 0;
}

/* ===== WHATSAPP FLOTANTE ===== */
.wa-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 200;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 20px rgba(37, 211, 102, 0.45),
    0 2px 8px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  forced-color-adjust: none;
}

.wa-float:hover {
  transform: scale(1.1);
  box-shadow:
    0 6px 28px rgba(37, 211, 102, 0.6),
    0 2px 8px rgba(0,0,0,0.3);
}

/* Pulso animado */
.wa-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  animation: wa-pulse 2.5s ease-out infinite;
  z-index: -1;
}

@keyframes wa-pulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  70%  { transform: scale(1.5); opacity: 0;   }
  100% { transform: scale(1.5); opacity: 0;   }
}

@media (max-width: 640px) {
  .contact__actions {
    max-width: 100%;
  }
  .contact__trust {
    gap: 0.85rem 1.5rem;
  }
}

/* ===== DARK MODE =====
   Al declarar explícitamente todos los colores aquí, Chrome en Android
   reconoce que el autor manejó el dark mode y deja de aplicar
   su algoritmo de oscurecimiento automático. */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --g:      #00ffcc;
    --g-dim:  rgba(0, 255, 204, 0.12);
    --g-glow: rgba(0, 255, 204, 0.4);
    --bg:     #060608;
    --text:   #e8eaf0;
    --muted:  rgba(232, 234, 240, 0.48);
    --border: rgba(255, 255, 255, 0.07);
  }

  /* Gradiente del H1 — re-declarado para que Chrome no lo oscurezca */
  .hero__title-gradient {
    background: linear-gradient(
      90deg,
      #00c9a0 0%,
      #00ffcc 20%,
      #e0fff8 48%,
      #ffffff 50%,
      #e0fff8 52%,
      #00ffcc 80%,
      #00b38a 100%
    ) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
  }

  /* Botón principal */
  .btn--primary {
    background: #00ffcc !important;
    color: #060608 !important;
  }

  /* Botón ghost */
  .btn--ghost {
    color: #00ffcc !important;
    border-color: rgba(0, 255, 204, 0.4) !important;
    background: transparent !important;
  }

  /* Hamburguesa */
  .nav__burger {
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.07) !important;
  }
  .nav__burger span {
    background: #e8eaf0 !important;
  }

  /* Evita filtros automáticos en imágenes y SVGs */
  img, svg {
    filter: none !important;
  }
}
