/* =========================================================
   GYS Comunicaciones — styles.css
   Obsidian dark + Electric cyan
   ========================================================= */

/* ---------- 1. Variables ---------- */
:root {
  /* Fondos (obsidian) */
  --bg-deepest:   #030507;
  --bg-canvas:    #05080C;
  --bg-surface:   #0B0F14;
  --bg-elevated:  #12181F;
  --bg-hover:     #1A222C;

  /* Bordes */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border:        rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);

  /* Texto */
  --text-primary:   #F2F3F5;
  --text-secondary: #B4BCC7;
  --text-muted:     #7A8493;
  --text-disabled:  #5A6472;

  /* Acento — azul corporativo (derivado del logo) */
  --accent:         #0066B3;
  --accent-hover:   #1A85D4;
  --accent-pressed: #004F8E;
  --accent-subtle:  rgba(0, 102, 179, 0.12);
  --accent-ring:    rgba(0, 102, 179, 0.30);
  --accent-ink:     #FFFFFF;  /* texto sobre fondo azul */

  /* Estados */
  --success: #30D158;
  --danger:  #FF4D5E;

  /* Sombras (glow suaves) */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  --glow-accent: 0 0 0 1px rgba(0, 102, 179, 0.28), 0 12px 40px rgba(0, 102, 179, 0.22);

  /* Easing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io:  cubic-bezier(0.76, 0, 0.24, 1);

  /* Layout */
  --nav-height: 64px;
  --container-max: 1200px;
  --gutter: 24px;

  color-scheme: dark;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  height: 100%;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  background: var(--bg-canvas);
  overflow: hidden;
}

body {
  height: 100%;
  font-family: 'Geist', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  color: var(--text-primary);
  background: var(--bg-canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

.scroll-shell {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- 2.1 Scrollbar ---------- */
.scroll-shell {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 102, 179, 0.45) var(--bg-canvas);
}

.scroll-shell::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
.scroll-shell::-webkit-scrollbar-track {
  background: var(--bg-canvas);
}
.scroll-shell::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(0, 102, 179, 0.55), rgba(0, 79, 142, 0.55));
  border: 2px solid var(--bg-canvas);
  border-radius: 999px;
  transition: background 0.2s var(--ease-out);
}
.scroll-shell::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent), var(--accent-pressed));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.scroll-shell::-webkit-scrollbar-thumb:active {
  background: var(--accent-pressed);
}
.scroll-shell::-webkit-scrollbar-corner {
  background: var(--bg-canvas);
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: top .2s var(--ease-out);
}
.skip-link:focus-visible { top: 16px; }

::selection { background: var(--accent-subtle); color: var(--text-primary); }

/* ---------- 3. Tipografía ---------- */
.label {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--accent);
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
}

.section-desc {
  font-size: clamp(0.9375rem, 1.1vw, 1.0625rem);
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 640px;
  margin-top: 20px;
}

em { font-style: italic; }

