/* ============================================================
   PORTAFOLIO — Jack | style.css
   Estilos custom que complementan Tailwind CSS.
   Organización:
     1. Reset / Base
     2. Scrollbar
     3. Navbar
     4. Utilidades de sección
     5. Botones
     6. Hero (orbes, grid, typing)
     7. Sobre mí (code-card, floating-badge, check-icon)
     8. Proyectos (project-card)
     9. Tecnologías (tech-card)
    10. Contacto (contact-card)
    11. Animaciones de scroll (reveal)
    12. Varios
   ============================================================ */


/* ─────────────────────────────────────────
   1. BASE
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;          /* scroll suave nativo */
}

body {
  background-color: #030712;
  color: #f8fafc;
}

/* ─────────────────────────────────────────
   2. SCROLLBAR personalizada
───────────────────────────────────────── */
::-webkit-scrollbar              { width: 6px; }
::-webkit-scrollbar-track        { background: #030712; }
::-webkit-scrollbar-thumb        { background: #22d3ee55; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover  { background: #22d3ee; }


/* ─────────────────────────────────────────
   3. NAVBAR
───────────────────────────────────────── */

/* Estado transparente por defecto → JS agrega .scrolled */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(34, 211, 238, 0.08);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

/* Links de navegación */
.nav-link {
  position: relative;
  color: #94a3b8;
  transition: color 0.2s;
  padding-bottom: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #22d3ee;
  border-radius: 1px;
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #22d3ee;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: #22d3ee;
}

/* Links mobile */
.mobile-link {
  color: #94a3b8;
  font-size: 1.1rem;
  transition: color 0.2s;
}
.mobile-link:hover { color: #22d3ee; }

/* Hamburguesa */
.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: #94a3b8;
  border-radius: 1px;
  transition: all 0.3s ease;
}

/* Animación cuando el menú está abierto */
#menu-btn.open .hamburger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
#menu-btn.open .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(-6px);
}
#menu-btn.open .hamburger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}


/* ─────────────────────────────────────────
   4. UTILIDADES DE SECCIÓN
───────────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

/* Etiqueta pequeña sobre el título */
.section-tag {
  display: inline-block;
  font-family: 'Fira Code', monospace;
  font-size: 0.85rem;
  color: #22d3ee;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: #f1f5f9;
}

.section-subtitle {
  margin-top: 0.75rem;
  color: #64748b;
  font-size: 1rem;
  line-height: 1.7;
}


/* ─────────────────────────────────────────
   5. BOTONES
───────────────────────────────────────── */

/* Primario — relleno cyan */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #22d3ee, #06b6d4);
  color: #030712;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 0 20px rgba(34,211,238,0.25);
  white-space: nowrap;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #67e8f9, #22d3ee);
  box-shadow: 0 0 30px rgba(34,211,238,0.45);
  transform: translateY(-2px);
}

.btn-primary:active { transform: translateY(0); }

/* Secundario — contorno */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: 9999px;
  border: 1.5px solid rgba(34,211,238,0.4);
  color: #22d3ee;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-outline:hover {
  background: rgba(34,211,238,0.08);
  border-color: #22d3ee;
  transform: translateY(-2px);
}


/* ─────────────────────────────────────────
   6. HERO
───────────────────────────────────────── */

