/* =========================================================
   MODO WEB — HOME (rediseño oct. 2026)
   Mismos colores de siempre: azul noche, violeta var(--mw-violet),
   celeste var(--mw-sky), azul marino var(--mw-navy). Clases con prefijo h-.
   La sección «Quiénes somos» sigue usando sus estilos de app.css.
   ========================================================= */

.home {
  --h-night: var(--mw-night);
  --h-navy: var(--mw-navy);
  --h-violet: var(--mw-violet);
  --h-blue: #0757b9;
  --h-sky: var(--mw-sky);
  --h-cyan: #6fd9ff;
  --h-text: var(--mw-navy);
  --h-muted: #5d6a84;
  --h-line: #e3e7f1;
  --h-bg: #ffffff;
  --h-soft: #f5f8ff;
  --h-card: #ffffff;
  --h-shadow: 0 1px 2px rgba(15, 30, 70, .06), 0 12px 32px rgba(15, 30, 70, .08);
  --h-shadow-hover: 0 2px 4px rgba(15, 30, 70, .08), 0 24px 48px rgba(15, 30, 70, .14);
  --h-radius: 18px;
  --h-pad: max(5vw, 24px);

  background: var(--h-bg);
  color: var(--h-text);
}

html[data-theme="dark"] .home {
  --h-text: #eef2ff;
  --h-muted: #9aa6c4;
  --h-line: #1f2b52;
  --h-bg: var(--mw-night);
  --h-soft: #0b1124;
  --h-card: #0f1630;
  --h-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .3);
  --h-shadow-hover: 0 2px 4px rgba(0, 0, 0, .4), 0 24px 48px rgba(0, 0, 0, .45);
}

.home main { overflow-x: clip; }


/* ---------- Botones ---------- */

.h-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-size: .92rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease;
}

.h-btn:hover { transform: translateY(-2px); }
.h-btn:focus-visible { outline: 3px solid var(--h-cyan); outline-offset: 3px; }
.h-btn span[aria-hidden] { transition: transform .2s ease; }
.h-btn:hover span[aria-hidden] { transform: translateX(3px); }

.h-btn--light { color: var(--h-navy); background: #fff; box-shadow: 0 10px 30px rgba(0, 20, 70, .25); }
.h-btn--light:hover { box-shadow: 0 14px 36px rgba(0, 20, 70, .32); }

.h-btn--ghost { color: #fff; background: rgba(255, 255, 255, .06); border-color: rgba(190, 225, 255, .28); backdrop-filter: blur(10px); }
.h-btn--ghost:hover { background: rgba(255, 255, 255, .13); }

.h-btn--dark { color: var(--mw-btn-text); background: var(--mw-btn); box-shadow: 0 10px 24px rgb(var(--mw-navy-rgb) / .22); }
.h-btn--dark:hover { background: color-mix(in srgb, var(--mw-btn) 86%, #fff); }

.h-btn--outline { color: var(--h-text); background: transparent; border-color: var(--h-line); }
.h-btn--outline:hover { border-color: var(--h-violet); color: var(--h-violet); }

.h-btn--sm { min-height: 38px; padding: 0 14px; font-size: .84rem; border-radius: 10px; }

html[data-theme="dark"] .h-btn--dark { color: var(--h-navy); background: #fff; }
html[data-theme="dark"] .h-btn--dark:hover { background: #dfe8ff; }
html[data-theme="dark"] .h-btn--outline:hover { border-color: var(--h-sky); color: var(--h-sky); }


/* ---------- Encabezado ---------- */

.h-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  min-height: min(780px, 100svh);
  padding: 130px max(24px, calc((100% - 1280px) / 2)) 80px;
  color: #fff;
  background:
    radial-gradient(ellipse 60% 70% at 0% 10%, rgba(0, 150, 230, .55), transparent 70%),
    radial-gradient(ellipse 55% 60% at 100% 100%, rgba(0, 174, 200, .38), transparent 70%),
    radial-gradient(ellipse 40% 45% at 70% 10%, rgb(var(--mw-violet-rgb) / .35), transparent 70%),
    var(--h-night);
}

.h-hero__copy { min-width: 0; max-width: 620px; }

.h-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid rgb(var(--mw-sky-rgb) / .28);
  border-radius: 999px;
  color: #cfeeff;
  background: rgb(var(--mw-sky-rgb) / .08);
  font-size: .8rem;
  font-weight: 700;
}

.h-chip__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #48eb91;
  box-shadow: 0 0 0 4px rgba(72, 235, 145, .18);
}

.h-hero h1 {
  margin: 22px 0 20px;
  font-size: clamp(2.6rem, 4.8vw, 4.5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.055em;
  color: #fff;
}

.h-hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--h-cyan), #b7b5ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.h-hero p {
  max-width: 520px;
  margin: 0 0 32px;
  color: #c9d4ea;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.7;
}

.h-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Ventana de navegador */
.h-hero__visual { position: relative; min-width: 0; width: 100%; max-width: 660px; justify-self: center; }

.h-browser {
  overflow: hidden;
  border: 1px solid rgba(190, 225, 255, .22);
  border-radius: 16px;
  background: rgba(255, 255, 255, .06);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .5), 0 0 0 6px rgba(255, 255, 255, .03);
  transform: perspective(1600px) rotateY(-6deg) rotateX(2deg);
  transition: transform .5s ease;
}

.h-hero__visual:hover .h-browser { transform: perspective(1600px) rotateY(0) rotateX(0); }

.h-browser__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 40px;
  padding: 0 14px;
  background: rgba(10, 18, 40, .85);
  border-bottom: 1px solid rgba(190, 225, 255, .12);
}

