/* ===========================
   VARIABLES & RESET
   =========================== */
:root {
  --bg-primary: #090b11;
  --bg-secondary: #0f121a;
  --border-color: #20293c;
  --accent-cyan: #00eaff;
  --accent-violet: #9947eb;
  --text-primary: #eef2f7;
  --text-secondary: #7585a3;
  --whatsapp: #25d366;
  --font-title: 'Rajdhani', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --container-max: 1280px;
  --radius: 12px;
  --transition: 0.3s ease;
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);

  /* defaults globales del sistema accent (las clases svc--* sobreescriben localmente) */
  --acc: rgb(0, 234, 255);
  --acc-rgb: 0, 220, 255;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;  /* compensa la altura del navbar fijo en los anchor scrolls */
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

/* ===========================
   UTILS
   =========================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.text-cyan  { color: var(--accent-cyan); }
.text-violet { color: var(--accent-violet); }

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn--violet {
  background: var(--accent-violet);
  color: #fff;
  border-color: var(--accent-violet);
}

.btn--violet:hover {
  background: transparent;
  color: var(--accent-violet);
  box-shadow: 0 0 20px rgba(155, 48, 255, 0.4);
}

.btn--outline {
  background: transparent;
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.btn--outline:hover {
  background: rgba(0, 229, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

.btn--full {
  width: 100%;
  text-align: center;
}

.badge {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 4px;
  background: rgba(0, 234, 255, 0.06);
  border: 1px solid rgba(0, 234, 255, 0.25);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.badge--outline {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--border-color);
  color: var(--text-secondary);
}

.section {
  padding: 100px 0;
}

.section__header {
  text-align: center;
  margin-bottom: 64px;
}

.section__title {
  font-family: var(--font-title);
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  margin: 18px 0 14px;
  letter-spacing: 0.02em;
}

.section__subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto;
}

/* ===========================
   FADE-IN ANIMATION
   =========================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   NAVBAR
   =========================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(10, 10, 18, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 10, 18, 0.95);
  border-bottom-color: var(--border-color);
  padding: 10px 0;
}

.navbar__inner {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 28px;
  width: auto;
  display: block;
  transition: filter var(--transition);
}

.navbar__logo:hover .logo-img {
  filter: drop-shadow(0 0 10px rgba(217, 30, 71, 0.55));
}

.navbar.scrolled .logo-img {
  height: 26px;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.navbar__links a {
  font-family: var(--font-title);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.navbar__links a:hover {
  color: var(--text-primary);
}

.navbar__links a.navbar__cta {
  display: inline-block;
  padding: 9px 18px;
  border: 1.5px solid rgb(40, 224, 130);
  border-radius: 6px;
  background: transparent;
  color: rgb(40, 224, 130);
  font-family: var(--font-title);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.3s var(--ease-standard), box-shadow 0.3s var(--ease-standard), color 0.3s var(--ease-standard);
}

.navbar__links a.navbar__cta:hover {
  background: rgba(40, 224, 130, 0.1);
  color: rgb(40, 224, 130);
  box-shadow: 0 0 18px rgba(40, 224, 130, 0.35);
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition);
}

/* ===========================
   PARTICLE CANVAS (full page)
   =========================== */
#particleCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.35;
}