/* Texto con degradado */
.gradient-text {
  background: linear-gradient(135deg, #22d3ee 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Orbes de luz en el fondo */
.orb {
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  position: absolute;
}

.orb-cyan   { background: radial-gradient(circle, rgba(34,211,238,0.15) 0%, transparent 70%); }
.orb-purple { background: radial-gradient(circle, rgba(168,85,247,0.12) 0%, transparent 70%); }

/* Cuadrícula de fondo en el hero */
.grid-bg {
  background-image:
    linear-gradient(rgba(34,211,238,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,211,238,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
}


/* ─────────────────────────────────────────
   7. SOBRE MÍ
───────────────────────────────────────── */

/* Tarjeta de código decorativa */
.code-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(34,211,238,0.12);
  backdrop-filter: blur(8px);
  box-shadow:
    0 0 0 1px rgba(34,211,238,0.06),
    0 25px 50px rgba(0,0,0,0.4);
}

/* Badge flotante sobre la tarjeta de código */
.floating-badge {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border: 1.5px solid rgba(34,211,238,0.3);
  box-shadow: 0 0 20px rgba(34,211,238,0.15);
  line-height: 1.2;
}

/* Ícono de check en lista */
.check-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(34,211,238,0.12);
  color: #22d3ee;
  font-size: 0.7rem;
  font-weight: 700;
}


/* ─────────────────────────────────────────
   8. PROYECTOS
───────────────────────────────────────── */

/* Tarjeta contenedor */
.project-card {
  background: #0f172a;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(34,211,238,0.25);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 30px rgba(34,211,238,0.06);
}

/* ── Slider de imágenes ── */
.project-slider {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: #070d1a;
  flex-shrink: 0;
}

.slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.slider-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateX(100%);
  z-index: 0;
  will-change: transform;
}

.slider-img.active {
  transform: translateX(0%);
  z-index: 1;
}

/* Botones prev / next */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(3,7,18,0.70);
  border: 1px solid rgba(34,211,238,0.3);
  color: #22d3ee;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.25s, background 0.25s, border-color 0.25s;
}

.slider-btn.slider-prev { left: 8px; }
.slider-btn.slider-next { right: 8px; }

.project-card:hover .slider-btn { opacity: 1; }

.slider-btn:hover {
  background: rgba(34,211,238,0.18);
  border-color: #22d3ee;
}

/* Puntos indicadores */
.slider-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 10;
}

.slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.slider-dot.active {
  background: #22d3ee;
  transform: scale(1.35);
}

/* Cuerpo de la tarjeta */
.project-body {
  padding: 1.25rem 1.5rem 1rem;
  flex: 1;
}

.project-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 0.5rem;
}

.project-desc {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.65;
  margin-bottom: 1rem;
}

/* Contenedor de etiquetas de tecnología */
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  background: rgba(34,211,238,0.08);
  border: 1px solid rgba(34,211,238,0.2);
  color: #22d3ee;
  font-size: 0.75rem;
  font-family: 'Fira Code', monospace;
}

/* ── Footer creativo con enlace ── */
.project-footer {
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: 'Fira Code', monospace;
  color: #475569;
  text-decoration: none;
  transition: color 0.25s ease, gap 0.25s ease;
  letter-spacing: 0.02em;
}

.project-link .link-arrow {
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
}

.project-link:hover {
  color: #22d3ee;
  gap: 0.75rem;
}

.project-link:hover .link-arrow {
  transform: translateX(4px);
}


/* ─────────────────────────────────────────
   9. TECNOLOGÍAS
───────────────────────────────────────── */
.tech-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  background: #0f172a;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  cursor: default;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.tech-card:hover {
  transform: translateY(-5px) scale(1.03);
  border-color: rgba(34,211,238,0.25);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35), 0 0 20px rgba(34,211,238,0.06);
}

.tech-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(34,211,238,0.15));
  transition: filter 0.25s ease;
}

.tech-card:hover .tech-icon {
  filter: drop-shadow(0 0 12px rgba(34,211,238,0.35));
}

.tech-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  transition: color 0.25s;
}

.tech-card:hover .tech-name { color: #22d3ee; }


/* ─────────────────────────────────────────
   10. CONTACTO
───────────────────────────────────────── */
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 2rem 1.25rem;
  background: #0f172a;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34,211,238,0.2);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

/* Círculo icono */
.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  transition: background 0.25s ease;
}

.contact-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #f1f5f9;
}

.contact-value {
  font-family: 'Fira Code', monospace;
  font-size: 0.78rem;
}