.h-browser__dots { display: flex; gap: 6px; }
.h-browser__dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a4670; }
.h-browser__dots i:first-child { background: #ff6b6b; }
.h-browser__dots i:nth-child(2) { background: #ffc94d; }
.h-browser__dots i:last-child { background: #48eb91; }

.h-browser__url {
  flex: 1;
  max-width: 280px;
  margin: 0 auto;
  padding: 5px 12px;
  border-radius: 8px;
  color: #a9b8d8;
  background: rgba(255, 255, 255, .07);
  font-size: .75rem;
  text-align: center;
}

.h-browser__screen { aspect-ratio: 16 / 10; background: #0b1020; overflow: hidden; }
.h-browser__shot { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Vista previa a escala: el iframe mide 1280 px y se achica (script.js pone --scale) */
.h-scale { position: relative; display: block; overflow: hidden; }

.h-scale iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1280px;
  height: calc(100% / var(--scale, .4));
  border: 0;
  transform: scale(var(--scale, .4));
  transform-origin: 0 0;
  pointer-events: none;
}

/* Etiquetas flotantes */
.h-float {
  position: absolute;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 12px;
  color: var(--h-navy);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 14px 30px rgba(0, 10, 40, .3);
  font-size: .82rem;
  font-weight: 800;
  white-space: nowrap;
  animation: hFlotar 6s ease-in-out infinite alternate;
}

.h-float--a { top: 16%; left: -28px; }
.h-float--b { bottom: 18%; right: -18px; animation-delay: -2s; }
.h-float--c { bottom: -16px; left: 18%; animation-delay: -4s; }

@keyframes hFlotar {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}


/* ---------- Secciones ---------- */

.h-section {
  padding: clamp(72px, 9vw, 120px) var(--h-pad);
  background: var(--h-bg);
  scroll-margin-top: 70px;
}

.h-section--soft { background: var(--h-soft); }

.home .equipo { scroll-margin-top: 70px; }

.h-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  max-width: 1280px;
  margin: 0 auto 48px;
}

.h-head h2,
.h-help h2 {
  margin: 12px 0 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.05em;
  color: var(--h-text);
}

.h-head h2 em,
.h-help h2 em { font-style: normal; color: var(--h-violet); }

html[data-theme="dark"] .h-head h2 em,
html[data-theme="dark"] .h-help h2 em { color: var(--h-sky); }

.h-head p {
  max-width: 420px;
  margin: 0;
  color: var(--h-muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.h-head--center { flex-direction: column; align-items: center; text-align: center; }
.h-head--center p { max-width: 560px; }

.h-eyebrow {
  display: inline-block;
  color: var(--h-blue);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

html[data-theme="dark"] .h-eyebrow { color: var(--h-sky); }

.h-center { display: flex; justify-content: center; margin-top: 44px; }

.h-empty { grid-column: 1 / -1; color: var(--h-muted); text-align: center; }
.h-empty a { color: var(--h-violet); font-weight: 700; text-decoration: underline; }


/* ---------- Plantillas: carrusel horizontal ---------- */

.h-carousel {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
}

.h-carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px) / 3);
  gap: 24px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 4px;
  padding: 8px 4px 22px;
  margin: -8px -4px 0;
  scrollbar-width: thin;
  scrollbar-color: rgb(var(--mw-violet-rgb) / .45) transparent;
  cursor: grab;
}

.h-carousel__track:focus-visible { outline: 3px solid var(--h-cyan); outline-offset: 4px; border-radius: 12px; }
.h-carousel__track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.h-carousel__track.is-dragging .h-card { pointer-events: none; }
.h-carousel__track > .h-card { scroll-snap-align: start; }
.h-carousel__track > .h-empty { grid-column: 1 / -1; }

.h-carousel__nav {
  position: absolute;
  top: calc(50% - 30px);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--h-line);
  border-radius: 50%;
  color: var(--h-text);
  background: var(--h-card);
  box-shadow: var(--h-shadow);
  font: inherit;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  transition: opacity .2s ease, transform .2s ease, border-color .2s ease;
}

.h-carousel__nav:hover { border-color: var(--h-violet); transform: scale(1.06); }
.h-carousel__nav:focus-visible { outline: 3px solid var(--h-cyan); outline-offset: 3px; }
.h-carousel__nav:disabled { opacity: 0; pointer-events: none; }
.h-carousel__nav--prev { left: -22px; }
.h-carousel__nav--next { right: -22px; }

.h-card {
  overflow: hidden;
  border: 1px solid var(--h-line);
  border-radius: var(--h-radius);
  background: var(--h-card);
  box-shadow: var(--h-shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}

.h-card:hover { transform: translateY(-6px); box-shadow: var(--h-shadow-hover); }

.h-card__frame {
  aspect-ratio: 16 / 10;
  background: var(--h-soft);
  border-bottom: 1px solid var(--h-line);
}

.h-card__frame::after {
  content: "Usar esta plantilla →";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgb(var(--mw-navy-rgb) / .55);
  font-weight: 800;
  opacity: 0;
  transition: opacity .25s ease;
}

.h-card__frame:hover::after,
.h-card__frame:focus-visible::after { opacity: 1; }

.h-card__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
}

.h-card__cat { color: var(--h-muted); font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.h-card h3 { margin: 2px 0 0; font-size: 1.1rem; letter-spacing: -.02em; color: var(--h-text); }
.h-card__actions { display: flex; align-items: center; gap: 12px; }
.h-card__link { padding: 6px 4px; border: 0; color: var(--h-muted); background: none; font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; }
.h-card__link:focus-visible { outline: 3px solid var(--h-cyan); outline-offset: 2px; border-radius: 6px; }
.h-card__link:hover { color: var(--h-violet); }


/* ---------- Vista previa superpuesta («Ver») ---------- */

.h-preview {
  width: min(1200px, calc(100vw - 32px));
  height: min(820px, calc(100dvh - 32px));
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--h-card);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .45);
}

.h-preview[open] { display: flex; flex-direction: column; }
.h-preview::backdrop { background: rgba(7, 11, 24, .72); backdrop-filter: blur(4px); }

.h-preview__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 10px 20px;
  border-bottom: 1px solid var(--h-line);
  color: var(--h-text);
}

.h-preview__bar strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-preview__actions { display: flex; align-items: center; gap: 8px; }

.h-preview__close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--h-line);
  border-radius: 10px;
  color: var(--h-text);
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.h-preview__close:hover { border-color: var(--h-violet); }
.h-preview__close:focus-visible { outline: 3px solid var(--h-cyan); outline-offset: 2px; }
.h-preview iframe { flex: 1; width: 100%; border: 0; background: #fff; }
.h-preview.is-loading::before { inset: 30% 50% 30% 8%; }
.h-preview.is-loading::after { top: 59px; }
/* Sin saltos al abrir la vista previa: se guarda el lugar de la barra de desplazamiento. */
html.h-no-scroll { overflow: hidden; scrollbar-gutter: stable; }


/* ---------- Qué podés hacer: 6 tarjetas iguales (3 × 2) ---------- */

.h-bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 320px;
  gap: 18px;
  max-width: 1280px;
  margin: 0 auto;
}

.h-tile {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--h-line);
  border-radius: var(--h-radius);
  background: var(--h-card);
  box-shadow: var(--h-shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.h-tile:hover { transform: translateY(-5px); box-shadow: var(--h-shadow-hover); border-color: var(--h-violet); }
.h-tile:focus-visible { outline: 3px solid var(--h-cyan); outline-offset: 3px; }

.h-tile--photo { color: #fff; border-color: transparent; }

.h-tile--photo img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.h-tile--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(7, 11, 24, .9) 0%, rgba(7, 11, 24, .35) 55%, rgba(7, 11, 24, .05) 100%);
}

.h-tile--photo:hover img { transform: scale(1.05); }

.h-tile__body { display: grid; gap: 6px; }
.h-tile__body strong { font-size: clamp(1.3rem, 1.8vw, 1.6rem); letter-spacing: -.03em; }
.h-tile__body > span:last-child { color: var(--h-muted); font-size: .92rem; line-height: 1.5; }
.h-tile--photo .h-tile__body > span:last-child { color: #d6e0f5; }

.h-tile__count {
  justify-self: start;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--h-violet);
  background: rgb(var(--mw-violet-rgb) / .1);
  font-size: .74rem;
  font-weight: 800;
}

.h-tile--photo .h-tile__count { color: #fff; background: rgba(255, 255, 255, .18); backdrop-filter: blur(8px); }
html[data-theme="dark"] .h-tile__count { color: var(--h-sky); background: rgb(var(--mw-sky-rgb) / .1); }

.h-tile__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: auto;
  border-radius: 14px;
  background: var(--h-soft);
  font-size: 1.4rem;
}

.h-tile__arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--h-text);
  background: var(--h-soft);
  font-weight: 800;
  transition: transform .25s ease, background-color .25s ease, color .25s ease;
}

