/* ===========================================================
   JM Desarrollo Web — Sistema de diseño
   =========================================================== */

/* ===========================================================
   Fuente Inter oficial (autoalojada)
   La versión de Google Fonts elimina las variantes de caracteres
   (cv03, cv04, cv09, cv11); esta build completa sí las incluye.
   =========================================================== */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/InterVariable.woff2') format('woff2');
}
/* Manrope (títulos), servida desde el propio sitio: evita la hoja de Google Fonts
   que bloqueaba la carga. Subconjunto latino: incluye á é í ó ú ñ ü ¿ ¡. */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/Manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Fuentes de respaldo con las medidas ajustadas a Inter y Manrope: mientras
   cargan las fuentes, el texto ocupa el mismo lugar y la página no "salta" (CLS). */
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial'), local('ArialMT'), local('Liberation Sans');
  size-adjust: 105.72%; ascent-override: 91.63%; descent-override: 22.81%; line-gap-override: 0%;
}
@font-face {
  font-family: 'Manrope Fallback';
  font-weight: 100 599;
  src: local('Arial'), local('ArialMT'), local('Liberation Sans');
  size-adjust: 103.42%; ascent-override: 103.08%; descent-override: 29.01%; line-gap-override: 0%;
}
@font-face {
  font-family: 'Manrope Fallback';
  font-weight: 600 900;
  src: local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold');
  size-adjust: 100.28%; ascent-override: 106.31%; descent-override: 29.92%; line-gap-override: 0%;
}

:root {
  /* Paleta */
  --primary:        #804EDD;
  --primary-bright: #A685F2;   /* palabra "negocio" / acentos sobre oscuro */
  --primary-deep:   #6B3CC4;   /* hover botón */
  --bg-dark:        #181028;
  --nav:            #2C2446;   /* fondo navbar y footer */
  --lavender:       #CFCAFB;
  --lavender-soft:  #F4F2FD;
  --white:          #FFFFFF;
  --ink:            #181028;   /* texto sobre claro */
  --muted:          #5C5470;   /* texto secundario sobre claro */
  --on-dark:        #FFFFFF;   /* texto sobre oscuro */
  --line:           #E7E2FA;

  /* Tipografía */
  --font-display: 'Manrope', 'Manrope Fallback', system-ui, sans-serif;
  --font-body:    'Inter', 'Inter Fallback', system-ui, sans-serif;

  --maxw: 1180px;
  --radius: 14px;
  --nav-h: 81px;        /* alto aprox. de la barra (para el hero a pantalla completa) */
  --shadow: 0 18px 40px -20px rgba(24, 16, 40, .35);
  --shadow-soft: 0 10px 30px -18px rgba(24, 16, 40, .25);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  /* Receta exacta de Framer: Inter regular + alternates cv03/cv04/cv09/cv11,
     tracking -0.02em y line-height 1.6 */
  font-optical-sizing: none;
  letter-spacing: -0.02em;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv03", "cv04", "cv09", "cv11", "calt", "kern";
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Tipografía base ----------------------------------------- */
h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0;
}
h1 { font-weight: 700; font-size: 48px; }
h2 { font-weight: 500; font-size: 36px; }
h3 { font-weight: 600; font-size: 28px; }

p { margin: 0; }

strong { font-weight: 600; color: var(--primary); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: 24px;
}

.section { padding-block: 96px; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  display: inline-block;
  margin-bottom: 8px;
}

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); margin-top: 8px; font-size: 16px; line-height: 1.55; }