/* ---------- 4. Container ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding-block: clamp(96px, 14vh, 160px); }

.section-intro {
  margin-bottom: clamp(48px, 7vw, 88px);
  max-width: 720px;
}
.section-intro .label { margin-bottom: 16px; }
.section-intro--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background .2s var(--ease-out), color .2s var(--ease-out),
              border-color .2s var(--ease-out), transform .2s var(--ease-out),
              box-shadow .2s var(--ease-out);
  white-space: nowrap;
  user-select: none;
}
.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn--primary:hover { background: var(--accent-hover); box-shadow: var(--glow-accent); }
.btn--primary:active { background: var(--accent-pressed); box-shadow: none; }

.btn--secondary {
  background: var(--text-primary);
  color: var(--bg-canvas);
  border: 1px solid var(--text-primary);
}
.btn--secondary:hover {
  background: rgba(242, 243, 245, 0.88);
  color: var(--bg-canvas);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.btn--secondary:active {
  background: rgba(242, 243, 245, 0.75);
  box-shadow: none;
}

.btn--link {
  color: var(--accent);
  padding: 14px 8px;
  background: transparent;
}
.btn--link:hover { color: var(--accent-hover); }

.btn--sm { padding: 8px 18px; font-size: 0.8125rem; }
.btn--block { width: 100%; }

/* ---------- 6. Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 90;
  background: var(--bg-canvas);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: box-shadow .25s var(--ease-out), border-color .25s var(--ease-out);
}
.navbar.is-scrolled {
  background: rgba(5, 8, 12, 0.85);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-color: rgba(255, 255, 255, 0.05);
}

.navbar__container {
  width: 100%;
  max-width: var(--container-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.navbar__left   { grid-column: 1; justify-self: start; align-self: center; display: flex; align-items: center; }
.navbar__center { grid-column: 2; justify-self: center; display: flex; gap: 32px; }
.navbar__right  {
  grid-column: 3;
  justify-self: end;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}

.navbar__logo { display: inline-flex; align-items: center; gap: 10px; }
.navbar__logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: contain;
}

.navbar__link {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 8px;
  transition: color .2s var(--ease-out), background .2s var(--ease-out);
}

.navbar__cta { padding: 12px 20px; }
.navbar__cta:hover {
  transform: none;
  background: var(--accent-hover);
  box-shadow: var(--glow-accent);
}
.navbar__cta:active { transform: none; background: var(--accent-pressed); }
.navbar__link:hover { color: var(--text-primary); background: rgba(255, 255, 255, 0.04); }
.navbar__link.is-active { color: var(--accent); font-weight: 500; }

.navbar__burger {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  transition: background .2s var(--ease-out);
}
.navbar__burger:hover { background: rgba(255, 255, 255, 0.06); }
.navbar__burger-icon {
  position: absolute;
  width: 22px;
  height: 22px;
  color: var(--text-primary);
  transition: opacity .25s var(--ease-out), transform .3s var(--ease-out);
}
.navbar__burger-icon--menu  { opacity: 1; transform: rotate(0); }
.navbar__burger-icon--close { opacity: 0; transform: rotate(-90deg); }
.navbar__burger.is-open .navbar__burger-icon--menu  { opacity: 0; transform: rotate(90deg); }
.navbar__burger.is-open .navbar__burger-icon--close { opacity: 1; transform: rotate(0); }

/* Tablet + Mobile — ocultar nav center + CTA, mostrar hamburger */
@media (max-width: 960px) {
  .navbar__center { display: none; }
  .navbar__cta   { display: none; }
  .navbar__burger { display: inline-flex; }
}
@media (max-width: 720px) {
  .navbar__logo-sub { display: none; }
}

@media (max-width: 420px) {
  .navbar__container { padding: 0 16px; }
  .navbar__burger { width: 36px; height: 36px; }
}

/* ---------- 7. Mobile Menu (dropdown desde navbar) ---------- */
.mobile-menu {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  z-index: 89;
  background: var(--bg-canvas);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  padding: 16px var(--gutter) 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: calc(100dvh - var(--nav-height));
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .22s var(--ease-out), transform .22s var(--ease-out), visibility .22s;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mobile-menu__link {
  display: block;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--text-primary);
  border-radius: 10px;
  transition: background .15s var(--ease-out), color .15s var(--ease-out);
}
.mobile-menu__link:hover,
.mobile-menu__link:focus-visible {
  background: var(--bg-hover);
  color: var(--accent);
  outline: none;
}

.mobile-menu__footer {
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}
.mobile-menu__footer .btn { width: 100%; }

/* Dropdown no bloquea scroll */