/* ===========================
   HERO
   =========================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 100px 0 60px;
}

.hero.is-orange {
  --accent: rgb(255, 140, 32);
  --accent-05: rgba(255, 150, 40, 0.05);
  --accent-08: rgba(255, 150, 40, 0.08);
  --accent-30: rgba(255, 150, 40, 0.3);
  --accent-40: rgba(255, 150, 40, 0.4);
  --accent-50: rgba(255, 150, 40, 0.5);
}

.hero.is-cyan {
  --accent: rgb(0, 234, 255);
  --accent-05: rgba(0, 220, 255, 0.05);
  --accent-08: rgba(0, 220, 255, 0.08);
  --accent-30: rgba(0, 220, 255, 0.3);
  --accent-40: rgba(0, 220, 255, 0.4);
  --accent-50: rgba(0, 220, 255, 0.5);
}

.hero.is-green {
  --accent: rgb(40, 224, 130);
  --accent-05: rgba(48, 230, 138, 0.05);
  --accent-08: rgba(48, 230, 138, 0.08);
  --accent-30: rgba(48, 230, 138, 0.3);
  --accent-40: rgba(48, 230, 138, 0.4);
  --accent-50: rgba(48, 230, 138, 0.5);
}

.hero.is-pink {
  --accent: rgb(224, 86, 198);
  --accent-05: rgba(230, 96, 208, 0.05);
  --accent-08: rgba(230, 96, 208, 0.08);
  --accent-30: rgba(230, 96, 208, 0.3);
  --accent-40: rgba(230, 96, 208, 0.4);
  --accent-50: rgba(230, 96, 208, 0.5);
}

.hero.is-violet {
  --accent: rgb(190, 142, 250);
  --accent-05: rgba(195, 150, 255, 0.05);
  --accent-08: rgba(195, 150, 255, 0.08);
  --accent-30: rgba(195, 150, 255, 0.3);
  --accent-40: rgba(195, 150, 255, 0.4);
  --accent-50: rgba(195, 150, 255, 0.5);
}

.hero.is-red {
  --accent: rgb(255, 71, 71);
  --accent-05: rgba(255, 85, 85, 0.05);
  --accent-08: rgba(255, 85, 85, 0.08);
  --accent-30: rgba(255, 85, 85, 0.3);
  --accent-40: rgba(255, 85, 85, 0.4);
  --accent-50: rgba(255, 85, 85, 0.5);
}

.hero__grid {
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

/* --- Columna izquierda: texto --- */
.hero__content {
  position: relative;
  z-index: 1;
  will-change: opacity, transform;
}

.hero__badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3.6px;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding: 4px 12px;
  border-radius: 9999px;
  color: var(--accent);
  background: var(--accent-08);
  border: 1px solid var(--accent-30);
}

.hero__title {
  font-family: var(--font-title);
  font-size: 72px;
  font-weight: 700;
  line-height: 76px;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0;
}

.hero__title span {
  color: var(--accent);
}

.hero__desc {
  font-family: 'Titillium Web', sans-serif;
  font-size: 18px;
  line-height: 29.25px;
  color: rgb(133, 146, 173);
  margin: 24px 0 32px;
  max-width: 500px;
}

.hero__btns {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.hero__btn-primary,
.hero__btn-secondary {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  border-radius: 8px;
  padding: 12px 32px;
  cursor: pointer;
  transition: transform 0.3s;
}

.hero__btn-primary {
  background: var(--accent);
  color: rgb(9, 11, 17);
  border: none;
  box-shadow: 0 0 20px 0 var(--accent-50);
}

.hero__btn-secondary {
  background: var(--accent-05);
  color: var(--accent);
  border: 1px solid var(--accent-30);
}

.hero__btn-primary:hover,
.hero__btn-secondary:hover {
  transform: scale(1.05);
}

.hero__dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 5;
}

.hero__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s;
}

.hero__dot.active {
  width: 40px;
  background: var(--accent);
}

.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: color 0.25s ease, transform 0.25s ease;
  z-index: 5;
}

.hero__arrow svg {
  width: 28px;
  height: 28px;
  display: block;
}

.hero__arrow:hover {
  color: var(--accent);
}

.hero__arrow--prev {
  left: 24px;
}

.hero__arrow--next {
  right: 24px;
}

.hero__arrow--prev:hover {
  transform: translateY(-50%) translateX(-3px);
}

.hero__arrow--next:hover {
  transform: translateY(-50%) translateX(3px);
}

/* --- Columna derecha: imagen --- */
.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__galaxy {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1440px;
  height: 1440px;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}

.hero__image-wrap {
  position: relative;
  width: 624px;
  height: 351px;
  z-index: 1;
  will-change: opacity, transform;
  animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-16px); }
}

.hero__glow {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  border: 1px solid var(--accent-40);
  box-shadow: 0 0 60px 0 var(--accent-40), inset 0 0 40px 0 var(--accent-05);
}

.hero__dashed {
  position: absolute;
  inset: -12px;
  opacity: 0.2;
  border: 1px dashed var(--accent);
}

.hero__img-stack {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.hero__img--active {
  opacity: 1;
}

/* ===========================
   IMG BRACKET (clip angular)
   =========================== */
.img-bracket {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.15);
  transition: box-shadow var(--transition);
}

.img-bracket:hover {
  box-shadow: 0 0 60px rgba(0, 229, 255, 0.3);
}

.img-bracket img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-bracket::before,
.img-bracket::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--accent-cyan);
  border-style: solid;
  z-index: 2;
}