.h-tile--photo .h-tile__arrow { color: var(--h-navy); background: #fff; }
.h-tile:hover .h-tile__arrow { transform: rotate(45deg); color: #fff; background: var(--h-violet); }


/* ---------- Cómo funciona ---------- */

.h-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

/* Línea que une los pasos */
.h-steps::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--h-violet), var(--h-cyan));
  opacity: .35;
}

.h-step {
  position: relative;
  padding: 0 24px 28px;
  text-align: center;
}

.h-step__num {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 22px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--h-violet), var(--h-blue));
  box-shadow: 0 0 0 6px var(--h-bg), 0 10px 24px rgb(var(--mw-violet-rgb) / .35);
  font-weight: 800;
}

.h-step__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border: 1px solid var(--h-line);
  border-radius: 18px;
  background: var(--h-soft);
  font-size: 1.7rem;
}

.h-step h3 { margin: 0 0 8px; font-size: 1.12rem; letter-spacing: -.02em; color: var(--h-text); }
.h-step p { margin: 0; color: var(--h-muted); font-size: .93rem; line-height: 1.6; }

.h-cta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1280px;
  margin: 48px auto 0;
  padding: 28px 32px;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(ellipse 50% 120% at 0% 0%, rgba(0, 150, 230, .45), transparent 70%),
    radial-gradient(ellipse 45% 120% at 100% 100%, rgb(var(--mw-violet-rgb) / .45), transparent 70%),
    var(--h-night);
}

.h-cta-bar div { display: grid; gap: 4px; }
.h-cta-bar strong { font-size: 1.25rem; letter-spacing: -.02em; }
.h-cta-bar span { color: #c9d4ea; }


/* ---------- Planes ---------- */

.h-plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  max-width: 1280px;
  margin: 0 auto;
}

.h-note { margin: 18px 0 0; color: var(--h-muted); text-align: center; }
.h-note:empty { display: none; }


/* ---------- Ayuda ---------- */

.h-help {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 80px);
  max-width: 1280px;
  margin: 0 auto;
}

.h-help__intro p { max-width: 460px; margin: 18px 0 28px; color: var(--h-muted); font-size: 1.02rem; line-height: 1.65; }
.h-help__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.h-help__contact { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.h-help__contact .equipo-enlace { color: var(--h-text); border-color: var(--h-line); background: var(--h-soft); }

.h-faq { display: grid; gap: 12px; align-content: start; }

.h-faq details {
  border: 1px solid var(--h-line);
  border-radius: 16px;
  background: var(--h-card);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.h-faq details[open] { border-color: var(--h-violet); box-shadow: var(--h-shadow); }

.h-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  color: var(--h-text);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.h-faq summary::-webkit-details-marker { display: none; }

.h-faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--h-violet);
  background: rgb(var(--mw-violet-rgb) / .1);
  font-size: 1.1rem;
  transition: transform .2s ease;
}

.h-faq details[open] summary::after { transform: rotate(45deg); }
.h-faq summary:focus-visible { outline: 3px solid var(--h-cyan); outline-offset: -3px; border-radius: 16px; }
.h-faq p { margin: 0; padding: 0 22px 20px; color: var(--h-muted); line-height: 1.65; }


/* ---------- Carga de productos desde un documento ---------- */

.h-load { max-width: 1280px; margin: 0 auto; }

/* Orden: título, descripción (justo debajo), mini tutorial 1-2-3 y el botón al final. */
.h-load__copy {
  display: grid;
  gap: 18px;
  max-width: 820px;
  margin: 0 auto 56px;
  text-align: center;
}

.h-load__copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.05em;
  color: var(--h-text);
}

.h-load__copy h2 em { font-style: normal; color: var(--h-violet); }
html[data-theme="dark"] .h-load__copy h2 em { color: var(--h-sky); }

.h-load__copy > p { justify-self: center; margin: 0; max-width: 640px; color: var(--h-muted); font-size: 1.08rem; line-height: 1.7; }

.h-load__cta { display: flex; justify-content: center; margin-top: 48px; }

.h-load__flow {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr) minmax(0, .8fr);
  gap: 56px;
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
}

.h-load__step { position: relative; display: flex; flex-direction: column; gap: 14px; }

.h-load__step + .h-load__step::before {
  content: "→";
  position: absolute;
  top: calc(50% + 6px);
  left: -42px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  background: var(--h-violet);
  font-weight: 800;
  box-shadow: 0 6px 16px rgb(var(--mw-violet-rgb) / .35);
}

.h-load__label { display: flex; align-items: center; gap: 10px; color: var(--h-text); font-weight: 800; }

.h-load__label b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: var(--h-violet);
  background: rgb(var(--mw-violet-rgb) / .12);
  font-size: .8rem;
}

html[data-theme="dark"] .h-load__label b { color: var(--h-sky); background: rgb(var(--mw-sky-rgb) / .12); }

.h-doc,
.h-shop,
.h-cart {
  flex: 1;
  padding: 18px;
  border: 1px solid var(--h-line);
  border-radius: 16px;
  background: var(--h-card);
  box-shadow: var(--h-shadow);
}