/* ─────────────────────────────────────────
   11. ANIMACIONES DE SCROLL — reveal
   Clase inicial: invisible, desplazada.
   IntersectionObserver agrega .visible.
───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Retraso escalonado para hijos de una grid/flex */
.reveal:nth-child(1) { transition-delay: 0.05s; }
.reveal:nth-child(2) { transition-delay: 0.15s; }
.reveal:nth-child(3) { transition-delay: 0.25s; }
.reveal:nth-child(4) { transition-delay: 0.35s; }
.reveal:nth-child(5) { transition-delay: 0.45s; }
.reveal:nth-child(6) { transition-delay: 0.55s; }
.reveal:nth-child(7) { transition-delay: 0.65s; }
.reveal:nth-child(8) { transition-delay: 0.70s; }


/* ─────────────────────────────────────────
   12. VARIOS
───────────────────────────────────────── */

/* Botón "Volver arriba" — visible por JS */
#back-to-top.show {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

/* Separador decorativo de sección (línea con degradado) */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34,211,238,0.2), transparent);
  margin: 0 auto;
  max-width: 600px;
}

/* Selección de texto personalizada */
::selection {
  background: rgba(34,211,238,0.25);
  color: #f1f5f9;
}


/* ─────────────────────────────────────────
   13. BOTÓN DE IDIOMA (lang-btn)
───────────────────────────────────────── */
.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 9999px;
  background: rgba(34,211,238,0.07);
  border: 1px solid rgba(34,211,238,0.18);
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  line-height: 1;
}
.lang-btn:hover {
  background: rgba(34,211,238,0.14);
  border-color: #22d3ee;
  color: #22d3ee;
}
.lang-flag { font-size: 1rem; }
.lang-label { letter-spacing: 0.03em; }


/* ─────────────────────────────────────────
   14. FOTO DE PERFIL HERO
───────────────────────────────────────── */
.profile-photo-wrap {
  position: relative;
  width: 285px;
  height: 345px;
  padding: 10px;
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(15,23,42,0.96) 0%, rgba(3,7,18,0.88) 100%);
  border: 1px solid rgba(148,163,184,0.1);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.035),
    0 28px 60px rgba(0,0,0,0.55),
    0 0 90px rgba(34,211,238,0.07);
  backdrop-filter: blur(14px);
  isolation: isolate;
  transform: rotate(-4deg);
  animation: profile-float 6s ease-in-out infinite;
  transition: transform 0.45s cubic-bezier(0.34,1.56,0.64,1);
}
.profile-photo-wrap:hover {
  transform: rotate(0deg) scale(1.03);
}
/* Glow ambiental detrás de la tarjeta */
.profile-photo-wrap::before {
  content: '';
  position: absolute;
  inset: -40px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at 35% 45%,
    rgba(34,211,238,0.14),
    rgba(168,85,247,0.09) 48%,
    transparent 68%
  );
  filter: blur(22px);
  pointer-events: none;
}
/* Decoración código top-right */
.profile-photo-wrap::after {
  content: '</>';
  position: absolute;
  top: 13px;
  right: 15px;
  font-family: 'Fira Code', monospace;
  font-size: 0.62rem;
  color: rgba(34,211,238,0.55);
  z-index: 3;
  pointer-events: none;
  letter-spacing: 0.06em;
}
.profile-photo {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.06);
  display: block;
  z-index: 2;
}
/* Panel sombra desplazada (antes era el anillo giratorio) */
.profile-ring {
  position: absolute;
  inset: 14px -16px -16px 14px;
  border-radius: 30px;
  border: 1px solid rgba(34,211,238,0.2);
  background: linear-gradient(155deg, rgba(34,211,238,0.055), rgba(168,85,247,0.025));
  z-index: 1;
  pointer-events: none;
}
@keyframes profile-float {
  0%, 100% { transform: rotate(-4deg) translateY(0px);   }
  50%       { transform: rotate(-2deg) translateY(-12px); }
}
@keyframes profile-float-straight {
  0%, 100% { transform: translateY(0px);   }
  50%       { transform: translateY(-10px); }
}
.profile-badge {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 16px;
  border-radius: 9999px;
  background: #0f172a;
  border: 1px solid rgba(34,211,238,0.22);
  white-space: nowrap;
  font-size: 0.78rem;
  color: #94a3b8;
  box-shadow: 0 4px 18px rgba(0,0,0,0.4);
}
@media (max-width: 640px) {
  .profile-photo-wrap {
    width: 230px;
    height: 278px;
    padding: 8px;
    border-radius: 26px;
    transform: rotate(0deg);
    animation: profile-float-straight 6s ease-in-out infinite;
  }
  .profile-photo-wrap:hover {
    transform: scale(1.02);
  }
  .profile-ring {
    inset: 10px -12px -12px 10px;
  }
}