/* ===========================================================
   Navbar
   =========================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: var(--on-dark);
  display: inline-flex;
  gap: 6px;
  white-space: nowrap;
}
.brand span { color: var(--primary-bright); }

.nav__menu {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}
.nav__link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 22px;
  color: rgba(255,255,255,.8);
  padding: 6px 0;
  position: relative;
  transition: color .2s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  height: 2px; width: 0;
  background: var(--primary-bright);
  transition: width .25s ease;
}
.nav__link:hover { color: var(--on-dark); }
.nav__link.active { color: var(--on-dark); }
.nav__link.active::after { width: 100%; }

.nav__cta { flex-shrink: 0; }

/* En escritorio el contenedor es transparente: el menú y el CTA fluyen igual que antes */
.nav__drawer { display: contents; }

/* Botón hamburguesa */
.nav__toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--on-dark);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.nav__toggle span + span { margin-top: 6px; }

/* ===========================================================
   Botones
   =========================================================== */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}

.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-deep); }

.btn--ghost-dark {
  background: rgba(255,255,255,.04);
  color: #fff;
  border-color: rgba(255,255,255,.28);
}
.btn--ghost-dark:hover { background: rgba(255,255,255,.1); }

.btn--outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn--outline:hover { background: var(--primary); color: #fff; }

/* ===========================================================
   Hero
   =========================================================== */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--on-dark);
  overflow: hidden;
  background: var(--bg-dark);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero.webp');
  background-size: cover;
  background-position: center;
  z-index: 0;
}
@media (max-width: 600px) {
  .hero__bg { background-image: url('../images/hero-mobile.webp'); }
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 80px 24px;
}
/* Etiqueta sobre el título: cupo limitado de proyectos */
.hero__tag {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 22px; padding: 7px 16px;
  border: 1px solid rgba(167,139,250,.45); border-radius: 999px;
  background: rgba(128,78,221,.18);
  color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .01em;
  backdrop-filter: blur(4px);
}
.hero__tag-sep { opacity: .6; }
.hero__tag-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #4ADE80; margin-right: 6px; vertical-align: 1px;
}
@media (max-width: 450px) { .hero__tag { font-size: 13px; margin-bottom: 18px; } }
/* Celulares angostos: la segunda parte pasa abajo, sin el separador */
@media (max-width: 400px) {
  .hero__tag { align-items: flex-start; border-radius: 14px; padding: 8px 14px; line-height: 1.35; }
  .hero__tag-sep { display: none; }
  .hero__tag-extra { display: block; font-weight: 500; color: rgba(255,255,255,.8); }
}
.hero__title {
  font-size: clamp(32px, 6vw, 64px);
  margin-bottom: 18px;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
@media (min-width: 768px) {
  .hero__title {
    line-height: 68px;
  }
}
.hero__title .word {
  position: relative;
  display: inline-block;
  color: #CFCAFB;
}
/* Subrayado dibujado a mano */
.hero__underline {
  position: absolute;
  left: -4%;
  bottom: -0.34em;
  width: 108%;
  height: 0.42em;
  overflow: visible;
  pointer-events: none;
}
.hero__underline path {
  fill: none;
  stroke: #CFCAFB;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 480;
  stroke-dashoffset: 480;
}
.hero__underline.draw path {
  animation: draw-underline 1.8s ease-out 0.7s forwards;
}
@keyframes draw-underline {
  to { stroke-dashoffset: 0; }
}

.hero__subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: #FFFFFF;
  max-width: 540px;
  margin: 0 auto 22px;
}
.hero__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===========================================================
   Acerca de
   =========================================================== */
.about__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.about__body p { color: var(--muted); font-size: 16px; line-height: 1.65; }
.about__body p + p { margin-top: 18px; }