/* ---------- 8. Hero ---------- */
.hero {
  min-height: 75dvh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: clamp(16px, 3vh, 32px);
  padding-bottom: clamp(24px, 4vh, 48px);
  text-align: center;
  color: var(--text-primary);
  background: var(--bg-canvas);
  overflow: hidden;
  isolation: isolate;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/electrical-panel-with-fuses-contactors-closeup.jpg') center/cover no-repeat;
  filter: brightness(0.7) contrast(1.05) saturate(0.85);
  transform: scale(1.05);
  z-index: -2;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 55%,
      rgba(3, 5, 7, 0) 0%,
      rgba(3, 5, 7, 0.5) 55%,
      rgba(3, 5, 7, 0.9) 100%),
    linear-gradient(180deg,
      rgba(3, 5, 7, 0.55) 0%,
      rgba(3, 5, 7, 0) 25%,
      rgba(3, 5, 7, 0) 45%,
      rgba(3, 5, 7, 0.65) 80%,
      var(--bg-deepest) 100%),
    linear-gradient(135deg,
      rgba(0, 102, 179, 0.08) 0%,
      transparent 50%);
  z-index: -1;
}
.hero__container { max-width: 1140px; position: relative; }

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 32px;
  max-width: 20ch;
  margin-left: auto;
  margin-right: auto;
}

.hero__subtitle {
  font-size: clamp(0.9375rem, 1.1vw, 1.0625rem);
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 760px;
  margin: 0 auto 40px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}


/* ---------- 9. Servicios / Bento ---------- */
.services { background: var(--bg-deepest); }

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(130px, auto);
  gap: 12px;
}
.bento__card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform .3s var(--ease-out), border-color .3s var(--ease-out), background .3s var(--ease-out);
}
.bento__card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: var(--bg-elevated);
}

.bento__card:nth-child(1) { grid-column: span 3; grid-row: span 2; }
.bento__card:nth-child(2) { grid-column: span 3; grid-row: span 2; }
.bento__card:nth-child(3) { grid-column: span 2; }
.bento__card:nth-child(4) { grid-column: span 2; }
.bento__card:nth-child(5) { grid-column: span 2; }

.bento__icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: var(--accent-subtle);
  border: 1px solid rgba(0, 102, 179, 0.25);
  border-radius: 10px;
  transition: color .3s var(--ease-out), border-color .3s var(--ease-out), background .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.bento__card:hover .bento__icon {
  box-shadow: 0 0 0 4px rgba(0, 102, 179, 0.1);
}
.bento__icon svg { width: 22px; height: 22px; }

.bento__title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}
.bento__card--lg .bento__title { font-size: clamp(1.5rem, 2.5vw, 2rem); }

.bento__desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 52ch;
}

.bento__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}
.bento__tags li {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}

/* Tablet grande (720-1024): conservar jerarquía 6-col pero proporciones tablet */
@media (max-width: 1024px) and (min-width: 881px) {
  .bento { gap: 10px; }
}
/* Tablet medio (560-880): 2 hero full + 3 cards en fila */
@media (max-width: 880px) {
  .bento { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .bento__card:nth-child(1),
  .bento__card:nth-child(2) { grid-column: span 3; grid-row: auto; }
  .bento__card:nth-child(3),
  .bento__card:nth-child(4),
  .bento__card:nth-child(5) { grid-column: span 1; grid-row: auto; }
}
/* Tablet pequeño (480-560): 2 hero full + [C3][C4] par + C5 full */
@media (max-width: 560px) {
  .bento { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .bento__card:nth-child(1),
  .bento__card:nth-child(2),
  .bento__card:nth-child(5) { grid-column: span 2; grid-row: auto; }
  .bento__card:nth-child(3),
  .bento__card:nth-child(4) { grid-column: span 1; grid-row: auto; }
}
/* Móvil: stack todo */
@media (max-width: 420px) {
  .bento { grid-template-columns: 1fr; gap: 10px; }
  .bento__card:nth-child(n) { grid-column: span 1; grid-row: auto; }
}

/* ---------- 11. Stats + Certificaciones ---------- */
.stats {
  background: var(--bg-canvas);
  padding-block: clamp(56px, 8vh, 96px);
}
.stats .section-intro { margin-bottom: clamp(32px, 4vw, 48px); }

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 40px);
}
.stats__item {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  position: relative;
}
.stats__item::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 32px;
  height: 1px;
  background: var(--accent);
}
.stats__number {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 10px;
  display: inline-flex;
  align-items: baseline;
}
.stats__plus { color: var(--accent); }
.stats__label {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 180px;
  line-height: 1.45;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(32px, 4vw, 48px);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-elevated);
}
.badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(48, 209, 88, 0.18);
}