.img-bracket::before {
  top: 6px;
  left: 6px;
  border-width: 2px 0 0 2px;
}

.img-bracket::after {
  bottom: 6px;
  right: 6px;
  border-width: 0 2px 2px 0;
}

/* ===========================
   SERVICIOS
   =========================== */
.servicios {
  position: relative;
  padding: 56px 24px;
  background: transparent;
}

.section-bg-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(at 50% 0%, rgba(0, 220, 255, 0.04) 0%, transparent 60%);
}

.servicios__inner {
  position: relative;
  z-index: 10;
  max-width: 1152px;
  margin: 0 auto;
}

/* --- Encabezado --- */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3.6px;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding: 4px 12px;
  border-radius: 9999px;
  color: rgb(0, 234, 255);
  background: rgba(0, 220, 255, 0.06);
  border: 1px solid rgba(0, 220, 255, 0.25);
}

.section-title {
  font-family: var(--font-title);
  font-size: 48px;
  font-weight: 700;
  line-height: 48px;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0;
}

.section-title span {
  color: rgb(0, 234, 255);
}

.section-subtitle {
  font-family: var(--font-title);
  font-size: 18px;
  line-height: 28px;
  color: rgb(200, 210, 230);
  max-width: 576px;
  margin: 12px auto 0;
}

/* --- Grid --- */
/* --- Tarjeta glass (compartida con el formulario de contacto) --- */
.glass-card {
  background: rgba(10, 15, 30, 0.7);
  border: 1px solid rgba(0, 255, 255, 0.12);
  border-radius: 12px;
  padding: 32px;
  cursor: default;
  transition: border-color 0.3s, box-shadow 0.3s, opacity 0.6s ease, transform 0.6s ease;
}

.glass-card:hover {
  border-color: rgba(0, 255, 255, 0.4);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.15), 0 8px 32px rgba(0, 0, 0, 0.4);
}

.tech-heading {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 12px;
}

/* --- Acentos por servicio (mismos colores que los slides del hero) --- */
.svc--cyan   { --acc: rgb(0, 234, 255);   --acc-rgb: 0, 220, 255; }
.svc--green  { --acc: rgb(40, 224, 130);  --acc-rgb: 48, 230, 138; }
.svc--orange { --acc: rgb(255, 140, 32);  --acc-rgb: 255, 150, 40; }
.svc--pink   { --acc: rgb(224, 86, 198);  --acc-rgb: 230, 96, 208; }
.svc--violet { --acc: rgb(190, 142, 250); --acc-rgb: 195, 150, 255; }
.svc--red    { --acc: rgb(255, 71, 71);   --acc-rgb: 255, 85, 85; }

/* --- Tabs --- */
.svc-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 12px;   /* row-gap | column-gap — más aire entre filas cuando wrappea */
  margin-bottom: 40px;
}

.svc-tab {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 20px;
  border-radius: 9999px;
  cursor: pointer;
  white-space: nowrap;
  color: var(--acc);
  background: rgba(var(--acc-rgb), 0.08);
  border: 1px solid rgba(var(--acc-rgb), 0.4);
  transition: background 0.25s var(--ease-standard), box-shadow 0.25s var(--ease-standard), color 0.25s var(--ease-standard);
}

.svc-tab:hover {
  background: rgba(var(--acc-rgb), 0.18);
}

.svc-tab.active {
  background: var(--acc);
  color: rgb(9, 11, 17);
  box-shadow: 0 0 18px rgba(var(--acc-rgb), 0.5);
}

/* --- Panel --- */
.svc-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px;
  border-radius: 16px;
  background: rgba(10, 15, 30, 0.7);
  border: 1px solid rgba(var(--acc-rgb), 0.3);
  box-shadow: 0 0 45px rgba(var(--acc-rgb), 0.12);
  transition: border-color 0.4s var(--ease-standard), box-shadow 0.4s var(--ease-standard);
}

.svc-panel__content {
  transition: opacity 0.25s var(--ease-standard);
}

/* --- Columna izquierda --- */
.svc-icon {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--acc);
  background: rgba(var(--acc-rgb), 0.1);
  border: 1px solid rgba(var(--acc-rgb), 0.3);
  margin-bottom: 20px;
}

.svc-icon svg {
  width: 30px;
  height: 30px;
}