/* ─────────────────────────────────────────
   15. STAT CARDS (sección About)
───────────────────────────────────────── */
.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 10px;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  backdrop-filter: blur(4px);
  transition: border-color 0.25s, transform 0.25s;
}
.stat-card:hover {
  border-color: rgba(34,211,238,0.3);
  transform: translateY(-3px);
}
.stat-num  { font-size: 1.35rem; font-weight: 800; color: #22d3ee; line-height: 1; }
.stat-label { font-size: 0.68rem; color: #64748b; text-align: center; margin-top: 4px; }


/* ─────────────────────────────────────────
   16. PROJECT CARD — imagen
───────────────────────────────────────── */
.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ─────────────────────────────────────────
   17. TESTIMONIAL CARDS
───────────────────────────────────────── */
.testimonial-card {
  background: #0f172a;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 18px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.testimonial-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34,211,238,0.22);
  box-shadow: 0 18px 48px rgba(0,0,0,0.45);
}
.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(34,211,238,0.2);
  flex-shrink: 0;
}
.stars { color: #fbbf24; letter-spacing: 2px; font-size: 0.85rem; }


/* ─────────────────────────────────────────
   18. FORMULARIO DE CONTACTO
───────────────────────────────────────── */
.contact-form {
  background: #0f172a;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form-input {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 11px 15px;
  color: #f1f5f9;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  resize: none;
}
.form-input:focus {
  border-color: rgba(34,211,238,0.5);
  box-shadow: 0 0 0 3px rgba(34,211,238,0.09);
}
.form-input::placeholder { color: #475569; }
.form-input.invalid {
  border-color: rgba(239,68,68,0.6);
  box-shadow: 0 0 0 3px rgba(239,68,68,0.08);
}

/* TYPE BADGES — selector de tipo de proyecto */
.type-badge {
  padding: 5px 13px;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.1);
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  white-space: nowrap;
}
.type-badge:hover {
  border-color: rgba(34,211,238,0.4);
  color: #22d3ee;
}
.type-badge.active {
  background: rgba(34,211,238,0.1);
  border-color: #22d3ee;
  color: #22d3ee;
}

/* Mensaje de éxito */
.form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  color: #4ade80;
  font-size: 0.875rem;
}


/* ─────────────────────────────────────────
   19. PANEL LATERAL DE CONTACTO
───────────────────────────────────────── */
.contact-info-card {
  background: #0f172a;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 18px;
  padding: 1.4rem;
}

.contact-info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 8px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}
.contact-info-row:hover { background: rgba(255,255,255,0.03); }

.contact-info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
}


/* ─────────────────────────────────────────
   20. SOCIAL PILLS
───────────────────────────────────────── */
.social-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 12px 6px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
  text-align: center;
}
.social-pill:hover {
  background: rgba(34,211,238,0.08);
  border-color: rgba(34,211,238,0.22);
  color: #22d3ee;
  transform: translateY(-3px);
}