.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat {
  background: var(--lavender-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 40px;
  letter-spacing: -0.04em;
  color: var(--primary);
  line-height: 1;
}
.stat__label { color: var(--muted); margin-top: 8px; font-size: 15px; line-height: 1.4; }

/* ===========================================================
   Servicios
   =========================================================== */
.servicios { background: var(--lavender-soft); }

/* CTA centrado en la costura entre dos secciones (mitad y mitad) */
.section-cta {
  position: relative;
  height: 0;
  text-align: center;
  z-index: 10;
}
.section-cta .btn {
  transform: translateY(-50%);
  box-shadow: 0 10px 28px -10px rgba(24, 16, 40, .45);
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-soft);
  transition: box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
  box-shadow: var(--shadow);
  border-color: var(--primary-bright);
}
.card__icon {
  width: 54px; height: 54px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(128,78,221,.16), rgba(166,133,242,.18));
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.card__icon svg { width: 28px; height: 28px; color: var(--primary); }
.card h3 { font-size: 22px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.card__link {
  display: inline-block;
  margin-top: 14px;
  color: var(--primary);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.card__link::after {
  content: ' \2192';
  transition: transform .2s ease;
  display: inline-block;
}
.card__link:hover { color: var(--primary-deep); text-decoration: underline; }
.card__link:hover::after { transform: translateX(3px); }

/* ===========================================================
   Proyectos
   =========================================================== */
#proyectos { background: #0A0A0A; color: var(--on-dark); }
#proyectos .eyebrow { color: var(--primary-bright); }
#proyectos .section-head h2 { color: #fff; }
#proyectos .section-head p { color: rgba(255,255,255,.55); }

.projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 1040px;
  margin: 0 auto;
}
/* Home: 3 proyectos por fila en desktop */
.projects--3 { grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: none; }
/* Con 2 columnas las capturas se ven más anchas: se muestra más del sitio */
@media (min-width: 661px) {
  .projects .project__media { aspect-ratio: 16/10; }
  .projects .project__media img { object-position: left top; }
  .projects .project__media img[src*="proj-milimonero"] { object-position: center top; }
}

.project {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background: #0D0D0D;
  transition: border-color .3s ease, transform .3s ease;
}
.project:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.2); }

.project__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.project__media { aspect-ratio: 4/3; overflow: hidden; background: #111; }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.project:hover .project__media img { transform: scale(1.03); }

.project__body { padding: 24px; display: flex; flex-direction: column; gap: 12px; }

.project__tags { display: flex; gap: 8px; flex-wrap: wrap; }
.project__tag {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px;
  padding: 5px 12px;
  line-height: 1;
}

.project__name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 22px;
  color: #fff;
  margin: 4px 0 0;
}

.project__desc {
  color: rgba(255,255,255,.45);
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
  margin-top: 4px;
  transition: color .2s ease;
}
.project:hover .project__cta { color: #CFCAFB; }

/* ===========================================================
   Preguntas frecuentes
   =========================================================== */
.faq { background: var(--bg-dark); color: var(--on-dark); }
.faq .eyebrow { color: var(--primary-bright); }

/* Layout 2 columnas: intro (título + descripción + CTA) | preguntas */
.faq__grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 1.5fr;
  gap: 56px;
  align-items: start;
}
.faq__intro h2 { color: #fff; }
.faq__intro p {
  color: var(--lavender);
  margin-top: 8px;
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.55;
}
.faq__intro .faq__not-here { color: #fff; font-weight: 400; margin-bottom: 8px; }
.faq__list { margin-inline: 0; max-width: none; }
.faq__item {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  /* background: rgba(255,255,255,.03); */
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color .25s ease, background .25s ease;
}
.faq__item.open { border-color: var(--primary-bright); background: rgba(128,78,221,.1); }
.faq__q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--on-dark);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.03em;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq__icon { flex-shrink: 0; transition: transform .3s ease; color: var(--primary-bright); }
.faq__item.open .faq__icon { transform: rotate(45deg); }
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.faq__a p {
  padding: 0 24px 22px;
  color: var(--lavender);
  line-height: 1.6;
  font-size: 15.5px;
}
.faq__a strong { color: #fff; }
.faq__a a { color: var(--primary-bright); text-decoration: underline; }

/* ===========================================================
   Contacto
   =========================================================== */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-soft);
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 7px;
  color: var(--ink);
}
.field input, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--lavender-soft);
  color: var(--ink);
  transition: border-color .2s ease, background .2s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 120px; }