.svc-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--acc);
  margin-bottom: 10px;
}

.svc-title {
  font-family: var(--font-title);
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 14px;
}

.svc-desc {
  font-family: var(--font-title);
  font-size: 15px;
  line-height: 24px;
  color: rgb(200, 210, 230);
  margin-bottom: 20px;
}

.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.svc-tag {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 6px;
  color: var(--acc);
  background: rgba(var(--acc-rgb), 0.08);
  border: 1px solid rgba(var(--acc-rgb), 0.25);
}

.svc-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--acc);
  text-decoration: none;
}

.svc-cta:hover {
  text-decoration: underline;
}

/* --- Columna derecha: carrusel --- */
.svc-panel__carousel {
  position: relative;
}

.svc-carousel {
  position: static;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(var(--acc-rgb), 0.3);
  box-shadow: 0 0 30px rgba(var(--acc-rgb), 0.12);
}

.svc-carousel__track {
  display: flex;
  transition: transform 0.4s var(--ease-standard);
}

.svc-slide {
  flex: 0 0 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(var(--acc-rgb), 0.32) 0%, rgba(var(--acc-rgb), 0.07) 100%);
  transition: background 0.4s var(--ease-standard);
}

.svc-slide--img {
  background: rgb(0, 0, 0);
}

.svc-slide--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.svc-arrow {
  position: absolute;
  top: auto;
  bottom: 0;
  transform: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: var(--acc);
  background: transparent;
  border: none;
  transition: opacity 0.2s var(--ease-standard);
}

.svc-arrow:hover {
  opacity: 0.6;
}

.svc-arrow--prev { left: 0; }
.svc-arrow--next { right: 0; }

.svc-cdots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  min-height: 40px;
}

.svc-cdot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  background: rgba(var(--acc-rgb), 0.3);
  transition: all 0.3s var(--ease-standard);
}

.svc-cdot.active {
  width: 24px;
  background: var(--acc);
}

/* ===========================
   PORTAFOLIO + MODAL
   =========================== */
.portfolio-section {
  position: relative;
  padding: 48px 24px;
  background: transparent;
}

.portfolio-section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(at 50% 100%, rgba(150, 80, 255, 0.05) 0%, transparent 60%);
}

.portfolio-container {
  position: relative;
  z-index: 10;
  max-width: 1152px;
  margin: 0 auto;
}

/* --- Encabezado --- */
.portfolio-header {
  text-align: center;
  margin-bottom: 40px;
}

.portfolio-badge {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3.6px;
  text-transform: uppercase;
  color: rgb(166, 94, 237);
  background: rgba(150, 80, 255, 0.06);
  border: 1px solid rgba(150, 80, 255, 0.25);
  border-radius: 9999px;
  padding: 4px 12px;
  margin-bottom: 16px;
}

.portfolio-title {
  font-size: 48px;
  line-height: 48px;
  letter-spacing: 2.4px;
  color: rgb(255, 255, 255);
  margin: 0 0 16px;
}

.portfolio-subtitle {
  font-family: var(--font-title);
  font-size: 18px;
  line-height: 28px;
  color: rgb(200, 210, 230);
  max-width: 576px;
  margin: 0 auto 40px;
  text-align: center;
}

/* --- Barra de filtros --- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 8px;   /* row-gap | column-gap — más aire entre filas cuando wrappea */
  justify-content: center;
  margin-bottom: 40px;
}

.filter-btn {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 20px;
  border-radius: 9999px;
  cursor: pointer;
  white-space: nowrap;
  color: var(--acc);
  background: rgba(var(--acc-rgb), 0.08);
  border: 1px solid rgba(var(--acc-rgb), 0.4);
  transition: background 0.25s var(--ease-standard),
              box-shadow 0.25s var(--ease-standard),
              color 0.25s var(--ease-standard);
}

.filter-btn:hover {
  background: rgba(var(--acc-rgb), 0.18);
}

.filter-btn.active {
  background: var(--acc);
  color: rgb(9, 11, 17);
  box-shadow: 0 0 18px rgba(var(--acc-rgb), 0.5);
}

/* Botón "Todos" — variante neutra en gris claro */
.filter-btn--gray {
  --acc: rgb(200, 210, 230);
  --acc-rgb: 200, 210, 230;
}