/* ─────────────────────────────────────────
   21. AVAILABILITY CARD
───────────────────────────────────────── */
.availability-card {
  background: rgba(34,197,94,0.05);
  border: 1px solid rgba(34,197,94,0.15);
  border-radius: 14px;
  padding: 1rem 1.25rem;
}
.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse-green 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-green {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50%       { opacity: 0.8; transform: scale(1.2); box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}


/* ─────────────────────────────────────────
   22. REACH-OUT CONTACT — tarjeta dividida
───────────────────────────────────────── */

/* Contenedor principal */
.reach-card {
  display: grid;
  grid-template-columns: 5fr 7fr;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 40px 100px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.04);
}

@media (max-width: 900px) {
  .reach-card { grid-template-columns: 1fr; }
}

/* ── Panel izquierdo ── */
.reach-left {
  padding: 3rem 2.5rem;
  background: linear-gradient(160deg, #0d1829 0%, #060d1a 100%);
  border-right: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.reach-heading {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #f1f5f9;
  line-height: 1.2;
}

.reach-subtext {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.7;
}

/* Lista de info */
.reach-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.reach-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.reach-info-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.reach-icon-green  { background: rgba(74,222,128,0.08);  color: #4ade80; border: 1px solid rgba(74,222,128,0.15); }
.reach-icon-cyan   { background: rgba(34,211,238,0.08);  color: #22d3ee; border: 1px solid rgba(34,211,238,0.15); }
.reach-icon-purple { background: rgba(192,132,252,0.08); color: #c084fc; border: 1px solid rgba(192,132,252,0.15); }

.reach-info-label {
  display: block;
  font-size: 0.68rem;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: 'Fira Code', monospace;
  margin-bottom: 2px;
}

.reach-info-value {
  display: block;
  font-size: 0.875rem;
  color: #e2e8f0;
  font-weight: 500;
}

/* Badge disponibilidad */
.reach-availability {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(74,222,128,0.05);
  border: 1px solid rgba(74,222,128,0.18);
  border-radius: 9999px;
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
  color: #4ade80;
  font-weight: 500;
  width: fit-content;
}

.reach-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  animation: pulse-green 2s ease-in-out infinite;
}

/* Fila de redes sociales */
.reach-social-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.reach-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  color: #475569;
  transition: all 0.2s ease;
  text-decoration: none;
}

.reach-social-icon:hover {
  background: rgba(34,211,238,0.08);
  border-color: rgba(34,211,238,0.25);
  color: #22d3ee;
  transform: translateY(-2px);
}

/* ── Panel derecho ── */
.reach-right {
  padding: 3rem 2.5rem;
  background: #070e1d;
}

.reach-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  height: 100%;
}

.reach-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 480px) {
  .reach-form-grid           { grid-template-columns: 1fr; }
  .reach-left, .reach-right  { padding: 2rem 1.5rem; }
}

/* Override de inputs */
.reach-input {
  background: rgba(255,255,255,0.025) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 10px !important;
  padding: 0.75rem 1rem !important;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease !important;
}

.reach-input:focus {
  border-color: rgba(34,211,238,0.35) !important;
  background: rgba(34,211,238,0.025) !important;
  box-shadow: 0 0 0 3px rgba(34,211,238,0.07) !important;
}

.reach-input.invalid {
  border-color: rgba(248,113,113,0.55) !important;
}

/* Botón enviar */
.reach-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.95rem 1.5rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #22d3ee, #06b6d4);
  color: #030712;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 24px rgba(34,211,238,0.22);
  margin-top: 0.25rem;
}

.reach-submit-btn:hover {
  background: linear-gradient(135deg, #67e8f9, #22d3ee);
  box-shadow: 0 6px 36px rgba(34,211,238,0.40);
  transform: translateY(-2px);
}

.reach-submit-btn:active  { transform: translateY(0); }

.reach-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}


/* ─────────────────────────────────────────
   23. ABOUT — Órbita de stack
───────────────────────────────────────── */