.form .btn { width: 100%; margin-top: 4px; }

.map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 320px;
  box-shadow: var(--shadow-soft);
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ===========================================================
   Footer
   =========================================================== */
.footer {
  background: var(--nav);
  color: var(--on-dark);
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer__brand { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.03em; }
.footer__brand span { color: var(--primary-bright); }
.footer__copy { color: rgba(255, 255, 255, .8); font-size: 14px; }
.footer__social { display: flex; justify-content: center; align-items: center; gap: 12px; }
.footer__social a {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  display: grid;
  place-items: center;
  transition: background .2s ease, transform .2s ease;
}
.footer__social a:hover { background: var(--primary); transform: translateY(-2px); }

/* ===========================================================
   WhatsApp flotante
   =========================================================== */
.whatsapp-fab {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 56px; height: 56px;
  border-radius: 50%;
  /* mismos colores que los CTA del sitio */
  background: var(--primary);
  box-shadow: var(--shadow-soft);
  display: grid;
  place-items: center;
  z-index: 200;
  transition: background .2s ease, transform .2s ease;
}
.whatsapp-fab:hover { background: var(--primary-deep); transform: scale(1.08); }

/* ===========================================================
   Reveal on scroll
   =========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 960px) {
  .about__grid { grid-template-columns: 1fr; gap: 36px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .projects { grid-template-columns: 1fr 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .map { min-height: 300px; }
  .faq__grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 860px) {
  .nav__toggle { display: block; }

  /* El menú + CTA pasan a ser un panel desplegable superpuesto (no empuja el hero) */
  .nav__drawer {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--nav);
    border-bottom: 1px solid rgba(255,255,255,.06);
    box-shadow: 0 18px 30px -16px rgba(0,0,0,.6);
    padding: 0 24px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: max-height .34s ease, opacity .26s ease, transform .3s ease, padding .34s ease;
  }
  .nav.open .nav__drawer {
    max-height: 70vh;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    padding: 6px 24px 18px;
  }

  .nav__drawer .nav__menu {
    flex-direction: column;
    gap: 0;
  }
  .nav__drawer .nav__link {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .nav__drawer .nav__link::after { display: none; }
  .nav__drawer .nav__cta { margin-top: 14px; }
  .nav__drawer .nav__cta .btn { width: 100%; }

  /* Hamburguesa → X */
  .nav.open .nav__toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav.open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav__toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .section { padding-block: 70px; }
  h2 { font-size: 30px; }
  .cards { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; text-align: center; }
}

@media (max-width: 450px) {
  .hero { text-align: left; }
  .hero__subtitle { margin-left: 0; margin-right: 0; }
  .hero__actions { flex-direction: column; justify-content: flex-start; }
  .hero__actions .btn { width: 100%; }
  .section-cta { padding-inline: 24px; }
  .section-cta .btn { width: 100%; }
}

/* Accesibilidad: respeta reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  .hero__underline path { stroke-dashoffset: 0; }
}

/* Foco visible */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--primary-bright);
  outline-offset: 2px;
  border-radius: 6px;
}
/* ===== Ajustes pantallas muy chicas ===== */
@media (max-width: 374.98px) {
  .about__stats { gap: 12px; }
  .stat { padding: 18px 14px; }
  .stat__num { font-size: 30px; }
  .stat__label { font-size: 13.5px; }
}

@media (max-width: 384.98px) {
  .hero__title { font-size: 28px; }
}
/* Subtítulo del hero: versión móvil < 425px */
.hero__subtitle--mobile { display: none; }

@media (max-width: 424.98px) {
  .hero__subtitle--desktop { display: none; }
  .hero__subtitle--mobile { display: block; }
}