@media (max-width: 820px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
}
@media (max-width: 440px) {
  .stats__grid { grid-template-columns: 1fr; gap: 24px; }
  .stats__label { max-width: none; }
}

/* ---------- 12. Proceso ---------- */
.process { background: var(--bg-deepest); color: var(--text-primary); }
.process .label { color: var(--accent); }
.process .section-title { color: var(--text-primary); }

.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}
.process__steps::after {
  content: '';
  position: absolute;
  top: 6px;
  left: var(--line-left, 6px);
  right: var(--line-right, 6px);
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(0, 102, 179, 0.2) 100%);
  pointer-events: none;
}

.process__step {
  position: relative;
  padding-top: 32px;
}
.process__dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(0, 102, 179, 0.55);
}
.process__dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  pointer-events: none;
}
.process__step:hover .process__dot::before {
  animation: processPulse 1.8s var(--ease-out) infinite;
}

@keyframes processPulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  80%  { transform: scale(2.4); opacity: 0;   }
  100% { transform: scale(2.4); opacity: 0;   }
}

@media (prefers-reduced-motion: reduce) {
  .process__step:hover .process__dot::before { animation: none; }
}

.process__num {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.process__title {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.process__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  max-width: 240px;
  line-height: 1.5;
}

@media (max-width: 960px) {
  .process__steps { grid-template-columns: repeat(2, 1fr); gap: 48px 48px; }
  .process__steps::after { display: none; }
}
/* Móvil: layout vertical con línea conectora alineada al centro del dot */
@media (max-width: 560px) {
  .process__steps { grid-template-columns: 1fr; gap: 36px; }
  .process__steps::after {
    display: block;
    top: 10px;
    bottom: 10px;
    left: 5px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--accent) 0%, rgba(0, 102, 179, 0.15) 100%);
    border-radius: 2px;
  }
  .process__step { padding-top: 0; padding-left: 28px; min-height: 52px; }
  .process__dot { top: 6px; left: 0; }
  .process__desc { max-width: none; }
}

/* ---------- 13. Contacto ---------- */
.contact { background: var(--bg-canvas); }

.contact__grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
}

.contact__info .label { margin-bottom: 16px; }
.contact__info .section-title { margin-bottom: 20px; }
.contact__desc {
  font-size: clamp(0.9375rem, 1.1vw, 1.0625rem);
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 420px;
}

.contact__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}
.contact__list svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  padding: 7px;
  box-sizing: content-box;
  color: var(--accent);
  background: var(--accent-subtle);
  border: 1px solid rgba(0, 102, 179, 0.25);
  border-radius: 8px;
}
.contact__list a { color: var(--text-secondary); transition: color .2s var(--ease-out); }
.contact__list a:hover { color: var(--accent); }

/* ---------- 14. Form ---------- */
.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form__field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0;
}
.form__req { color: var(--accent); margin-left: 2px; }

.form__input {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color .15s var(--ease-out), box-shadow .15s var(--ease-out), background .15s var(--ease-out);
}
.form__input::placeholder { color: var(--text-disabled); }
.form__input:hover { border-color: var(--border-strong); }
.form__input:focus {
  border-color: var(--accent);
  background: var(--bg-elevated);
  box-shadow: 0 0 0 3px var(--accent-ring);
  outline: none;
}
.form__textarea {
  resize: none;
  height: 160px;
  overflow-y: auto;
  font-family: inherit;
  line-height: 1.5;
}