/* --- Grid --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* --- Botón "Ver más" (oculto en desktop, visible en mobile vía media query) --- */
.portfolio-show-more {
  display: none;
  margin: 28px auto 0;
  padding: 11px 28px;
  border-radius: 9999px;
  background: transparent;
  border: 1px solid rgba(200, 210, 230, 0.4);
  color: rgb(200, 210, 230);
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s var(--ease-standard),
              border-color 0.25s var(--ease-standard);
}

.portfolio-show-more:hover {
  background: rgba(200, 210, 230, 0.1);
  border-color: rgba(200, 210, 230, 0.7);
}

.portfolio-show-more.is-hidden {
  display: none !important;
}

/* --- Tarjeta de proyecto --- */
.project-card {
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(var(--acc-rgb), 0.25);
  transition: opacity 0.3s ease, transform 0.3s ease,
              border-color 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  border-color: rgba(var(--acc-rgb), 0.5);
  box-shadow: 0 0 22px rgba(var(--acc-rgb), 0.2),
              0 8px 32px rgba(0, 0, 0, 0.4);
}

.card-img-wrapper {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: rgb(0, 0, 0);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-standard);
}

.project-card:hover .card-img {
  transform: scale(1.1);
}

.card-img-gradient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(10, 14, 28, 0.8) 0%, transparent 40%);
}

.card-hover-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 8, 20, 0.7);
  opacity: 0;
  transition: opacity 0.3s var(--ease-standard);
  pointer-events: none;
}

.project-card:hover .card-hover-overlay {
  opacity: 1;
}

.card-expand-icon {
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  background: rgba(var(--acc-rgb), 0.2);
  border: 1px solid var(--acc);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--acc);
}

.card-content {
  padding: 16px;
  background: transparent;
}

.card-title {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 600;
  line-height: 17.5px;
  margin: 0 0 4px;
  color: var(--acc);
}

.card-category {
  display: block;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: rgb(110, 125, 150);
  line-height: 16px;
}

/* --- Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;            /* por encima de navbar (1000) y WhatsApp float (2000) */
  overflow-y: auto;
  padding: 16px;
  background: rgba(5, 8, 20, 0.92);
  display: none;
  align-items: flex-start;
  justify-content: center;
}

.modal-overlay.is-open {
  display: flex;
}

.modal-centerer {
  display: flex;
  min-height: 100%;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 760px;
  max-height: calc(100vh - 32px);
  border-radius: 12px;
  overflow: hidden;
  background: rgb(13, 16, 23);
  border: 1px solid rgba(var(--acc-rgb), 0.4);
  box-shadow: 0 0 30px rgba(var(--acc-rgb), 0.15);
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  animation: modalIn 0.25s var(--ease-standard) forwards;
}

.modal-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--acc-rgb), 0.4) transparent;
}

.modal-scroll::-webkit-scrollbar {
  width: 8px;
}
.modal-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.modal-scroll::-webkit-scrollbar-thumb {
  background: rgba(var(--acc-rgb), 0.35);
  border-radius: 9999px;
}

.modal-header {
  padding: 24px 64px 18px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-image-container {
  position: relative;
  width: 100%;
  background: rgb(8, 10, 16);
  min-height: 240px;
}

.modal-image-container.is-loading::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.02) 0%,
    rgba(var(--acc-rgb), 0.08) 50%,
    rgba(255, 255, 255, 0.02) 100%
  );
  background-size: 200% 100%;
  animation: modalSkeleton 1.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes modalSkeleton {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.modal-long-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Video embed (YouTube). Para Shorts (portrait 9:16) el iframe se centra
   y ocupa la altura útil del viewport con franjas negras a los costados. */
.modal-image-container.is-video {
  background: rgb(0, 0, 0);
  min-height: 0;
}

.modal-video-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(0, 0, 0);
}

.modal-video {
  border: 0;
  display: block;
}

/* Video horizontal por defecto (16:9) */
.modal-image-container.is-video:not(.is-video--portrait) .modal-video-wrap {
  aspect-ratio: 16 / 9;
}
.modal-image-container.is-video:not(.is-video--portrait) .modal-video {
  width: 100%;
  height: 100%;
}

/* Video portrait (YouTube Shorts 9:16): se adapta al alto disponible */
.modal-image-container.is-video--portrait .modal-video-wrap {
  height: calc(100vh - 140px);
  max-height: 80vh;
}
.modal-image-container.is-video--portrait .modal-video {
  height: 100%;
  aspect-ratio: 9 / 16;
  width: auto;
  max-width: 100%;
}