/* En móviles (<426px) se ocultan la pregunta y el CTA de FAQs */
@media (max-width: 425.98px) {
  .faq__intro .faq__not-here,
  .faq__intro .btn { display: none; }
}

/* Botón "Contactar" al final de Sobre Nosotros: solo visible en móviles (<426px) */
.about__cta-mobile { display: none; }

@media (max-width: 425.98px) {
  .about__cta-mobile { display: block; margin-top: 28px; }
  .about__cta-mobile .btn { width: 100%; }
}

@media (min-width: 761px) {
  .section-cta { display: none; }
}
/* ===========================================================
   Submenú de Servicios en el navbar
   =========================================================== */
.nav__menu > li { display: flex; align-items: center; }
.nav__item { position: relative; }

/* "Servicios" es un botón (abre el submenú), pero se ve igual que los demás links */
.nav__link--sub {
  background: none; border: 0; cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600; font-size: 16px; line-height: 22px;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav__link--sub .nav__caret { transition: transform .25s ease; }
.nav__item:hover .nav__caret,
.nav__item.open .nav__caret { transform: rotate(180deg); }

.nav__sub {
  list-style: none; margin: 0;
  position: absolute;
  top: calc(100% + 14px); left: -14px;
  min-width: 244px;
  background: var(--nav);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 22px 40px -18px rgba(0,0,0,.7);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .22s ease, visibility .2s;
}
/* puente invisible para que el mouse pueda bajar sin cerrar el menú */
.nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }

.nav__item:hover .nav__sub,
.nav__item:focus-within .nav__sub,
.nav__item.open .nav__sub { opacity: 1; visibility: visible; transform: translateY(0); }

.nav__sub-link {
  display: block;
  padding: 11px 14px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 600; font-size: 15px;
  color: rgba(255,255,255,.82);
  transition: background .2s ease, color .2s ease;
}
.nav__sub-link:hover { background: rgba(255,255,255,.08); color: var(--on-dark); }
.nav__sub-link.active { color: var(--primary-bright); }

@media (max-width: 860px) {
  .nav__drawer .nav__menu > li { display: block; }
  /* el item con submenú sí es flex: texto a la izquierda, flecha a la derecha */
  .nav__drawer .nav__menu > li.nav__item { display: flex; flex-wrap: wrap; align-items: center; }
  .nav__drawer .nav__link--sub {
    display: flex;
    flex: 1; width: auto;
    justify-content: space-between;
    border-bottom: 0;
  }
  .nav__drawer .nav__item { border-bottom: 1px solid rgba(255,255,255,.06); }

  .nav__sub {
    position: static; width: 100%;
    opacity: 1; visibility: visible; transform: none;
    background: transparent; border: 0; box-shadow: none;
    border-radius: 0; padding: 0 0 0 14px;
    max-height: 0; overflow: hidden;
    transition: max-height .3s ease, padding .3s ease;
  }
  .nav__item.open .nav__sub { max-height: 260px; padding-bottom: 10px; }
  .nav__sub-link { padding: 11px 0; }
}

/* ===========================================================
   CTA final de las páginas de servicio (visible en todos los tamaños)
   =========================================================== */
.cta-final { text-align: center; margin-top: 26px; }

/* ===========================================================
   Páginas de servicio: cabecera
   =========================================================== */
.page-hero {
  background: var(--bg-dark);
  padding: 84px 0 72px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.page-hero__inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: 50px; line-height: 1.1; letter-spacing: -0.03em;
  color: var(--on-dark); max-width: 15ch; margin: 14px 0 0;
}
.page-hero h1 em { font-style: normal; color: var(--primary-bright); }
.page-hero p {
  color: rgba(255,255,255,.78);
  font-size: 18px; line-height: 1.65;
  max-width: 60ch; margin: 20px 0 0;
}
.page-hero .btn { margin-top: 30px; }
.page-hero .eyebrow { color: var(--primary-bright); }