.h-doc { display: grid; align-content: start; gap: 12px; }
.h-doc__tag { justify-self: start; padding: 4px 10px; border-radius: 8px; color: #b42318; background: #fde8e7; font-size: .78rem; font-weight: 800; }
html[data-theme="dark"] .h-doc__tag { color: #ffb4ab; background: rgba(255, 120, 110, .14); }
.h-doc__row { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px dashed var(--h-line); }
.h-doc__row i { flex: 1; height: 8px; border-radius: 4px; background: var(--h-line); }
.h-doc__row b { color: var(--h-text); font-size: .82rem; }

.h-shop { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

.h-prod {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--h-line);
  border-radius: 12px;
  background: var(--h-bg);
}

.h-prod__img { display: block; aspect-ratio: 4 / 3; margin-bottom: 6px; border-radius: 8px; background: linear-gradient(135deg, var(--mw-sky), var(--mw-violet)); }
.h-prod__img--b { background: linear-gradient(135deg, #ffd38c, #ff7a59); }
.h-prod__img--c { background: linear-gradient(135deg, #7be0a8, #0757b9); }
.h-prod strong { overflow: hidden; color: var(--h-text); font-size: .86rem; text-overflow: ellipsis; white-space: nowrap; }
.h-prod small { overflow: hidden; color: var(--h-muted); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.h-prod b { color: var(--h-text); font-size: .86rem; }
.h-prod em { margin-top: 4px; padding: 5px 0; border-radius: 8px; color: #fff; background: var(--h-navy); font-size: .72rem; font-style: normal; font-weight: 800; text-align: center; }
html[data-theme="dark"] .h-prod em { color: var(--h-navy); background: var(--h-sky); }

.h-cart { display: grid; align-content: start; gap: 12px; }
.h-cart__title { color: var(--h-text); font-weight: 800; }
.h-cart__line { display: flex; justify-content: space-between; gap: 8px; padding-bottom: 10px; border-bottom: 1px dashed var(--h-line); color: var(--h-muted); font-size: .86rem; }
.h-cart__line b { color: var(--h-text); }
.h-cart__send { margin-top: 4px; padding: 10px; border-radius: 10px; color: #fff; background: #1f9d55; font-size: .84rem; font-weight: 800; text-align: center; }


/* ---------- Proyectos a medida (freelance) ---------- */

.h-freelances {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 20px;
  max-width: 1280px;
  margin: 0 auto;
}

.h-freelance {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 28px;
  border: 1px solid rgba(190, 225, 255, .16);
  border-radius: var(--h-radius);
  color: #fff;
  background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
  backdrop-filter: blur(10px);
}

.h-freelance__rol { color: var(--h-sky); font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.h-freelance h3 { margin: 0; font-size: 1.5rem; letter-spacing: -.03em; color: #fff; }
.h-freelance p { flex: 1; margin: 0 0 8px; color: #c9d4ea; line-height: 1.6; }
.h-freelance__mail { color: #9fb2d4; font-size: .84rem; overflow-wrap: anywhere; }

/* ---------- Testimonios ---------- */

.h-testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 400px));
  justify-content: center;
  gap: 20px;
  max-width: 1280px;
  margin: 0 auto;
}

.h-quote {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
  padding: 26px;
  border: 1px solid var(--h-line);
  border-radius: var(--h-radius);
  background: var(--h-card);
  box-shadow: var(--h-shadow);
}

.h-quote blockquote { margin: 0; color: var(--h-text); font-size: 1.02rem; line-height: 1.65; overflow-wrap: anywhere; white-space: pre-line; }
.h-quote blockquote::before { content: "\201C"; display: block; height: 28px; color: var(--h-violet); font-size: 3rem; line-height: 1; }
.h-quote figcaption { margin-top: auto; color: var(--h-muted); font-weight: 800; }

/* Pirámide: todas las tarjetas en la misma celda (la altura la da la más
   alta, así no salta), la del centro adelante y grande, las de los costados
   atrás y más chicas. Las demás esperan escondidas detrás del centro. */
.h-testimonials.is-pyramid {
  --t-lado: 90%;
  --t-escala-lado: .74;
  display: grid;
  grid-template-columns: minmax(0, min(460px, 100%));
  justify-content: center;
  align-items: center;
  padding: 24px 0 8px;
  overflow: clip;
  overflow-clip-margin: 24px;
}

.is-pyramid .h-quote {
  grid-area: 1 / 1;
  min-height: 220px;
  padding: 32px;
  background: linear-gradient(160deg, #18244a, #0f1834);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .5s ease, box-shadow .5s ease, filter .5s ease;
  will-change: transform;
}

.is-pyramid .h-quote[data-pos="0"] { z-index: 3; transform: none; opacity: 1; box-shadow: var(--h-shadow-hover); }
.is-pyramid .h-quote[data-pos="-1"] { z-index: 2; transform: translateX(calc(var(--t-lado) * -1)) scale(var(--t-escala-lado)); opacity: .55; filter: saturate(.8); }
.is-pyramid .h-quote[data-pos="1"] { z-index: 2; transform: translateX(var(--t-lado)) scale(var(--t-escala-lado)); opacity: .55; filter: saturate(.8); }
.is-pyramid .h-quote[data-pos="lejos"] { z-index: 1; transform: scale(.6); opacity: 0; pointer-events: none; }

.is-pyramid .h-quote blockquote { font-size: 1.22rem; line-height: 1.55; }
.is-pyramid .h-quote:not(.is-active) { cursor: pointer; }

.h-testimonios-aviso {
  width: fit-content;
  margin: -24px auto 8px;
  padding: 6px 14px;
  border: 1px dashed rgba(190, 225, 255, .35);
  border-radius: 999px;
  color: #c9d4ea;
  font-size: .84rem;
  font-weight: 700;
}

.h-testimonios-aporte { margin-top: 28px; }

.is-pyramid { touch-action: pan-y; user-select: none; cursor: grab; }
.is-pyramid:active { cursor: grabbing; }
.h-testimonials.is-pyramid:focus-visible { outline: 3px solid var(--h-sky); outline-offset: 6px; border-radius: 12px; }

.h-testimonios-controles { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; }
.h-testimonios-controles[hidden] { display: none; }
.h-testimonios-controles .h-carousel__nav { position: static; transform: none; display: grid; }
.h-testimonios-puntos { display: flex; gap: 8px; }

.h-testimonios-puntos button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(190, 225, 255, .35);
  cursor: pointer;
  transition: width .3s ease, background-color .3s ease;
}

.h-testimonios-puntos button[aria-current="true"] { width: 28px; background: var(--h-sky); }
.h-testimonios-puntos button:focus-visible { outline: 3px solid var(--h-sky); outline-offset: 3px; }

.h-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 1200px) {
  /* Pantallas medianas: los costados se meten un poco detrás del central. */
  .h-testimonials.is-pyramid { --t-lado: 70%; }
}

@media (max-width: 620px) {
  /* En el celular manda el del centro: los costados apenas asoman. */
  .h-testimonials.is-pyramid { --t-lado: 78%; --t-escala-lado: .82; grid-template-columns: minmax(0, 84%); }
  .is-pyramid .h-quote { min-height: 200px; padding: 24px; }
  .is-pyramid .h-quote[data-pos="-1"],
  .is-pyramid .h-quote[data-pos="1"] { opacity: .35; }
  .is-pyramid .h-quote blockquote { font-size: 1.08rem; }
  .h-testimonios-aviso { margin-top: -12px; }
}

@media (prefers-reduced-motion: reduce) {
  .is-pyramid .h-quote { transition: none; }
}

.h-testimonials__empty {
  grid-column: 1 / -1;
  justify-self: center;
  max-width: 620px;
  padding: 32px;
  border: 1px dashed var(--h-line);
  border-radius: var(--h-radius);
  background: var(--h-card);
  text-align: center;
}

.h-testimonials__empty p { margin: 0 0 8px; color: var(--h-muted); line-height: 1.6; }
.h-testimonials__empty .h-btn { margin-top: 12px; }


/* ---------- Zonas oscuras en el tema claro (como el encabezado) ---------- */

.h-section.h-dark {
  color: #fff;
  background:
    radial-gradient(ellipse 55% 60% at 0% 0%, rgba(0, 150, 230, .42), transparent 70%),
    radial-gradient(ellipse 50% 60% at 100% 100%, rgb(var(--mw-violet-rgb) / .4), transparent 70%),
    radial-gradient(ellipse 40% 50% at 75% 10%, rgba(0, 174, 200, .22), transparent 70%),
    var(--mw-night-2);
}

/* Dentro de una sección oscura, todo usa los colores del tema oscuro. */
.h-section.h-dark {
  --h-text: #eef2ff;
  --h-muted: #b3c0dc;
  --h-line: rgba(190, 225, 255, .16);
  --h-card: rgba(255, 255, 255, .06);
  --h-soft: rgba(255, 255, 255, .07);
  --h-bg: var(--mw-night-2);
  --h-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .3);
  --h-shadow-hover: 0 2px 4px rgba(0, 0, 0, .4), 0 24px 48px rgba(0, 0, 0, .45);
}

.h-dark .h-btn--dark { color: var(--h-navy); background: #fff; }
.h-dark .h-btn--dark:hover { background: #dfe8ff; }
.h-dark .h-btn--outline { color: #fff; border-color: rgba(190, 225, 255, .3); }
.h-dark .h-btn--outline:hover { color: var(--h-sky); border-color: var(--h-sky); }
.h-dark .h-quote blockquote::before { color: var(--h-sky); }
.h-dark .h-cta-bar { border: 1px solid rgba(190, 225, 255, .16); }
.h-dark .h-steps::before { opacity: .55; }

.h-dark .h-head h2 { color: #fff; }
.h-dark .h-head h2 em { color: var(--h-sky); }
.h-dark .h-head p { color: #c9d4ea; }
.h-dark .h-tile { border-color: rgba(190, 225, 255, .12); }
.h-dark .h-tile:hover { border-color: var(--h-sky); }


/* ---------- Luz que sigue al mouse (js/theme.js pone las coordenadas) ----------
   En los dos temas, en toda la página: celeste en el oscuro y violeta suave
   en el claro (más un brillo celeste dentro de las zonas oscuras).
   Sin mouse (pantallas táctiles) no aparece. */

.h-glow { position: relative; isolation: isolate; }

.h-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(460px circle at var(--gx, -999px) var(--gy, -999px), rgb(var(--mw-sky-rgb) / .11), transparent 70%);
  opacity: 0;
  transition: opacity .35s ease;
}

html:not([data-theme="dark"]) .h-dark.is-lit::after { opacity: 1; }


/* ---------- Nosotros + Proyecto a medida: un solo fondo continuo ----------
   Las dos secciones quedan transparentes sobre el mismo fondo, con las
   luces alternadas (izquierda, derecha, izquierda, derecha) de arriba
   hacia abajo, así no se nota dónde termina una y empieza la otra. */

.h-unido {
  position: relative;
  isolation: isolate;
  color: #fff;
  background:
    radial-gradient(ellipse 52% 30% at 0% 4%, rgba(0, 150, 230, .38), transparent 70%),
    radial-gradient(ellipse 50% 30% at 100% 34%, rgb(var(--mw-violet-rgb) / .36), transparent 70%),
    radial-gradient(ellipse 52% 30% at 0% 66%, rgba(0, 174, 200, .24), transparent 70%),
    radial-gradient(ellipse 50% 32% at 100% 96%, rgb(var(--mw-violet-rgb) / .34), transparent 70%),
    var(--mw-night-2);
}

.h-unido > .equipo,
.h-unido > .h-section.h-dark { background: transparent; border-top: 0; }

.h-unido .equipo::before,
.h-unido .h-dark::after { display: none; }

.h-unido > .h-section.h-dark { padding-top: clamp(24px, 4vw, 48px); }

.h-unido::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(460px circle at var(--gx, -999px) var(--gy, -999px), rgb(var(--mw-sky-rgb) / .11), transparent 70%);
  opacity: 0;
  transition: opacity .35s ease;
}

html:not([data-theme="dark"]) .h-unido.is-lit::after { opacity: 1; }
html[data-theme="dark"] .home .h-unido { background: transparent; }

.mw-glow {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, -999px) var(--my, -999px), rgb(var(--mw-sky-rgb) / .07), transparent 70%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity .35s ease;
}

.mw-glow.is-on { opacity: 1; }

/* Tema claro: luz violeta muy suave (sobre fondo claro «screen» no se vería). */
html:not([data-theme="dark"]) .mw-glow {
  background: radial-gradient(560px circle at var(--mx, -999px) var(--my, -999px), rgb(var(--mw-violet-rgb) / .075), rgba(0, 174, 230, .03) 45%, transparent 70%);
  mix-blend-mode: multiply;
}


/* ---------- Tema oscuro: un solo fondo continuo, sin cortes entre secciones ---------- */

html[data-theme="dark"] .home main {
  background:
    radial-gradient(ellipse 55% 900px at 100% 18%, rgba(0, 150, 230, .16), transparent 70%),
    radial-gradient(ellipse 50% 900px at 0% 34%, rgb(var(--mw-violet-rgb) / .13), transparent 70%),
    radial-gradient(ellipse 55% 900px at 100% 52%, rgba(0, 174, 200, .12), transparent 70%),
    radial-gradient(ellipse 50% 900px at 0% 70%, rgba(0, 150, 230, .12), transparent 70%),
    radial-gradient(ellipse 55% 900px at 100% 88%, rgb(var(--mw-violet-rgb) / .1), transparent 70%),
    var(--h-night);
}

html[data-theme="dark"] .home .h-section,
html[data-theme="dark"] .home .h-section--soft,
html[data-theme="dark"] .home .h-section.h-dark,
html[data-theme="dark"] .home .equipo { background: transparent; border: 0; }

html[data-theme="dark"] .home .equipo::before { display: none; }

/* El encabezado conserva sus luces y se funde con el resto hacia abajo. */
html[data-theme="dark"] .home .h-hero {
  background:
    linear-gradient(to bottom, transparent 62%, var(--h-night) 100%),
    radial-gradient(ellipse 60% 70% at 0% 10%, rgba(0, 150, 230, .55), transparent 70%),
    radial-gradient(ellipse 55% 60% at 100% 100%, rgba(0, 174, 200, .38), transparent 70%),
    radial-gradient(ellipse 40% 45% at 70% 10%, rgb(var(--mw-violet-rgb) / .35), transparent 70%),
    var(--h-night);
}


/* ---------- Pie ---------- */

html[data-theme="dark"] .home footer { background: var(--h-night); border-color: transparent; color: var(--h-muted); }


/* ---------- Tablets ---------- */

@media (max-width: 1100px) {
  .h-carousel__track { grid-auto-columns: calc((100% - 24px) / 2); }
  .h-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 280px; }
  .h-load__flow { grid-template-columns: 1fr; gap: 48px; max-width: 620px; margin: 0 auto; }
  .h-load__step + .h-load__step::before { content: "↓"; top: -38px; left: calc(50% - 14px); }
}

@media (max-width: 960px) {
  .h-hero { grid-template-columns: 1fr; min-height: 0; padding-top: 120px; }
  .h-hero__copy { width: 100%; justify-self: center; }
  .h-hero__visual { max-width: 640px; }
  .h-browser { transform: none; }
  .h-float--a { left: -8px; }
  .h-float--b { right: -8px; }

  .h-head { flex-direction: column; align-items: flex-start; }
  .h-head--center { align-items: center; }

  .h-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .h-steps::before { display: none; }

  .h-help { grid-template-columns: 1fr; }

  .h-load__copy { margin-bottom: 44px; }
  .h-load__cta { margin-top: 40px; }

  .h-carousel__nav { display: none; }
}


/* Flechas de los planes: solo en el celular (ver abajo). */
.h-flechas { display: none; justify-content: center; gap: 12px; margin-top: 6px; }

.h-flechas button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--h-line);
  border-radius: 50%;
  color: var(--h-text);
  background: var(--h-card);
  box-shadow: var(--h-shadow);
  font: inherit;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
}

.h-flechas button:focus-visible { outline: 3px solid var(--h-cyan); outline-offset: 3px; }
.h-flechas button:disabled { opacity: .35; cursor: default; }


/* ---------- Celulares ---------- */

@media (max-width: 620px) {
  .h-hero { padding: 104px 16px 64px; }
  .h-hero__actions .h-btn { flex: 1 1 100%; }
  .h-float { font-size: .74rem; padding: 8px 11px; }
  .h-float--c { display: none; }

  .h-section { padding: 64px 16px; }
  .h-head { margin-bottom: 32px; }

  .h-carousel__track { grid-auto-columns: 86%; gap: 14px; }

  .h-plans,
  .h-bento,
  .h-steps { grid-template-columns: 1fr; }

  .h-bento { grid-auto-rows: 240px; }

  .h-shop { gap: 8px; padding: 12px; }
  .h-prod { padding: 7px; }

  .h-step { padding: 0 8px; }

  /* Encabezado del inicio: título, descripción y botones (sin la pantalla de ejemplo ni sus etiquetas). */
  .home .h-hero { gap: 0; padding-bottom: 56px; }
  .home .h-hero__visual { display: none; }

  /* Pasos, Planes y «Una web para cada proyecto»: se recorren de costado, en orden.
     El desplazamiento es del carrusel; la página no se mueve hacia los lados. */
  .home .h-steps,
  .home .h-plans,
  .home .h-bento {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 84%;
    gap: 14px;
    margin: 0 -16px;
    padding: 4px 16px 18px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    scrollbar-width: none;
  }

  .home .h-steps::-webkit-scrollbar,
  .home .h-plans::-webkit-scrollbar,
  .home .h-bento::-webkit-scrollbar { display: none; }

  .home .h-steps > *,
  .home .h-plans > *,
  .home .h-bento > * { scroll-snap-align: start; }

  .home .h-plans > .h-empty { grid-column: auto; width: calc(100vw - 32px); }

  .home .h-step {
    padding: 24px 18px;
    border: 1px solid var(--h-line);
    border-radius: 20px;
    background: var(--h-soft);
  }

  .home .h-step__icon { background: transparent; }

  /* Sin el aro del color de la sección: sobre la tarjeta se vería como una franja. */
  .home .h-step__num { box-shadow: 0 10px 24px rgb(var(--mw-violet-rgb) / .35); }

  .home .h-plan:hover,
  .home .h-tile:hover { transform: none; }

  .home .h-flechas { display: flex; }
  .h-cta-bar { padding: 24px 20px; }
  .h-cta-bar .h-btn { width: 100%; white-space: normal; }
  .h-help__actions .h-btn { flex: 1 1 100%; }

  .h-preview { width: 100vw; height: 100dvh; border-radius: 0; }
}


/* ---------- Menos movimiento ---------- */

@media (prefers-reduced-motion: reduce) {
  .h-btn, .h-card, .h-tile, .h-plan, .h-browser, .h-tile img, .h-tile__arrow, .h-carousel__nav { transition: none; }
  .h-float { animation: none; }
  .h-browser { transform: none; }
  .h-btn:hover, .h-card:hover, .h-tile:hover, .h-plan:hover { transform: none; }
  .mw-glow, .h-dark::after, .h-unido::after { display: none; }
}

/* Mostrar la captura completa en las tarjetas destacadas. */
.h-card__frame.mw-vista > img.mw-thumb { object-fit: contain; object-position: top center; }

/* Notebook flotante del encabezado. La dirección es solo decorativa. */
.h-notebook { padding-block: 48px; }
.h-notebook__image {
  display: block; width: 145%; max-width: none; height: auto; margin-left: -22.5%;
  transform: rotate(-3deg);
  filter: drop-shadow(0 28px 24px rgba(0, 0, 0, .3));
  animation: hNotebookFloat 7s ease-in-out infinite;
}
.h-notebook__address {
  position: absolute; z-index: 1; left: -2%; top: 57%;
  transform: translateY(-50%); padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, .4); border-radius: 999px;
  background: rgba(255, 255, 255, .13);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  color: #fff; font-size: clamp(.85rem, 1.3vw, 1.1rem); font-weight: 800;
  letter-spacing: -.02em; white-space: nowrap;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .15);
  pointer-events: none; user-select: none;
}
@keyframes hNotebookFloat {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-10px) rotate(-3deg); }
}
@media (prefers-reduced-motion: reduce) {
  .h-notebook__image { animation: none; }
}

.h-notebook__address { min-width: calc(11ch + 40px); font-family: ui-monospace, Consolas, monospace; }
.h-notebook__typing {
  display: block; width: 11ch; overflow: hidden; white-space: nowrap;
  border-right: 2px solid currentColor;
  animation: hAddressTyping 7s steps(11, end) infinite, hAddressCursor .8s step-end infinite;
}
@keyframes hAddressTyping { 0%, 8% { width: 0; } 45%, 95% { width: 11ch; } 100% { width: 0; } }
@keyframes hAddressCursor { 0%, 100% { border-color: transparent; } 50% { border-color: currentColor; } }
@media (min-width: 961px) and (max-width: 1150px) {
  .h-notebook__image { width: 130%; margin-left: -15%; }
  .h-notebook__address { left: 0; font-size: 1rem; }
}
@media (max-width: 960px) {
  .h-notebook__image { width: 115%; margin-left: -7.5%; }
  .h-notebook__address { left: 3%; }
}
@media (prefers-reduced-motion: reduce) {
  .h-notebook__typing { animation: none; width: 11ch; border-right: 0; }
}

/* Galería de inicio: seis diseños visibles. */
.h-gallery__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 1280px; margin: 0 auto; }
.h-gallery__grid .h-card { min-width: 0; display: flex; flex-direction: column; }
.h-gallery__grid .h-card__frame { display: block; position: relative; width: 100%; padding: 0; border: 0; border-bottom: 1px solid var(--h-line); cursor: pointer; }
.h-gallery__grid .h-card__frame::after { content: "Ver diseño →"; }
.h-gallery__grid .h-card__body { flex: 1; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 4px; padding: 12px 16px; }
.h-gallery__grid .h-card__body p { margin: 4px 0 0; color: var(--h-muted); font-size: .9rem; line-height: 1.5; }
.h-gallery__grid .h-card__link { min-height: 44px; color: var(--h-violet); text-align: left; }
@media (max-width: 960px) { .h-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (max-width: 620px) {
  .h-gallery__grid { gap: 12px; }
  .h-gallery__grid .h-card { border-radius: 12px; }
  .h-gallery__grid .h-card__body { padding: 12px; gap: 4px; }
  .h-gallery__grid .h-card h3 { font-size: 1rem; }
  .h-gallery__grid .h-card__cat { font-size: .65rem; letter-spacing: .03em; }
  .h-gallery__grid .h-card__body p { font-size: .82rem; }
}

/* Identidad del encabezado: vidrio y detalles de diseño, sin alterar la notebook. */
.h-hero__ambient { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.h-hero__ambient::before,
.home main > .h-section.h-dark::before,
.home .h-unido::before,
html[data-theme="dark"] .home main > .h-section::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgb(var(--mw-sky-rgb) / .065) 1px, transparent 1px), linear-gradient(90deg, rgb(var(--mw-sky-rgb) / .065) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, #000, transparent 28%, transparent 55%, #000);
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 28%, transparent 55%, #000);
}
.h-hero__ambient::after {
  content: ""; position: absolute; width: 46%; height: 40%; right: 0; top: 20%;
  border-radius: 50%; background: radial-gradient(ellipse, rgb(var(--mw-violet-rgb) / .28), rgb(var(--mw-sky-rgb) / .12) 50%, transparent 72%);
  filter: blur(42px);
}
.h-design-details { position: absolute; inset: 0; pointer-events: none; user-select: none; }
.h-design-glass {
  position: absolute; display: grid; place-items: center; color: var(--mw-sky);
  border: 1px solid rgb(var(--mw-sky-rgb) / .38); border-radius: 14px;
  background: linear-gradient(135deg, rgb(var(--mw-sky-rgb) / .14), rgb(var(--mw-violet-rgb) / .1));
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgb(var(--mw-sky-rgb) / .15), 0 12px 32px rgb(var(--mw-navy-rgb) / .24);
}
.h-design-type { width: 72px; height: 70px; top: 12%; left: 1%; font-size: 2rem; font-weight: 600; letter-spacing: -.05em; }
.h-design-palette { top: 9%; right: 2%; gap: 12px; padding: 15px 18px; justify-items: start; font-size: .82rem; }
.h-design-swatches { display: flex; gap: 12px; }
.h-design-swatches i { width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgb(var(--mw-sky-rgb) / .5); background: var(--mw-night); }
.h-design-swatches i:nth-child(2) { background: var(--mw-violet); }
.h-design-swatches i:nth-child(3) { background: var(--mw-sky); }
.h-design-code { right: 7%; bottom: 14%; width: 64px; height: 62px; font: 1.6rem/1 ui-monospace, Consolas, monospace; }
.h-design-cursor { position: absolute; width: 26px; height: 34px; right: 6.5%; top: 45%; color: var(--mw-sky); filter: drop-shadow(0 0 10px rgb(var(--mw-violet-rgb) / .5)); }
.h-design-corner { position: absolute; width: 28px; height: 28px; border-color: rgb(var(--mw-sky-rgb) / .42); border-style: solid; border-width: 0; }
.h-design-corner::after { content: ""; position: absolute; width: 6px; height: 6px; background: var(--mw-sky); box-shadow: 0 0 12px rgb(var(--mw-sky-rgb) / .35); }
.h-design-corner--tr { top: 6%; right: -5%; border-top-width: 1px; border-right-width: 1px; }
.h-design-corner--tr::after { top: -3px; right: -3px; }
.h-design-corner--bl { bottom: 10%; left: -5%; border-bottom-width: 1px; border-left-width: 1px; }
.h-design-corner--bl::after { bottom: -3px; left: -3px; }
@media (max-width: 1150px) {
  .h-design-type { left: 1%; width: 58px; height: 56px; font-size: 1.7rem; }
  .h-design-code { right: 7%; }
  .h-design-cursor { right: 6.5%; }
  .h-design-corner--bl { left: -3%; }
  .h-design-corner--tr { right: -5%; }
}
@media (max-width: 960px) { .h-design-palette { right: 2%; } }
@media (max-width: 620px) {
  .h-hero__ambient::before,
  .home main > .h-section.h-dark::before,
  .home .h-unido::before,
  html[data-theme="dark"] .home main > .h-section::before { background-size: 48px 48px; opacity: .65; mask-image: linear-gradient(to bottom, #000, transparent 80%); -webkit-mask-image: linear-gradient(to bottom, #000, transparent 80%); }
  .h-hero__ambient::after { width: 80%; top: 5%; opacity: .6; }
}


/* Abanico semicircular: tarjetas equidistantes rodean el texto y se funden abajo. */
.h-create { position: relative; container-type: inline-size; overflow: hidden; text-align: center; padding: 0; }
/* Un mismo ancho de referencia evita que el arco compense el zoom del navegador. */
.h-create__scene { position: relative; container-type: inline-size; width: min(100%, 1920px, calc((100svh - 110px) * 1.4)); margin: 0 auto; overflow: hidden; padding: clamp(36px, 6.5vw, 90px) 0 clamp(28px, 4.5vw, 64px); }
.h-create__arc {
  position: absolute; top: clamp(36px, 6.5vw, 90px); left: 0; container-type: inline-size;
  width: 100%; bottom: 0; margin: 0 auto;
  pointer-events: none; user-select: none;
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, #000 60%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, #000 60%, transparent 100%);
  -webkit-mask-composite: source-in;
}
.h-create__card {
  position: absolute; top: 0; left: 50%; width: calc(14% + 10px); aspect-ratio: 4 / 5;
  overflow: hidden; border: 1px solid rgb(var(--mw-sky-rgb) / .24); border-radius: 16px;
  background: var(--mw-night-2);
  transform-origin: 50% 56cqw; transform: translateX(-50%) rotate(var(--arc-turn));
  box-shadow: 0 12px 30px rgb(var(--mw-navy-rgb) / .18);
}
.h-create__card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.h-create__card:nth-child(1) { --arc-turn: -132deg; }
.h-create__card:nth-child(2) { --arc-turn: -110deg; }
.h-create__card:nth-child(3) { --arc-turn: -88deg; }
.h-create__card:nth-child(4) { --arc-turn: -66deg; }
.h-create__card:nth-child(5) { --arc-turn: -44deg; }
.h-create__card:nth-child(6) { --arc-turn: -22deg; }
.h-create__card:nth-child(7) { --arc-turn: 0deg; }
.h-create__card:nth-child(8) { --arc-turn: 22deg; }
.h-create__card:nth-child(9) { --arc-turn: 44deg; }
.h-create__card:nth-child(10) { --arc-turn: 66deg; }
.h-create__card:nth-child(11) { --arc-turn: 88deg; }
.h-create__card:nth-child(12) { --arc-turn: 110deg; }
.h-create__card:nth-child(13) { --arc-turn: 132deg; }
/* Los extremos pierden presencia de forma simétrica hacia abajo. */
.h-create__card:nth-child(4), .h-create__card:nth-child(10) { opacity: .6; }
.h-create__card:nth-child(3), .h-create__card:nth-child(11) { opacity: .35; }
.h-create__card:nth-child(2), .h-create__card:nth-child(12) { opacity: .18; }
.h-create__card:nth-child(1), .h-create__card:nth-child(13) { opacity: .08; }
.h-create__copy { position: relative; width: 65%; margin: 28.5cqw auto 0; }
.h-create__copy h2 { margin: 0; color: #fff; font-size: clamp(1.8rem, 3.8cqw, 3.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -.05em; }
.h-create__copy h2 em { font-style: normal; color: var(--mw-sky); }
.h-create__copy p { margin: 12px auto 3cqw; color: #c9d4ea; font-size: clamp(.95rem, 1.65cqw, 1.25rem); line-height: 1.7; }
.h-create__copy .h-btn { min-height: clamp(44px, 5.2cqw, 60px); padding-inline: clamp(20px, 2.4cqw, 34px); font-size: clamp(.88rem, 1.35cqw, 1.1rem); }
@media (max-width: 620px) {
  .h-create__scene { width: 100%; padding: 36px 0 28px; }
  .h-create__arc { top: 36px; }
  .h-create__card { border-radius: 8px; }
  .h-create__copy { width: 68%; margin-top: 30cqw; }
  .h-create__copy h2 { font-size: clamp(1.8rem, 7.5cqw, 2rem); }
  .h-create__copy p { font-size: .88rem; margin: 10px auto 20px; }
}

/* Pantallas de poca altura: la composición completa cabe debajo de la navegación. */
@media (min-width: 621px) and (max-height: 650px) {
  .h-create__scene { padding-block: 24px; }
  .h-create__arc { top: 24px; }
}

/* Equipo y servicios a medida reunidos en las mismas tarjetas. */
.equipo__subtitulo { margin: 26px 0 10px; color: #fff; font-size: 1.25rem; letter-spacing: -.025em; }
.equipo-card__servicios { margin: 0; color: #c8d3ee; font-size: .92rem; line-height: 1.65; }
.equipo-card__contacto { align-self: end; }

@media (max-width: 520px) {
  .equipo-card__servicios { grid-column: 1 / -1; }
  .equipo-card__texto { min-width: 0; }
}

/* Ayuda compacta: menos espacio, con preguntas y controles legibles. */
#ayuda { padding-block: 48px; }
#ayuda .h-help { max-width: 1100px; gap: 40px; }
#ayuda h2 { margin-top: 0; font-size: clamp(1.8rem, 3vw, 2.5rem); }
#ayuda .h-help__intro p { margin: 14px 0 20px; font-size: .95rem; line-height: 1.6; }
#ayuda .h-help__actions { gap: 10px; }
#ayuda .h-btn { min-height: 44px; padding-inline: 16px; font-size: .85rem; }
#ayuda .h-faq { gap: 8px; }
#ayuda .h-faq details { border-radius: 12px; }
#ayuda .h-faq summary { min-height: 48px; padding: 10px 16px; gap: 12px; font-size: .92rem; }
#ayuda .h-faq summary::after { width: 24px; height: 24px; }
#ayuda .h-faq details p { padding: 0 16px 16px; font-size: .9rem; line-height: 1.6; }
@media (max-width: 620px) {
  #ayuda { padding-block: 32px; }
  #ayuda .h-help { gap: 24px; }
}

/* Un poco más de aire entre el mensaje y la notebook, solo en dos columnas. */
@media(min-width:961px){.h-hero{column-gap:calc(clamp(72px,7.2vw,112px) + 200px)}}

/* Entradas y énfasis del inicio sin modificar el tamaño de sus elementos. */
.h-gallery{padding-block:clamp(48px,6vw,80px)}
.h-type-phrase{position:relative;display:inline-block;vertical-align:bottom;white-space:nowrap}
.h-type-phrase__sizer{visibility:hidden}
.h-type-phrase__ink{position:absolute;left:0;top:0;width:100%;overflow:hidden;white-space:nowrap;background:linear-gradient(105deg,var(--mw-sky) 0%,var(--mw-sky) 35%,#fff 48%,var(--mw-sky) 62%,var(--mw-sky) 100%);background-size:220% 100%;background-position:0% 50%;background-clip:text;-webkit-background-clip:text;color:transparent}
html[data-theme="light"] .h-type-phrase__ink{background-image:linear-gradient(105deg,#0757b9 0%,#1683c4 35%,var(--mw-sky) 48%,#1683c4 62%,#0757b9 100%)}
.h-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.h-type-phrase.is-typing .h-type-phrase__ink{border-right:2px solid transparent;animation:ideaTyping 3s steps(10,end) infinite,ideaCaret .7s step-end infinite,ideaShine 6s ease-in-out infinite}
@keyframes ideaTyping{0%{width:0}40%,88%{width:100%}100%{width:0}}
@keyframes ideaCaret{0%,40%,80%{border-color:var(--mw-sky)}20%,60%,100%{border-color:transparent}}
@keyframes ideaShine{from{background-position:100% 50%}to{background-position:0% 50%}}
.h-load__copy h2 em.h-moving-shine,html[data-theme="dark"] .h-load__copy h2 em.h-moving-shine{background:linear-gradient(105deg,var(--mw-violet),#0757b9 30%,var(--mw-sky) 45%,#0757b9 60%,var(--mw-violet));background-size:240% 100%;background-clip:text;-webkit-background-clip:text;color:transparent;animation:catalogShine 5s ease-in-out infinite}
html[data-theme="dark"] .h-load__copy h2 em.h-moving-shine{background-image:linear-gradient(105deg,var(--mw-sky),var(--mw-violet) 30%,#fff 45%,var(--mw-sky) 60%,var(--mw-violet))}
@keyframes catalogShine{0%,100%{background-position:100% 50%}50%{background-position:0% 50%}}
.h-load__step.reveal{transform:translateY(44px);transition-duration:.7s;transition-delay:calc(var(--reveal-i,0) * 160ms)}
.h-load__step.reveal.is-visible{transform:none}
@media(prefers-reduced-motion:reduce){
 .h-type-phrase.is-typing .h-type-phrase__ink{width:100%;border:0;animation:none}
 .h-load__copy h2 em.h-moving-shine{animation:none;background:none;color:var(--mw-violet)}
 html[data-theme="dark"] .h-load__copy h2 em.h-moving-shine{animation:none;background:none;color:var(--mw-sky)}
 .h-load__step.reveal{transform:none;transition:none}
}

/* Interacciones del inicio. */
.h-prod__img { width: 100%; height: auto; object-fit: cover; }
.h-create__card { pointer-events: auto; transition: transform .65s cubic-bezier(.22,.7,.25,1), opacity .65s; }
.h-create__card img { pointer-events: none; }
#precios-titulo .h-plan-shine {
  background: linear-gradient(110deg, var(--mw-violet) 10%, var(--mw-violet) 30%, var(--mw-sky) 46%, #fff 50%, var(--mw-sky) 54%, var(--mw-violet) 72%);
  background-size: 250% 100%; background-clip: text; -webkit-background-clip: text; color: transparent;
  animation: catalogShine 7s ease-in-out infinite;
}
html[data-theme="dark"] #precios-titulo .h-plan-shine { background-image: linear-gradient(110deg, var(--mw-sky) 10%, var(--mw-violet) 30%, var(--mw-sky) 46%, #fff 50%, var(--mw-sky) 54%, var(--mw-violet) 72%); }
@media(prefers-reduced-motion:reduce) {
  .h-create__card { transition: none; }
  #precios-titulo .h-plan-shine { animation: none; }
}

#equipo-titulo { font-size: clamp(3rem, 5.8vw, 5.5rem); line-height: 1.02; }
.equipo-titulo__linea { display: block; }
#equipo-titulo .equipo-shine {
  position: relative;
  display: inline-block;
  line-height: 1.16;
  padding: .12em .08em;
  margin: -.12em -.08em;
  color: var(--mw-sky);
}
#equipo-titulo .equipo-shine__luz {
  position: absolute;
  inset: 0;
  padding: inherit;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 20%, transparent 37%, #fff 50%, transparent 63%, transparent 80%);
  background-size: 250% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: catalogShine 6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  #equipo-titulo .equipo-shine__luz { display: none; }
}

.h-create__arc.arc-entry-ready { opacity: 0; translate: 0 120px; transition: opacity .9s ease, translate 1.1s cubic-bezier(.2,.75,.25,1); }
.h-create__arc.arc-entry-ready.arc-entry-visible { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  .h-create__arc.arc-entry-ready { opacity: 1; translate: none; transition: none; }
}

/* Tres líneas estables en el título, con tamaño ajustado al espacio disponible. */
.h-hero__copy { container-type: inline-size; }
.h-hero h1 { font-size: min(clamp(2.6rem, 4.8vw, 4.5rem), 14cqw); }
.h-hero__line { display: block; white-space: nowrap; }

/* La foto ocupa el círculo fijo, sin heredar la altura natural del retrato. */
.home .equipo-card__avatar.has-photo { flex-shrink: 0; }
.home .equipo-card__avatar.has-photo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 35%;
  clip-path: circle(50%);
}