/* Modal angosto al ancho del Short en desktop — sin franjas negras laterales */
@media (min-width: 641px) {
  .modal-overlay.has-portrait-video .modal-card {
    max-width: min(760px, calc((100vh - 140px) * 9 / 16));
  }
  .modal-overlay.has-portrait-video .modal-image-container.is-video--portrait .modal-video {
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 16;
  }
  .modal-overlay.has-portrait-video .modal-image-container.is-video--portrait .modal-video-wrap {
    height: auto;
    max-height: none;
  }
  /* No hay scroll en este modo (el video entra entero), así que ocultamos el scrollbar
     para que no deje un margen del lado derecho */
  .modal-overlay.has-portrait-video .modal-scroll {
    overflow-y: hidden;
  }
}

/* Utilidad: visualmente oculto pero accesible para lectores de pantalla */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgb(255, 255, 255);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s var(--ease-standard);
}

.modal-close:hover { transform: scale(1.1); }

.modal-category {
  display: block;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--acc);
  margin-bottom: 8px;
  line-height: 16px;
}

.modal-title {
  font-size: 24px;
  line-height: 32px;
  letter-spacing: 1.2px;
  color: rgb(255, 255, 255);
  margin: 0;
}

/* --- Responsive Portafolio + Modal --- */
@media (max-width: 1024px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .portfolio-section { padding: 40px 16px; }
  .portfolio-title   { font-size: 36px; line-height: 40px; }
  .portfolio-grid    { gap: 12px; }      /* mantiene 2 columnas heredadas del breakpoint anterior */
  .filter-bar        { gap: 12px 6px; }
  .filter-btn        { font-size: 13px; padding: 10px 12px; }

  /* Colapso de cards extras — visible solo en mobile */
  .portfolio-grid.is-collapsed .project-card.is-extra {
    display: none;
  }

  .portfolio-show-more {
    display: block;
  }

  /* Modal full-bleed en mobile: aprovecha toda la pantalla */
  .modal-overlay {
    padding: 0;
    align-items: stretch;
    overflow: hidden;
  }
  .modal-centerer {
    align-items: stretch;
    min-height: 100vh;
    min-height: 100dvh;
    height: 100vh;
    height: 100dvh;
  }
  .modal-card {
    margin: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    max-height: none;
    height: 100%;
    min-height: 0;
  }
  .modal-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }

  .modal-header {
    padding: 20px 60px 16px 20px;
  }
}

/* ===========================
   SOBRE NOSOTROS (#about)
   =========================== */
#about {
  position: relative;
  padding: 56px 24px;
  background: transparent;
  overflow: hidden;   /* contiene la galaxia */
}

.about-bg-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(at 20% 50%, rgba(0, 220, 255, 0.04) 0%, rgba(0, 0, 0, 0) 60%);
}

.about-inner {
  position: relative;
  z-index: 10;
  max-width: 1152px;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* --- Columna izquierda — imagen tipo hero con galaxia detrás --- */
.about-image-col {
  display: flex;
  justify-content: center;
}

.about-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-galaxy {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1440px;
  height: 1440px;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}

.about-image-wrap {
  position: relative;
  width: 624px;
  height: 351px;
  z-index: 1;
  will-change: opacity, transform;
  animation: heroFloat 6s ease-in-out infinite;
}

.about-glow {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  border: 1px solid rgba(0, 220, 255, 0.4);
  box-shadow: 0 0 60px 0 rgba(0, 220, 255, 0.4), inset 0 0 40px 0 rgba(0, 220, 255, 0.05);
}

.about-dashed {
  position: absolute;
  inset: -12px;
  opacity: 0.2;
  border: 1px dashed rgb(0, 234, 255);
}

.about-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Badge de experiencia — sobre la imagen, abajo-derecha */
.experience-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  z-index: 2;
  padding: 8px 16px;
  border-radius: 12px;
  text-align: center;
  background-color: rgb(17, 21, 29);
  border: 1px solid rgba(0, 220, 255, 0.2);
  box-shadow: 0 0 20px 0 rgba(0, 220, 255, 0.1);
}

.experience-number {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 700;
  color: rgb(0, 234, 255);
  margin: 0;
  line-height: 1.2;
}

.experience-label {
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 600;
  color: rgb(202, 213, 226);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 0;
}