/* Custom dropdown */
.select { position: relative; }
.select__hidden {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0; height: 0;
  border: none; padding: 0;
}

.select__button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: border-color .15s var(--ease-out), box-shadow .15s var(--ease-out), background .15s var(--ease-out);
}
.select__button:hover { border-color: var(--border-strong); }
.select__button:focus-visible,
.select[data-open="true"] .select__button {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-elevated);
  box-shadow: 0 0 0 3px var(--accent-ring);
}
.select__text { flex: 1; color: var(--text-disabled); }
.select__text.has-value { color: var(--text-primary); }
.select__caret {
  width: 16px; height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform .2s var(--ease-out);
}
.select[data-open="true"] .select__caret { transform: rotate(180deg); color: var(--accent); }

.select__list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 10;
  padding: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  max-height: 280px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .15s var(--ease-out), transform .15s var(--ease-out), visibility .15s;
}
.select[data-open="true"] .select__list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.select__item {
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.9375rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: background .1s var(--ease-out), color .1s var(--ease-out);
}
.select__item:hover,
.select__item[data-highlighted="true"] { background: var(--bg-hover); }
.select__item[aria-selected="true"] {
  background: var(--accent-subtle);
  color: var(--accent);
  font-weight: 500;
}

.form__field.is-invalid .select__button { border-color: var(--danger); }
.form__field.is-invalid .select__button:focus-visible,
.form__field.is-invalid.select[data-open="true"] .select__button {
  box-shadow: 0 0 0 3px rgba(255, 77, 94, 0.22);
}

.form__error {
  display: block;
  min-height: 16px;
  font-size: 12px;
  color: var(--danger);
  opacity: 0;
  transition: opacity .15s var(--ease-out);
}

.form__field-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 16px;
}
.form__field-footer .form__error { flex: 1; }
.form__counter {
  font-size: 12px;
  color: var(--text-disabled);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  transition: color .15s var(--ease-out);
}
.form__counter.is-near { color: var(--text-secondary); }
.form__counter.is-max  { color: var(--danger); font-weight: 500; }
.form__field.is-invalid .form__input { border-color: var(--danger); }
.form__field.is-invalid .form__input:focus { box-shadow: 0 0 0 3px rgba(255, 77, 94, 0.22); }
.form__field.is-invalid .form__error { opacity: 1; }

.form__field.is-valid .form__input { border-color: rgba(48, 209, 88, 0.5); }