/* Escena completa */
.about-orbit-scene {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
  margin: 0 auto;
}

/* Núcleo central */
.orbit-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d1829, #111827);
  border: 2px solid rgba(34,211,238,0.35);
  box-shadow:
    0 0 0 8px rgba(34,211,238,0.04),
    0 0 30px rgba(34,211,238,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

/* Anillos orbitales */
.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px dashed rgba(34,211,238,0.12);
  transform: translate(-50%, -50%);
  animation: orbit-spin linear infinite;
}

.orbit-ring-1 {
  width: 224px;
  height: 224px;
  animation-duration: 18s;
}

.orbit-ring-2 {
  width: 380px;
  height: 380px;
  animation-duration: 30s;
  animation-direction: reverse;
}

@keyframes orbit-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Punto orbitante — posicionado por --deg */
.orbit-ring-1 .orbit-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  margin-left: -24px;
  transform: rotate(var(--deg)) translateX(112px) rotate(calc(-1 * var(--deg)));
}

.orbit-ring-2 .orbit-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 56px;
  margin-top: -28px;
  margin-left: -28px;
  transform: rotate(var(--deg)) translateX(190px) rotate(calc(-1 * var(--deg)));
}

/* Burbuja circular */
.orbit-bubble {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(9,17,34,0.92);
  border: 1.5px solid rgba(34,211,238,0.18);
  box-shadow: 0 4px 20px rgba(0,0,0,0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: default;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  position: relative;
  z-index: 2;
}

.orbit-bubble-lg {
  width: 60px;
  height: 60px;
}

.orbit-bubble:hover {
  border-color: rgba(34,211,238,0.55);
  box-shadow: 0 0 18px rgba(34,211,238,0.22), 0 4px 20px rgba(0,0,0,0.4);
  transform: scale(1.15);
}

.orbit-bubble img,
.orbit-bubble svg {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: drop-shadow(0 0 3px rgba(34,211,238,0.15));
  transition: filter 0.25s;
}

.orbit-bubble-lg img,
.orbit-bubble-lg svg {
  width: 26px;
  height: 26px;
}

.orbit-bubble:hover img,
.orbit-bubble:hover svg {
  filter: drop-shadow(0 0 8px rgba(34,211,238,0.45));
}

.orbit-bubble span {
  font-size: 8px;
  font-weight: 700;
  color: #475569;
  line-height: 1;
  transition: color 0.25s;
  white-space: nowrap;
}

.orbit-bubble:hover span { color: #94a3b8; }

@media (max-width: 1024px) {
  .about-orbit-scene { max-width: 400px; }
  .orbit-ring-1 { width: 188px; height: 188px; }
  .orbit-ring-2 { width: 320px; height: 320px; }
  .orbit-ring-1 .orbit-dot { transform: rotate(var(--deg)) translateX(94px)  rotate(calc(-1 * var(--deg))); }
  .orbit-ring-2 .orbit-dot { transform: rotate(var(--deg)) translateX(160px) rotate(calc(-1 * var(--deg))); }
}

@media (max-width: 640px) {
  .about-orbit-scene { max-width: 320px; }
  .orbit-ring-1 { width: 150px; height: 150px; }
  .orbit-ring-2 { width: 258px; height: 258px; }
  .orbit-ring-1 .orbit-dot { transform: rotate(var(--deg)) translateX(75px)  rotate(calc(-1 * var(--deg))); }
  .orbit-ring-2 .orbit-dot { transform: rotate(var(--deg)) translateX(129px) rotate(calc(-1 * var(--deg))); }
  .orbit-bubble     { width: 40px; height: 40px; }
  .orbit-bubble-lg  { width: 46px; height: 46px; }
  .orbit-bubble img,    .orbit-bubble svg    { width: 18px; height: 18px; }
  .orbit-bubble-lg img, .orbit-bubble-lg svg { width: 22px; height: 22px; }
}