.crumbs { font-size: 14px; color: rgba(255,255,255,.55); margin-bottom: 6px; }
.crumbs a { color: rgba(255,255,255,.75); }
.crumbs a:hover { color: var(--on-dark); }

/* ===========================================================
   Páginas de servicio: listas y pasos
   =========================================================== */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist li {
  display: flex; gap: 12px; align-items: flex-start;
  color: var(--muted); font-size: 16px; line-height: 1.6;
}
.checklist li strong { color: var(--ink); }
.checklist svg { flex-shrink: 0; margin-top: 3px; color: var(--primary); }

.steps { display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); margin-top: 44px; }
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
}
.step__num {
  font-family: var(--font-display); font-weight: 800; font-size: 15px;
  color: var(--primary); letter-spacing: .06em; margin-bottom: 10px;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; line-height: 1.6; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: start; }
.split p { color: var(--muted); line-height: 1.7; margin-bottom: 16px; }

.note {
  background: var(--lavender-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.note h3 { font-size: 20px; margin-bottom: 10px; }
.note p { color: var(--muted); line-height: 1.7; margin: 0; }

@media (max-width: 980px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 620px) {
  .page-hero { padding: 56px 0 50px; }
  .page-hero h1 { font-size: 34px; }
  .page-hero p { font-size: 16.5px; }
  .steps { grid-template-columns: 1fr; }
}

/* ===========================================================
   Testimonios — marquesina (misma paleta que la sección de preguntas)
   =========================================================== */
.testimonios { background: var(--bg-dark); color: var(--on-dark); overflow: hidden; }
.testimonios .eyebrow { color: var(--primary-bright); }
.testimonios .section-head h2 { color: #fff; }
.testimonios .section-head p { color: var(--lavender); }

/* --- Marquesina --------------------------------------------------- */
.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-block: 6px;           /* evita que el recorte se coma el borde de las tarjetas */
  /* desvanecido en los bordes para que las tarjetas entren y salgan suave */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  cursor: grab;
  touch-action: pan-y;          /* permite seguir haciendo scroll vertical en el celular */
  user-select: none;
  -webkit-user-select: none;
}
.marquee.is-dragging { cursor: grabbing; }
.marquee__track {
  display: flex;
  gap: 22px;
  width: max-content;
  will-change: transform;
}

.review {
  flex: 0 0 360px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .25s ease, background .25s ease;
}
.review:hover { border-color: var(--primary-bright); background: rgba(128,78,221,.1); }
.review__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.review__stars { display: inline-flex; gap: 2px; color: #FBBC05; }
.review__text {
  color: var(--lavender);
  font-size: 15.5px;
  line-height: 1.65;
  margin: 0;
  flex: 1;
}
.review__author { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.review__avatar {
  width: 25px; height: 25px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  flex-shrink: 0;
}
/* si en lugar de la inicial se pone una foto, entra sola en el círculo */
.review__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.review__name { color: #fff; font-weight: 600; font-size: 15.5px; line-height: 1.3; }
.review__meta { color: rgba(255,255,255,.5); font-size: 13.5px; }

.reviews__cta { text-align: center; margin-top: 44px; }
.reviews__cta .btn { gap: 10px; }

@media (max-width: 660px) {
  .review { flex: 0 0 300px; }
  .reviews__cta .btn { width: 100%; }
}

/* Si el visitante pidió menos movimiento, el avance automático se apaga desde el JS
   y la marquesina queda igualmente arrastrable a mano. */

/* ===== Cómo trabajamos (inicio) ===== */
.proceso { background: var(--lavender-soft); }
.proceso .cta-final { margin-top: 40px; }

/* ===== Botón de WhatsApp en Contacto ===== */
.contact__wa { margin-top: 22px; }
.contact__wa .btn { padding: 14px 28px; font-size: 17px; }
@media (max-width: 450px) {
  .contact__wa .btn { width: 100%; }
}

/* Campo "WhatsApp o teléfono" del formulario: solo en celulares (<426px) */
.field--mobile { display: none; }
@media (max-width: 425.98px) {
  .field--mobile { display: block; }
}

/* Botón "Pedir presupuesto" al final de Servicios: solo en celulares/tablets */
.servicios__cta-mobile { display: none; }
@media (max-width: 760px) {
  .servicios__cta-mobile { display: block; margin-top: 32px; text-align: center; }
  .servicios__cta-mobile .btn { width: 100%; }
}

/* Enlaces dentro de un texto corrido (ej. "Sobre nosotros") */
.text-link { color: inherit; text-decoration: underline; text-decoration-color: var(--primary-bright); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.text-link:hover { color: var(--primary); }

/* Footer: enlaces a las landings por rubro */
.footer__rubros {
  max-width: var(--maxw); margin: 0 auto; padding: 18px 24px 26px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px;
  font-size: 14px;
}
.footer__rubros-title { color: rgba(255,255,255,.55); font-weight: 600; letter-spacing: .02em; }
.footer__rubros a { color: rgba(255,255,255,.8); text-decoration: none; }
.footer__rubros a:hover { color: var(--primary-bright); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .footer__rubros { justify-content: center; text-align: center; padding-bottom: 96px; } /* espacio para el botón flotante */
  .footer__rubros-title { flex-basis: 100%; }
}

/* ---- Footer en columnas: servicios, rubros, provincias, JM Desarrollo Web ---- */
.footer__cols {
  max-width: var(--maxw); margin: 0 auto; padding: 32px 24px 36px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: grid; grid-template-columns: 1fr 2fr 1fr 1fr; gap: 28px 32px;
  font-size: 14px;
}
.footer__title { margin: 0 0 12px; color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .02em; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__col--wide ul { display: block; columns: 2; column-gap: 24px; }
.footer__col--wide li { margin-bottom: 8px; break-inside: avoid; }
.footer__col a { color: rgba(255,255,255,.7); text-decoration: none; }
.footer__col a:hover, .footer__col a[aria-current="page"] { color: var(--primary-bright); }
.footer__col a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 960px) {
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__col--wide { grid-column: 1 / -1; grid-row: 1; }
}
@media (max-width: 560px) {
  .footer__cols { grid-template-columns: 1fr; padding-bottom: 104px; } /* espacio para el botón flotante */
}

/* ---- Caso real con captura (posicionamiento) ---- */
.caso { align-items: center; }
.caso .checklist { margin: 4px 0 18px; }
.caso__nota { font-size: 14px; }
.caso__img { margin: 0; }
.caso__img img {
  display: block; width: 100%; height: auto;
  border-radius: 14px; border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(24, 16, 40, .45);
}
.caso__img figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); text-align: center; }
@media (max-width: 960px) { .caso { grid-template-columns: 1fr; gap: 36px; } }

/* Dos tarjetas por fila (punto de partida en posicionamiento) */
.cards--2 { grid-template-columns: repeat(2, 1fr); max-width: 960px; margin: 0 auto; }
@media (max-width: 660px) { .cards--2 { grid-template-columns: 1fr; } }

/* Cabecera de servicio con imagen al costado (tiendas online) */
.page-hero__inner--media { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.page-hero__media { margin: 0; }
.page-hero__media img {
  display: block; width: 100%; height: auto;
  border-radius: 14px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.08);
}
@media (max-width: 980px) {
  .page-hero__inner--media { grid-template-columns: 1fr; gap: 40px; }
}

/* Menú: con la marca "JM Desarrollo Web" el espacio es menor en pantallas medianas */
@media (min-width: 961px) {
  .nav__link { white-space: nowrap; }
}
@media (min-width: 961px) and (max-width: 1180px) {
  .nav__menu { gap: 18px; }
  .nav__link { font-size: 15px; }
  .nav .brand { font-size: 20px; }
}