.form__submit { position: relative; margin-top: 8px; min-height: 48px; }
.form__submit.is-loading .form__submit-label { opacity: 0; }
.form__submit.is-loading .form__spinner { opacity: 1; }
.form__spinner {
  position: absolute;
  top: 50%; left: 50%;
  width: 18px; height: 18px;
  margin-top: -9px; margin-left: -9px;
  border: 2px solid rgba(4, 16, 24, 0.25);
  border-top-color: var(--accent-ink);
  border-radius: 50%;
  opacity: 0;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form__success {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 20px;
  background: var(--accent-subtle);
  border: 1px solid rgba(0, 102, 179, 0.25);
  border-radius: 14px;
  animation: fadeIn .5s var(--ease-out);
}
.form__success[hidden] { display: none; }
.form__success svg { width: 24px; height: 24px; color: var(--accent); flex-shrink: 0; }
.form__success strong { display: block; color: var(--text-primary); font-weight: 600; }
.form__success span { color: var(--text-secondary); font-size: 0.875rem; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.form.is-hidden { display: none; }

@media (max-width: 820px) {
  .contact__grid { grid-template-columns: 1fr; gap: 48px; }
  .form__row { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- 17. Footer ---------- */
.footer {
  background: var(--bg-deepest);
  color: var(--text-primary);
  padding-block: clamp(64px, 9vh, 96px) 28px;
  border-top: 1px solid var(--border-subtle);
}
.footer__container {
  display: flex;
  flex-direction: column;
  gap: clamp(56px, 8vw, 88px);
}

.footer__main {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2.2fr);
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
}

.footer__logo-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.footer__logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: contain;
}
.footer__logo {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.footer__tagline {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 300px;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 56px);
}
.footer__heading {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--accent);
  margin-bottom: 16px;
}
.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__col a,
.footer__col li {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
  transition: color .2s var(--ease-out);
}
.footer__col a:hover { color: var(--accent); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}
.footer__copy,
.footer__location {
  font-size: 12px;
  color: var(--text-disabled);
}
.footer__credit {
  color: var(--text-muted);
  transition: color .2s var(--ease-out);
}
.footer__credit:hover { color: var(--accent); }

@media (max-width: 820px) {
  .footer__main { grid-template-columns: 1fr; gap: 36px; }
  .footer__container { gap: 40px; }
}
@media (max-width: 720px) {
  .footer__cols { gap: 32px 24px; }
}
@media (max-width: 480px) {
  .footer__cols { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .footer__col:first-child { grid-column: span 2; }
  .footer__col ul { gap: 8px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 20px; }
  .footer__heading { margin-bottom: 12px; }
}
@media (max-width: 360px) {
  .footer__cols { grid-template-columns: 1fr; gap: 24px; }
  .footer__col:first-child { grid-column: span 1; }
}

/* ---------- 18. WhatsApp flotante ---------- */
.whatsapp {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: #25D366;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: #FFFFFF;
  box-shadow: var(--shadow-md);
}
.whatsapp svg { width: 20px; height: 20px; }

@media (max-width: 560px) {
  .whatsapp { bottom: 20px; right: 20px; padding: 12px; }
  .whatsapp__label { display: none; }
}

/* =========================================================
   19. Responsive
   Breakpoints:
     • Tablet:        ≤ 960 px
     • Small tablet:  ≤ 720 px (≥ phone)
     • Mobile:        ≤ 480 px
     • Tiny phone:    ≤ 360 px
   ========================================================= */

/* ========== TABLET (≤ 960px) ========== */
@media (max-width: 960px) {
  :root { --nav-height: 72px; }

  section { padding-block: clamp(80px, 11vh, 120px); }
  .section-intro { margin-bottom: clamp(40px, 6vw, 64px); }
  .section-title { font-size: clamp(1.875rem, 4.5vw, 2.75rem); }

  .hero { min-height: 70dvh; }
  .hero__title { font-size: clamp(2.25rem, 5.5vw, 3.75rem); }

  .contact__grid { gap: 64px; }
}

/* ========== SMALL TABLET / LARGE MOBILE (≤ 720px) ========== */
@media (max-width: 720px) {
  :root { --nav-height: 64px; --gutter: 20px; }

  section { padding-block: clamp(64px, 9vh, 88px); }
  .section-intro { margin-bottom: clamp(32px, 6vw, 48px); }
  .section-title { font-size: clamp(1.75rem, 5.5vw, 2.25rem); }
  .section-desc { font-size: 0.9375rem; }

  /* Hero */
  .hero { min-height: 66dvh; padding-bottom: 40px; }
  .hero__title { margin-bottom: 24px; }
  .hero__subtitle { margin-bottom: 32px; }

  /* Bento */
  .bento__card { padding: 28px; }
  .bento__card--lg .bento__title { font-size: 1.625rem; }

  /* Stats */
  .stats { padding-block: 72px; }

  /* Process */
  .process__desc { max-width: 320px; }

  /* Contact */
  .contact__desc { margin-bottom: 32px; }
  .contact__list a,
  .contact__list li span { word-break: break-word; overflow-wrap: anywhere; }

  /* Footer — touch-friendly */
  .footer__col ul { gap: 14px; }
  .footer__col a,
  .footer__col li { font-size: 14px; }

  /* Form touch targets */
  .form__input,
  .select__button { padding: 14px 14px; font-size: 1rem; }
  .form__textarea { height: 150px; }

  /* WhatsApp */
  .whatsapp { bottom: 24px; right: 24px; }
}

/* ========== MOBILE (≤ 480px) ========== */
@media (max-width: 480px) {
  :root { --gutter: 16px; }

  section { padding-block: 56px; }
  .section-intro { margin-bottom: 36px; }
  .section-title { font-size: clamp(1.625rem, 7vw, 2rem); letter-spacing: -0.02em; }

  /* Hero — compact, left-aligned */
  .hero {
    min-height: auto;
    padding-top: 32px;
    padding-bottom: 56px;
    text-align: left;
    align-items: flex-start;
  }
  .hero__container { width: 100%; }
  .hero__title {
    font-size: clamp(2rem, 9vw, 2.5rem);
    letter-spacing: -0.025em;
    margin: 0 0 20px;
    max-width: 16ch;
    margin-left: 0;
    margin-right: 0;
  }
  .hero__subtitle {
    font-size: 0.9375rem;
    margin: 0 0 28px;
    max-width: 40ch;
  }
  .hero__actions {
    width: 100%;
    flex-direction: column;
    gap: 10px;
    justify-content: flex-start;
  }
  .hero__actions .btn { width: 100%; }

  /* Buttons — mobile sizing */
  .btn { padding: 14px 22px; font-size: 0.9375rem; }
  .btn--sm { padding: 10px 18px; }

  /* Bento — compact cards */
  .bento__card { padding: 22px; border-radius: 14px; gap: 14px; }
  .bento__card--lg .bento__title { font-size: 1.375rem; }
  .bento__title { font-size: 1.125rem; }
  .bento__desc { font-size: 0.875rem; }
  .bento__icon { width: 40px; height: 40px; }
  .bento__icon svg { width: 20px; height: 20px; }
  .bento__tags li { font-size: 11px; padding: 3px 9px; }

  /* Stats */
  .stats { padding-block: 56px; }
  .stats__number { font-size: 2rem; }
  .stats__item { padding-top: 16px; }
  .stats__item::before { width: 28px; }
  .badges { gap: 8px; margin-top: 32px; }
  .badge { font-size: 12px; padding: 6px 12px; gap: 8px; }

  /* Process */
  .process__title { font-size: 1.125rem; }
  .process__desc { font-size: 0.875rem; max-width: none; }
  .process__num { margin-bottom: 10px; }

  /* Contact / Form */
  .contact__grid { gap: 40px; }
  .form { gap: 18px; }
  .form__row { gap: 20px; }
  .form__textarea { height: 140px; }
  .form__submit { min-height: 52px; }

  /* Footer */
  .footer { padding-block: 56px 24px; }
  .footer__main { gap: 32px; }
  .footer__logo { font-size: 14px; }

  /* WhatsApp */
  .whatsapp { bottom: 20px; right: 20px; padding: 12px; }
  .whatsapp__label { display: none; }
}

/* ========== TINY PHONES (≤ 360px) ========== */
@media (max-width: 360px) {
  :root { --gutter: 14px; }
  .hero__title { font-size: 1.875rem; }
  .section-title { font-size: 1.5rem; }
  .bento__card { padding: 20px; }
  .btn { padding: 13px 18px; }
}

/* ========== LANDSCAPE PHONES ========== */
@media (max-height: 480px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-block: 24px 32px;
  }
  .hero__title { margin-bottom: 16px; }
  .hero__subtitle { margin-bottom: 24px; }
  section { padding-block: 48px; }
  .mobile-menu { justify-content: flex-start; padding-top: 80px; overflow-y: auto; }
}

/* ========== HOVER-CAPABLE DEVICES ONLY ========== */
@media (hover: none) {
  .bento__card:hover { transform: none; }
  .btn--primary:hover { box-shadow: none; }
  .process__step:hover .process__dot::before { animation: none; }
}

/* ---------- 20. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