/* --- Header centrado (badge + título) --- */
.about-header {
  text-align: center;
  margin-bottom: 48px;
}

/* --- Columna derecha --- */
.about-text-col {
  display: block;
}

.about-title {
  font-size: 48px;
  line-height: 1em;
  letter-spacing: 2.4px;
  color: rgb(255, 255, 255);
  margin: 0;
}

.title-accent {
  color: rgb(0, 234, 255);
}

.about-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-body p {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  color: rgb(202, 213, 226);
  margin: 0;
}

/* --- Responsive Sobre Nosotros --- */
@media (max-width: 1023px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-image-col {
    justify-content: center;
  }

  .about-image-wrap {
    width: min(416px, 86vw);
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .about-galaxy {
    width: 700px;
    height: 700px;
  }

  .about-title {
    font-size: 36px;
    line-height: 36px;
  }
}

/* ===========================
   NUESTROS CLIENTES
   =========================== */
.clientes {
  position: relative;
  padding: 56px 24px;
  background: transparent;
}

.clientes__inner {
  position: relative;
  z-index: 10;
  max-width: 1152px;
  margin: 0 auto;
}

.clientes-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.cliente-card {
  flex: 0 0 calc(25% - 15px);
  aspect-ratio: 5 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.3s var(--ease-standard),
              filter 0.3s var(--ease-standard);
}

.cliente-card:hover {
  opacity: 1;
  filter: drop-shadow(0 0 16px rgba(0, 220, 255, 0.35));
}

.cliente-card img {
  max-width: 100%;
  max-height: 88%;
  object-fit: contain;
}

@media (max-width: 900px) {
  .cliente-card {
    flex: 0 0 calc(33.333% - 13.34px);
  }
}

@media (max-width: 560px) {
  .cliente-card {
    flex: 0 0 calc(50% - 10px);
  }
}

/* ===========================
   CONTACTO + FOOTER
   =========================== */
footer#contacto {
  position: relative;
  padding: 64px 24px 40px;
  background: transparent;
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(at 50% 0%, rgba(0, 220, 255, 0.04) 0%, transparent 50%);
}

.contact-container {
  position: relative;
  z-index: 10;
  max-width: 1152px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 64px;
  margin-bottom: 64px;
}

/* --- Columna izquierda --- */
.contact-badge {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 3.6px;
  text-transform: uppercase;
  color: rgb(0, 234, 255);
  background: rgba(0, 220, 255, 0.06);
  border: 1px solid rgba(0, 220, 255, 0.25);
  border-radius: 9999px;
  padding: 4px 12px;
  margin-bottom: 16px;
}

.contact-title {
  font-size: 36px;
  line-height: 40px;
  letter-spacing: 1.8px;
  color: rgb(255, 255, 255);
  margin-bottom: 16px;
}

.contact-desc {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  color: rgb(200, 210, 230);
  margin-bottom: 32px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
  width: fit-content;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 8px;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  width: fit-content;
  transition: transform 0.3s var(--ease-standard);
}

.contact-link:hover {
  transform: scale(1.05);
}

.contact-link--wa {
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.3);
  color: rgb(37, 211, 102);
}

.contact-link--email {
  background: rgba(0, 220, 255, 0.08);
  border: 1px solid rgba(0, 220, 255, 0.25);
  color: rgb(0, 234, 255);
}

.social-label {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgb(110, 125, 150);
  margin-bottom: 12px;
  line-height: 20px;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 220, 255, 0.07);
  border: 1px solid rgba(0, 220, 255, 0.15);
  color: rgb(51, 238, 255);
  text-decoration: none;
  transition: transform 0.3s var(--ease-standard);
  flex-shrink: 0;
}

.social-icon:hover {
  transform: scale(1.1);
}

.social-icon svg {
  width: 20px;
  height: 20px;
}

/* --- Columna derecha: tarjeta formulario --- */
.contact-form-card {
  border-radius: 12px;
  padding: 32px;
}

.form-title {
  font-size: 20px;
  line-height: 1;
  letter-spacing: 1px;
  color: rgb(255, 255, 255);
  margin-bottom: 24px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field-label {
  display: block;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: rgb(200, 210, 230);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  border-radius: 8px;
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 400;
  color: rgb(255, 255, 255);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 220, 255, 0.15);
  outline: none;
  cursor: text;
  transition: all 0.2s var(--ease-standard);
  height: 50px;
}

.form-input::placeholder {
  color: rgb(71, 85, 105);
}

.form-input:focus {
  border-color: rgba(0, 220, 255, 0.5);
  box-shadow: 0 0 0 1px rgba(0, 220, 255, 0.25);
}

.form-textarea {
  height: 146px;
  resize: none;
}

.form-submit {
  width: 100%;
  padding: 12px 0;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  background: rgb(0, 234, 255);
  color: rgb(9, 11, 17);
  box-shadow: 0 0 20px 0 rgba(0, 220, 255, 0.4);
  transition: transform 0.3s var(--ease-standard), opacity 0.3s var(--ease-standard);
}

.form-submit:hover  { transform: scale(1.02); }
.form-submit:active { transform: scale(0.98); }
.form-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.form-success {
  text-align: center;
  padding: 16px;
  border-radius: 8px;
  background: rgba(40, 224, 130, 0.1);
  border: 1px solid rgba(40, 224, 130, 0.4);
  color: rgb(40, 224, 130);
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 600;
}

.form-error {
  text-align: center;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 71, 71, 0.08);
  border: 1px solid rgba(255, 71, 71, 0.3);
  color: rgb(255, 120, 120);
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 600;
  margin-top: 4px;
}

/* --- Barra inferior del footer --- */
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(0, 220, 255, 0.1);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo-img {
  height: 22px;
  width: auto;
  display: block;
}

.footer-sep {
  color: rgb(110, 125, 150);
  font-size: 12px;
}

.footer-sub {
  font-family: var(--font-title);
  color: rgb(200, 210, 230);
  font-size: 12px;
}

.footer-copy {
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 400;
  color: rgb(110, 125, 150);
  line-height: 16px;
}

/* ===========================
   WHATSAPP FLOTANTE
   =========================== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 2000;
  box-shadow: 0 0 24px rgba(37, 211, 102, 0.5);
  transition: all var(--transition);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 0 40px rgba(37, 211, 102, 0.7);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

  .hero {
    padding: 110px 0 64px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .hero__visual {
    order: 1;
  }

  .hero__content {
    order: 2;
  }

  .hero__title {
    font-size: 48px;
    line-height: 52px;
  }

  .hero__desc {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 24px;
  }

  .hero__btns {
    justify-content: center;
    gap: 12px;
    flex-wrap: nowrap;
  }

  .hero__btn-primary,
  .hero__btn-secondary {
    padding: 10px 20px;
    font-size: 13px;
  }

  .hero__arrow {
    width: 36px;
    height: 36px;
  }

  .hero__arrow svg {
    width: 22px;
    height: 22px;
  }

  .hero__arrow--prev {
    left: 8px;
  }

  .hero__arrow--next {
    right: 8px;
  }

  .hero__image-wrap {
    width: min(416px, 86vw);
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .hero__galaxy {
    width: 700px;
    height: 700px;
  }

  .navbar__links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 18, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border-color);
    transform: translateY(-120%);
    opacity: 0;
    transition: all var(--transition);
    pointer-events: none;
  }

  .navbar__links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .navbar__links li {
    width: 100%;
    border-bottom: 1px solid var(--border-color);
  }

  .navbar__links a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
  }

  .navbar__links li:last-child {
    border-bottom: none;
  }

  .navbar__inner {
    position: relative;
    justify-content: center;
  }

  .navbar__toggle {
    display: flex;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0;
  }

  .glass-card {
    padding: 24px;
  }

  .svc-tabs {
    /* en mobile los tabs pasan a varias líneas (igual que los filtros del portfolio) */
    gap: 14px 8px;
  }

  .svc-panel {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px;
  }

  /* En mobile ocultamos el ícono del servicio */
  .svc-icon {
    display: none;
  }

  .svc-panel__carousel {
    order: -1;
  }

  .svc-title {
    font-size: 26px;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 40px;
    line-height: 44px;
  }

  .hero__btn-primary,
  .hero__btn-secondary {
    padding: 10px 16px;
    font-size: 12px;
  }
}

/* --- Contacto + Footer responsive --- */
@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 640px) {
  footer#contacto {
    padding: 48px 16px 32px;
  }

  .contact-title {
    font-size: 28px;
    line-height: 34px;
  }

  .contact-form-card {
    padding: 24px;
  }

  .contact-grid {
    margin-bottom: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
