/* AG Digital Studio · Estilos propios de la página de Inicio (se carga después de base.css)
   Dirección visual: "Moderna y visual". La Home vende confianza; /servicios/ vende soluciones. */

/* ---------- 1. Hero ---------- */

.h-hero {
  position: relative; overflow: hidden;
  padding: 44px 0 56px;
  background: var(--verde); color: var(--blanco);
}
.h-hero::before { /* luz suave de fondo, decorativa */
  content: ""; position: absolute; right: -20%; top: -30%; width: 80%; height: 120%;
  background: radial-gradient(closest-side, rgba(16, 185, 129, .22), rgba(16, 185, 129, 0));
  pointer-events: none;
}
.h-hero__fondo { /* foto de fondo difuminada */
  position: absolute; top: -24px; right: -24px; bottom: -24px; left: -24px; z-index: 0;
  background-position: center; background-size: cover; background-repeat: no-repeat; filter: blur(5px) saturate(.9);
}
.h-hero.con-fondo::before { /* velo verde: casi opaco donde va el texto */
  z-index: 1; right: 0; top: 0; bottom: 0; left: 0; width: auto; height: auto;
  background: linear-gradient(180deg, rgba(11, 69, 64, .97) 0%, rgba(11, 69, 64, .97) 58%, rgba(11, 69, 64, .8) 100%);
}
.h-hero__rejilla { position: relative; z-index: 2; display: grid; grid-gap: 40px; align-items: center; }
.h-hero h1 { font-size: 2.125rem; font-size: clamp(2.125rem, 3.4vw + 1rem, 3.5rem); letter-spacing: -.025em; line-height: 1.08; max-width: 14ch; }
.h-hero__sub { margin-top: 18px; max-width: 34rem; font-size: 1.0625rem; color: var(--sobre-verde-suave); }
.h-hero__apoyo { margin-top: 12px; font-weight: 500; font-size: 1.0625rem; }
.h-hero__botones { display: grid; grid-gap: 12px; margin-top: 24px; }
.h-hero__beneficios { list-style: none; display: flex; flex-wrap: wrap; margin: 18px 0 0 -18px; }
.h-hero__beneficios li { display: flex; align-items: center; margin: 6px 0 0 18px; font-size: .9375rem; color: var(--sobre-verde-suave); }
.h-hero__beneficios .icono { width: 20px; height: 20px; margin-right: 8px; color: var(--teal-claro); }

/* Composición visual: web + móvil + WhatsApp + aviso + Google (decorativa, con descripción para lectores) */
.h-visual {
  --px: 0; --py: 0;
  position: relative; width: 100%; max-width: 640px; margin: 0 auto;
  height: 360px;
  font-size: 13px; line-height: 1.35; color: var(--texto);
}
/* Mockup en imagen con fondo transparente (hero.mockup): flota sobre el fondo verde, sin recuadro */
.h-visual.h-visual--imagen { height: auto; max-width: 560px; }
.h-visual--imagen img { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .25)); }
.hv { position: absolute; transition: transform .6s var(--anim), box-shadow .3s var(--anim); will-change: transform; }
.hv-portatil { left: 0; top: 50px; width: 82%; transform: translate3d(calc(var(--px) * -6px), calc(var(--py) * -6px), 0); }
.hv-movil { right: 0; bottom: 0; width: 40%; max-width: 210px; min-width: 140px; transform: translate3d(calc(var(--px) * 12px), calc(var(--py) * 10px), 0); }
.hv-aviso { right: 6%; top: 0; transform: translate3d(calc(var(--px) * 18px), calc(var(--py) * 14px), 0); }
.hv-google { left: 0; bottom: 0; max-width: 56%; transform: translate3d(calc(var(--px) * -14px), calc(var(--py) * 12px), 0); }


@media (prefers-reduced-motion: no-preference) {
  .js .hv { animation: hv-entrada .9s var(--anim) both; }
  .js .hv-portatil { animation-delay: .1s; }
  .js .hv-movil { animation-delay: .35s; }
  .js .hv-aviso { animation-delay: .9s; }
  .js .hv-google { animation-delay: 1.1s; }
  .js .hv-escribiendo { display: block; animation: hv-escribe 1.4s steps(1, end) 1.4s both; }
  .js .hv-escribiendo i { animation: hv-punto .9s ease-in-out 3; }
  .js .hv-escribiendo i:nth-child(2) { animation-delay: .15s; }
  .js .hv-escribiendo i:nth-child(3) { animation-delay: .3s; }
  .js .hv-burbuja--negocio { animation: hv-aparece .4s var(--anim) 2.8s both; }
  .js .hv-aviso__icono { animation: hv-campana .7s ease-in-out 1.7s 2; }
}

/* ---------- 2. Posicionamiento ---------- */

.h-pos { padding: 64px 0; }
.h-pos__rejilla { display: grid; grid-gap: 24px; }
.h-pos__titular { color: var(--verde); font-size: 1.625rem; font-size: clamp(1.625rem, 2vw + 1rem, 2.25rem); letter-spacing: -.02em; max-width: 20ch; }
.h-pos__texto { padding-left: 20px; border-left: 3px solid var(--teal); color: var(--texto-suave); font-size: 1.0625rem; max-width: 36rem; }

/* ---------- 3. Problemas ---------- */

.h-prob { background: var(--blanco); border-top: 1px solid var(--gris); border-bottom: 1px solid var(--gris); }
.h-prob__lista { list-style: none; display: grid; grid-gap: 14px; margin-top: 32px; }
.h-prob__item {
  --mx: 50%; --my: 50%;
  position: relative; display: grid; grid-template-columns: auto 1fr auto; grid-column-gap: 16px; align-items: start;
  height: 100%; padding: 20px 18px; border-radius: var(--radio);
  background: var(--marfil); border: 2px solid var(--gris); color: var(--texto); text-decoration: none;
  transition: transform .3s var(--anim), border-color .3s var(--anim), box-shadow .3s var(--anim), background-color .3s var(--anim);
  overflow: hidden;
}
.h-prob__item::before { /* luz que sigue al ratón: detalle decorativo */
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(240px circle at var(--mx) var(--my), rgba(16, 185, 129, .12), transparent 70%);
  transition: opacity .3s var(--anim);
}
.h-prob__icono {
  position: relative; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border-radius: 14px; background: var(--verde-tinte); color: var(--verde);
  transition: background-color .3s var(--anim), color .3s var(--anim), transform .3s var(--anim);
}
.h-prob__nombre { position: relative; display: block; font-size: 1.0625rem; font-weight: 600; line-height: 1.3; }
.h-prob__corta { position: relative; display: block; margin-top: 4px; color: var(--texto-suave); font-size: .9375rem; }
.h-prob__flecha { position: relative; align-self: center; color: var(--verde); transition: transform .3s var(--anim); }
.h-prob__item:hover, .h-prob__item:focus-visible { border-color: var(--verde); background: var(--blanco); box-shadow: var(--sombra-alta); transform: translateY(-4px); }
.h-prob__item:hover::before { opacity: 1; }
.h-prob__item:hover .h-prob__icono, .h-prob__item:focus-visible .h-prob__icono { background: var(--verde); color: var(--blanco); transform: rotate(-6deg); }
.h-prob__item:hover .h-prob__flecha, .h-prob__item:focus-visible .h-prob__flecha { transform: translateX(5px); }

/* ---------- 4. Servicios ---------- */

.h-serv__cab { display: grid; grid-gap: 18px; align-items: end; }
.h-serv__cab .boton { justify-self: start; }
.h-serv__lista { list-style: none; display: grid; grid-gap: 20px; margin-top: 32px; }
.h-serv__card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  border-radius: var(--radio-grande); background: var(--blanco); border: 1px solid var(--gris);
  box-shadow: var(--sombra); overflow: hidden;
  transition: transform .35s var(--anim), box-shadow .35s var(--anim);
}
.h-serv__card:hover, .h-serv__card:focus-within { transform: translateY(-6px); box-shadow: var(--sombra-alta); }
.h-serv__cuerpo { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 18px; }
.h-serv__num { font-size: .875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--verde); }
.h-serv--terracota .h-serv__num { color: var(--terracota-texto); }
.h-serv__titular { margin-top: 8px; font-size: 1.375rem; }
.h-serv__texto { margin-top: 10px; color: var(--texto-suave); font-size: 1.0625rem; }
.h-serv__texto .termino { position: relative; z-index: 2; }
.h-serv__enlace { margin-top: auto; padding-top: 12px; }
.h-serv__enlace a::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; border-radius: var(--radio-grande); }

/* Ilustraciones de cada línea (dibujadas con código: ligeras y nítidas) */
.ilus { position: relative; height: 196px; overflow: hidden; background: var(--teal-tinte); }
.h-serv--verde .ilus { background: #DCEAE6; }
.h-serv--terracota .ilus { background: var(--terracota-tinte); }
.ilus > * { position: absolute; transition: transform .5s var(--anim); }
.ilus .ilus__foto { top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.01); transition: transform .8s var(--anim); }
.ilus--foto::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(180deg, rgba(11, 69, 64, .05), rgba(11, 69, 64, .35)); }
.ilus--foto > :not(.ilus__foto) { z-index: 1; }
.h-serv__card:hover .ilus__foto { transform: scale(1.06); }

.ilus-web__ventana { left: 12%; top: 28px; width: 76%; height: 150px; border-radius: 10px; background: var(--blanco); box-shadow: 0 12px 30px rgba(11, 69, 64, .16); overflow: hidden; }
.ilus-web__ventana::before { content: ""; display: block; height: 18px; background: radial-gradient(circle, #D3D5D2 3px, transparent 3.5px) 6px 50% / 12px 12px no-repeat, radial-gradient(circle, #D3D5D2 3px, transparent 3.5px) 18px 50% / 12px 12px no-repeat, radial-gradient(circle, #D3D5D2 3px, transparent 3.5px) 30px 50% / 12px 12px no-repeat, #F1F2F0; }
.ilus-web__ventana::after {
  content: ""; position: absolute; left: 12px; right: 12px; top: 30px; bottom: 12px;
  background:
    linear-gradient(var(--grafito), var(--grafito)) 0 4px / 46% 9px no-repeat,
    linear-gradient(var(--gris), var(--gris)) 0 22px / 40% 6px no-repeat,
    linear-gradient(var(--gris), var(--gris)) 0 33px / 34% 6px no-repeat,
    linear-gradient(var(--verde), var(--verde)) 0 50px / 24% 14px no-repeat,
    linear-gradient(135deg, #CDE8DE, #A9D9C6) 100% 0 / 46% 70px no-repeat,
    linear-gradient(#F4F5F3, #F4F5F3) 0 100% / 31% 26px no-repeat,
    linear-gradient(#F4F5F3, #F4F5F3) 50% 100% / 31% 26px no-repeat,
    linear-gradient(#F4F5F3, #F4F5F3) 100% 100% / 31% 26px no-repeat;
}
.ilus-web__movil { right: 8%; bottom: -18px; width: 62px; height: 120px; border-radius: 14px; background: var(--grafito); padding: 5px; box-shadow: 0 12px 26px rgba(0, 0, 0, .25); }
.ilus-web__movil::after { content: ""; display: block; height: 100%; border-radius: 10px; background: var(--blanco) linear-gradient(var(--verde), var(--verde)) 50% 78% / 70% 10px no-repeat; }
.ilus-web__lupa { left: 6%; bottom: 14px; display: flex; align-items: center; padding: 7px 12px; border-radius: 999px; background: var(--blanco); box-shadow: 0 8px 20px rgba(11, 69, 64, .14); font-size: 12px; color: var(--texto); }
.ilus-web__lupa svg { width: 14px; height: 14px; margin-right: 6px; }
.h-serv__card:hover .ilus-web__ventana { transform: translateY(-6px); }
.h-serv__card:hover .ilus-web__movil { transform: translateY(-14px) rotate(-4deg); }
.h-serv__card:hover .ilus-web__lupa { transform: translateX(6px); }

.ilus-auto__fila {
  left: 14%; right: 14%; display: flex; align-items: center; padding: 9px 12px;
  border-radius: 12px; background: var(--blanco); box-shadow: 0 8px 20px rgba(11, 69, 64, .12); font-size: 12px; color: var(--texto);
}
.ilus-auto__fila:nth-child(1) { top: 26px; }
.ilus-auto__fila:nth-child(2) { top: 80px; left: 20%; right: 8%; }
.ilus-auto__fila:nth-child(3) { top: 134px; }
.ilus-auto__fila i { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-right: 10px; border-radius: 50%; background: var(--verde); color: var(--blanco); flex: none; }
.ilus-auto__fila i svg { width: 14px; height: 14px; }
.ilus-auto__fila b { font-weight: 600; margin-right: 4px; }
.h-serv__card:hover .ilus-auto__fila:nth-child(1) { transform: translateX(-8px); }
.h-serv__card:hover .ilus-auto__fila:nth-child(2) { transform: translateX(8px); }
.h-serv__card:hover .ilus-auto__fila:nth-child(3) { transform: translateX(-4px); }

.ilus-rep__ficha { left: 12%; top: 30px; width: 62%; padding: 14px; border-radius: 14px; background: var(--blanco); box-shadow: 0 12px 30px rgba(130, 60, 34, .14); font-size: 12px; color: var(--texto); }
.ilus-rep__ficha b { display: block; font-size: 14px; font-weight: 600; }
.ilus-rep__estrellas { display: flex; margin-top: 6px; }
.ilus-rep__estrellas svg { width: 18px; height: 18px; color: #C98A00; fill: currentColor; stroke: none; transition: transform .35s var(--anim); }
.ilus-rep__barras { margin-top: 10px; height: 26px; background: linear-gradient(var(--gris), var(--gris)) 0 0 / 100% 6px no-repeat, linear-gradient(var(--gris), var(--gris)) 0 10px / 80% 6px no-repeat, linear-gradient(var(--gris), var(--gris)) 0 20px / 60% 6px no-repeat; }
.ilus-rep__qr { right: 10%; bottom: 22px; width: 76px; height: 76px; padding: 8px; border-radius: 12px; background: var(--blanco); box-shadow: 0 12px 26px rgba(130, 60, 34, .18); }
.ilus-rep__qr .hv-qr { width: 100%; height: 100%; margin: 0; border: 0; outline: 0; }
.h-serv__card:hover .ilus-rep__ficha { transform: translateY(-6px); }
.h-serv__card:hover .ilus-rep__qr { transform: rotate(6deg) scale(1.06); }
.h-serv__card:hover .ilus-rep__estrellas svg { transform: scale(1.18); }
.h-serv__card:hover .ilus-rep__estrellas svg:nth-child(2) { transition-delay: .05s; }
.h-serv__card:hover .ilus-rep__estrellas svg:nth-child(3) { transition-delay: .1s; }
.h-serv__card:hover .ilus-rep__estrellas svg:nth-child(4) { transition-delay: .15s; }
.h-serv__card:hover .ilus-rep__estrellas svg:nth-child(5) { transition-delay: .2s; }

/* ---------- 5. Proceso (franja verde) ---------- */

.h-proc { background: var(--verde); color: var(--blanco); position: relative; overflow: hidden; }
.h-proc__foto { position: relative; height: 220px; margin: -64px 0 40px; overflow: hidden; }
.h-proc__foto img { width: 100%; height: 100%; object-fit: cover; }
.h-proc__foto::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(180deg, rgba(11, 69, 64, 0) 40%, rgba(11, 69, 64, .9)); }
.h-proc > .contenedor { position: relative; z-index: 1; }
.h-proc__cab { display: grid; grid-gap: 20px; align-items: end; }
.h-proc .seccion__intro { color: var(--sobre-verde-suave); }
.h-proc__pasos { list-style: none; position: relative; display: grid; grid-gap: 0; margin-top: 44px; counter-reset: hp; }
.h-proc__paso { position: relative; display: grid; grid-template-columns: 52px 1fr; grid-column-gap: 18px; padding-bottom: 28px; counter-increment: hp; }
.h-proc__paso::before {
  content: counter(hp, decimal-leading-zero);
  display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%;
  border: 2px solid var(--teal-claro); color: var(--blanco); font-weight: 600; font-variant-numeric: tabular-nums;
  background: var(--verde); position: relative; z-index: 1;
  transition: background-color .4s var(--anim), color .4s var(--anim), transform .3s var(--anim);
}
.h-proc__paso::after { content: ""; position: absolute; left: 25px; top: 52px; bottom: 0; width: 2px; background: rgba(110, 231, 183, .35); }
.h-proc__paso:last-child::after { display: none; }
.h-proc__paso h3 { font-size: 1.1875rem; margin-top: 12px; }
.h-proc__paso p { margin-top: 4px; color: var(--sobre-verde-suave); font-size: 1rem; }
.h-proc__paso:hover::before { background: var(--teal); color: var(--sobre-teal); border-color: var(--teal); transform: scale(1.08); }
.h-proc.visible .h-proc__paso::before { background: var(--teal); color: var(--sobre-teal); border-color: var(--teal); }
@media (prefers-reduced-motion: no-preference) {
  .js .h-proc .h-proc__paso::before { transition-duration: .5s; }
  .js .h-proc.visible .h-proc__paso:nth-child(1)::before { transition-delay: .1s; }
  .js .h-proc.visible .h-proc__paso:nth-child(2)::before { transition-delay: .35s; }
  .js .h-proc.visible .h-proc__paso:nth-child(3)::before { transition-delay: .6s; }
  .js .h-proc.visible .h-proc__paso:nth-child(4)::before { transition-delay: .85s; }
  .js .h-proc.visible .h-proc__paso:nth-child(5)::before { transition-delay: 1.1s; }
}
.h-proc__cierre { margin-top: 12px; font-size: 1.375rem; font-size: clamp(1.375rem, 1.6vw + 1rem, 1.875rem); font-weight: 600; letter-spacing: -.02em; max-width: 26ch; }
.h-proc__cierre em { font-style: normal; color: var(--teal-claro); }

/* ---------- 6. Alberto + pilares ---------- */

.h-alb__rejilla { display: grid; grid-gap: 40px; align-items: center; }
.h-alb__foto { position: relative; max-width: 560px; }
.h-alb__marco { position: relative; border-radius: var(--radio-grande); overflow: hidden; aspect-ratio: 3 / 2; max-width: 100%; background: var(--verde-tinte); }
.h-alb__marco img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--anim); }
.h-alb__foto:hover .h-alb__marco img { transform: scale(1.03); }
.h-alb__provisional { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; color: var(--verde); }
.h-alb__provisional strong { font-size: 1.5rem; }
.h-alb__sello {
  position: absolute; right: 12px; bottom: 20px; display: flex; align-items: center;
  padding: 12px 16px; border-radius: var(--radio); background: var(--blanco); box-shadow: var(--sombra-alta); font-weight: 500; font-size: 1rem;
  transition: transform .4s var(--anim);
}
.h-alb__sello .icono { margin-right: 10px; color: var(--verde); }
.h-alb__foto:hover .h-alb__sello { transform: translateY(-6px); }
.h-alb__aviso-foto { margin-top: 10px; font-size: .9375rem; color: var(--texto-suave); }
.h-alb__titular { font-size: 2rem; font-size: clamp(2rem, 2.6vw + 1rem, 2.75rem); letter-spacing: -.025em; }
.h-alb__entradilla { margin-top: 10px; font-size: 1.25rem; font-weight: 600; color: var(--verde); }
.h-alb__texto { margin-top: 14px; color: var(--texto-suave); max-width: 36rem; }
.h-alb__lista { list-style: none; margin-top: 22px; }
.h-alb__lista li { display: flex; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--gris); font-weight: 500; }
.h-alb__lista li:last-child { border-bottom: 0; }
.h-alb__lista .icono { width: 22px; height: 22px; margin: 2px 12px 0 0; color: var(--verde); }
.h-alb__boton { margin-top: 24px; }

.h-dif { background: var(--blanco); border-top: 1px solid var(--gris); position: relative; overflow: hidden; }
.h-dif::before { /* trama de puntos muy suave: separa visualmente de "Soy Alberto" */
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; opacity: .55;
  background: radial-gradient(circle, #D9E7E2 1.2px, transparent 1.6px) 0 0 / 22px 22px;
  -webkit-mask: linear-gradient(90deg, #000, transparent 60%); mask: linear-gradient(90deg, #000, transparent 60%);
}
.h-dif__rejilla { position: relative; display: grid; grid-gap: 32px; align-items: center; }
.h-dif__dibujo { max-width: 560px; width: 100%; margin: 0 auto; }
.h-dif__dibujo svg { width: 100%; height: auto; overflow: visible; }
.dif-orbita { fill: none; stroke: #CFE3DC; stroke-width: 1.5; stroke-dasharray: 4 7; }
.dif-orbita--fina { stroke: #E3EFEB; stroke-dasharray: none; }
.dif-radio { stroke: #CFE3DC; stroke-width: 1.5; transition: stroke .35s var(--anim), stroke-width .35s var(--anim); }
.dif-punto { fill: var(--blanco); stroke: var(--teal); stroke-width: 2; transform-box: fill-box; transform-origin: center; transition: transform .35s var(--anim), fill .35s var(--anim); }
.dif-centro-punto { fill: var(--teal); transform-box: fill-box; transform-origin: center; transition: fill .35s var(--anim); }
.dif-texto { fill: var(--texto); font: 600 17px "Montserrat", system-ui, sans-serif; letter-spacing: -.01em; transition: fill .3s var(--anim); }
.dif-nucleo { fill: var(--verde); }
.dif-nucleo-texto { fill: var(--blanco); font: 600 17px "Montserrat", system-ui, sans-serif; }
.dif-nodo.activo .dif-radio { stroke: var(--teal); stroke-width: 3; }
.dif-nodo.activo .dif-punto { fill: var(--teal); transform: scale(1.18); }
.dif-nodo.activo .dif-centro-punto { fill: var(--blanco); }
.dif-nodo.activo .dif-texto { fill: var(--verde); }
@media (prefers-reduced-motion: no-preference) {
  .js .h-dif .dif-nodo { opacity: 0; transition: opacity .6s var(--anim); }
  .js .h-dif.visible .dif-nodo { opacity: 1; }
  .js .h-dif.visible .dif-nodo:nth-of-type(2) { transition-delay: .15s; }
  .js .h-dif.visible .dif-nodo:nth-of-type(3) { transition-delay: .3s; }
  .js .h-dif.visible .dif-nodo:nth-of-type(4) { transition-delay: .45s; }
  .js .h-dif.visible .dif-nodo:nth-of-type(5) { transition-delay: .6s; }
}
.h-pil__lista { list-style: none; margin-top: 24px; border-top: 1px solid var(--gris); }
.h-pil__item { position: relative; padding: 16px 0; border-bottom: 1px solid var(--gris); }
.h-pil__item::before { content: ""; position: absolute; left: 0; top: -1px; width: 0; height: 3px; background: var(--teal); transition: width .5s var(--anim); }
.h-pil__item:hover::before, .h-pil__item.activo::before { width: 100%; }
.h-pil__nombre { font-weight: 600; font-size: 1.1875rem; letter-spacing: -.01em; transition: color .3s var(--anim), transform .4s var(--anim); }
.h-pil__item:hover .h-pil__nombre, .h-pil__item.activo .h-pil__nombre { color: var(--verde); transform: translateX(6px); }
.h-pil__texto { margin-top: 4px; color: var(--texto-suave); font-size: 1rem; }
.h-pil__item { padding-left: 14px; padding-right: 10px; transition: background-color .4s var(--anim); cursor: default; }
.h-pil__item.activo { background: var(--verde-tinte); }
.h-pil__item::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--verde); transform: scaleY(0); transform-origin: top; transition: transform .4s var(--anim); }
.h-pil__item.activo::after { transform: scaleY(1); }


/* ---------- 7. Ejemplos ilustrativos ---------- */

.h-ej { background: var(--marfil); border-top: 1px solid var(--gris); }
.h-ej__cab { display: grid; grid-gap: 8px; align-items: end; }
.h-ej__pestanas { display: flex; flex-wrap: wrap; margin: 20px 0 0 -10px; }
.h-ej__pestana {
  display: inline-flex; align-items: center; min-height: 60px; margin: 0 0 10px 10px; padding: 8px 18px 8px 8px;
  border: 2px solid var(--gris); border-radius: 999px; background: var(--blanco); cursor: pointer; text-align: left;
  transition: border-color .25s var(--anim), background-color .25s var(--anim), transform .25s var(--anim), box-shadow .25s var(--anim);
}
.h-ej__pestana:hover { border-color: var(--borde-hover); transform: translateY(-2px); }
.h-ej__pestana[aria-selected="true"] { border-color: var(--verde); background: var(--verde); color: var(--blanco); box-shadow: 0 8px 20px rgba(11, 69, 64, .2); }
.h-ej__pestana[aria-selected="true"]:focus { outline-color: var(--grafito); }
.h-ej__avatar { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: 12px; border-radius: 50%; background: var(--teal-tinte); color: var(--verde); font-weight: 600; font-size: 1.125rem; flex: none; }
.h-ej--terracota .h-ej__avatar { background: var(--terracota-tinte); color: var(--terracota-texto); }
.h-ej__pestana[aria-selected="true"] .h-ej__avatar { background: var(--blanco); color: var(--verde); }
.h-ej__pnombre { display: block; font-weight: 600; line-height: 1.2; }
.h-ej__poficio { display: block; font-size: .875rem; }
.h-ej__escenas { margin-top: 20px; }
.h-ej__escena {
  display: grid; overflow: hidden; border-radius: var(--radio-grande); background: var(--blanco);
  border: 1px solid var(--gris); box-shadow: var(--sombra);
}
.h-ej__escena + .h-ej__escena { margin-top: 20px; } /* sin JS se ven las tres */
.js .h-ej__escenas.activas .h-ej__escena + .h-ej__escena { margin-top: 0; }
.h-ej__foto { position: relative; min-height: 220px; overflow: hidden; background: var(--verde-tinte); }
.h-ej__foto img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--anim); }
.h-ej__foto::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(180deg, rgba(26, 26, 26, 0) 45%, rgba(26, 26, 26, .45)); }
.h-ej__escena:hover .h-ej__foto img { transform: scale(1.04); }
.h-ej__marca { position: absolute; left: 16px; top: 16px; z-index: 1; padding: 4px 12px; border-radius: 999px; background: var(--blanco); color: var(--terracota-texto); font-size: .875rem; font-weight: 600; }
.h-ej__chat {
  position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 1; max-width: 320px;
  padding: 10px 14px; border-radius: 14px 14px 14px 4px; background: #D6F5E3; color: var(--texto); font-size: .9375rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .25);
}
.h-ej__chat-de { display: block; font-size: .875rem; font-weight: 600; color: var(--verde); }
.h-ej__texto { padding: 24px 22px 22px; }
.h-ej__nombre { font-size: 1.375rem; }
.h-ej__nombre span { font-weight: 400; font-size: 1rem; color: var(--texto-suave); }
.h-ej__pasos { list-style: none; margin-top: 18px; }
.h-ej__pasos li { position: relative; padding: 0 0 16px 28px; }
.h-ej__pasos li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--teal); background: var(--blanco); }
.h-ej__pasos li::after { content: ""; position: absolute; left: 9px; top: 21px; bottom: 0; width: 2px; background: var(--gris); }
.h-ej__pasos li:last-child::before { background: var(--teal); }
.h-ej__pasos li:last-child::after { display: none; }
.h-ej__paso-tit { display: block; font-size: .875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--verde); }
.h-ej__cierre { margin: 4px 0 8px; padding: 14px 16px; border-radius: var(--radio); background: var(--verde-tinte); font-weight: 500; font-size: 1rem; }
@media (prefers-reduced-motion: no-preference) {
  .h-ej__escena.entrando .h-ej__texto { animation: desplegar .45s var(--anim); }
  .h-ej__escena.entrando .h-ej__chat { animation: hv-aparece .5s var(--anim) .25s both; }
  .h-ej__escena.entrando .h-ej__pasos li { animation: desplegar .45s var(--anim) both; }
  .h-ej__escena.entrando .h-ej__pasos li:nth-child(2) { animation-delay: .1s; }
  .h-ej__escena.entrando .h-ej__pasos li:nth-child(3) { animation-delay: .2s; }
}

/* ---------- 8. Zona ---------- */

.h-zona { padding: 48px 0; border-top: 1px solid var(--gris); }
.h-zona__fila { display: grid; grid-template-columns: auto 1fr; grid-column-gap: 18px; align-items: start; }
.h-zona__icono { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--verde-tinte); color: var(--verde); }
.h-zona__titulo { font-size: 1.25rem; }
.h-zona__lugares { margin-top: 6px; color: var(--texto-suave); }
.h-zona__texto { margin-top: 6px; color: var(--texto-suave); font-size: 1rem; }

/* ---------- Responsive ---------- */

@media (max-width: 639px) {
  .dif-texto { font-size: 22px; }
  .dif-nucleo-texto { font-size: 20px; }
}
@media (max-width: 479px) {
  .hv-google .hv-qr { display: none; }
  .hv-aviso { right: 0; }
}
@media (min-width: 480px) {
  .h-visual { height: 400px; }
  .hv-google { left: 4%; bottom: 6px; max-width: none; }
}

@media (min-width: 640px) {
  .h-hero { padding: 64px 0 72px; }
  .h-hero__botones { display: flex; flex-wrap: wrap; }
  .h-hero__botones > * + * { margin-left: 12px; }
  .h-visual { height: 440px; font-size: 14px; }
  .hv-telefono__pantalla { min-height: 290px; }
  .h-prob__lista { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-pil__item { display: grid; grid-template-columns: 13rem 1fr; grid-column-gap: 20px; align-items: baseline; }
  .h-pil__texto { margin-top: 0; }
  .h-alb__foto { margin: 0 auto; }
}

@media (min-width: 900px) {
  .h-hero { display: flex; align-items: center; min-height: calc(100vh - var(--alto-cab)); padding: 32px 0 40px; }
  .h-hero > .contenedor { width: 100%; }
  .h-hero__rejilla { grid-template-columns: 1fr 1fr; grid-gap: 32px; }
  .h-visual { height: 420px; max-height: calc(100vh - var(--alto-cab) - 96px); min-height: 380px; }
  .h-hero.con-fondo::before { background: linear-gradient(90deg, rgba(11, 69, 64, .97) 0%, rgba(11, 69, 64, .97) 50%, rgba(11, 69, 64, .7) 70%, rgba(11, 69, 64, .45) 100%); }
  .h-serv { padding: 64px 0; }
  .h-serv__cab { grid-template-columns: 1fr auto; }
  .ilus { height: 160px; }
  .ilus-web__ventana { top: 20px; height: 124px; }
  .ilus-web__movil { height: 104px; }
  .ilus-auto__fila:nth-child(1) { top: 16px; }
  .ilus-auto__fila:nth-child(2) { top: 62px; }
  .ilus-auto__fila:nth-child(3) { top: 108px; }
  .ilus-rep__ficha { top: 20px; }
  .ilus-rep__qr { bottom: 16px; width: 68px; height: 68px; }
  .h-serv__cuerpo { padding: 18px 20px 14px; }
  .h-serv__titular { margin-top: 6px; font-size: 1.25rem; }
  .h-serv__texto { margin-top: 8px; font-size: 1rem; }
  .h-proc.con-foto .h-proc__cab { max-width: 56%; }
  .h-proc__foto { position: absolute; top: 0; right: 0; width: 40%; height: 290px; margin: 0; clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); }
  .h-proc.con-foto .h-proc__pasos { margin-top: 72px; }
  .h-proc__foto::after { background: linear-gradient(90deg, rgba(11, 69, 64, .55), rgba(11, 69, 64, 0) 45%); }
  .h-dif__rejilla { grid-template-columns: 5fr 6fr; grid-gap: 56px; }
  .h-ej { padding: 48px 0; }
  .h-ej__cab { grid-template-columns: 1fr auto; grid-column-gap: 32px; grid-row-gap: 0; }
  .h-ej__cab > div:first-child { display: contents; }
  .h-ej__cab .etiqueta, .h-ej__cab .seccion__titulo { grid-column: 1 / -1; }
  .h-ej__cab .seccion__intro { grid-column: 1; align-self: center; }
  .h-ej__pestanas { grid-column: 2; margin: 8px 0 -10px -10px; justify-content: flex-end; }
  .h-ej__pestana { min-height: 54px; padding: 6px 16px 6px 6px; }
  .h-ej__escena { grid-template-columns: 1fr 1fr; }
  .h-ej__foto { min-height: 370px; }
  .h-ej__texto { padding: 28px 36px; align-self: center; }
  .h-ej__pasos li { padding-bottom: 14px; }
  .h-pos { padding: 96px 0; }
  .h-pos__rejilla { grid-template-columns: 1.1fr 1fr; grid-gap: 56px; align-items: center; }
  .h-prob__lista { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .h-serv__lista { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .h-proc__cab { grid-template-columns: 1fr auto; }
  .h-proc__pasos { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-column-gap: 20px; }
  .h-proc__paso { grid-template-columns: 1fr; padding-bottom: 0; }
  .h-proc__paso::after { left: 52px; right: -20px; top: 25px; bottom: auto; width: auto; height: 2px; }
  .h-proc__cierre { margin-top: 48px; }
  .h-alb__rejilla { grid-template-columns: 6fr 6fr; grid-gap: 64px; }
  .h-alb__foto { margin: 0; }
  .h-alb__sello { right: -18px; bottom: 32px; }
  .h-zona__fila { grid-template-columns: auto 1fr auto; }
}

@media (min-width: 900px) {
  .h-visual.h-visual--imagen { height: auto; max-height: none; min-height: 0; max-width: none; }
}

@media (min-width: 1080px) {
  .h-hero__rejilla { grid-template-columns: 1fr 1.08fr; grid-gap: 40px; }
  .h-visual.h-visual--imagen { height: auto; max-width: none; }
  /* Con mockup: imagen grande que llega hasta el borde derecho de la pantalla */
  .h-hero--mockup .h-hero__rejilla { grid-template-columns: 1fr 1fr; grid-gap: 24px; }
  .h-hero--mockup h1 { max-width: 20ch; }
  .h-hero--mockup .h-visual--imagen img { width: calc(100% + max(32px, (100vw - 74rem) / 2 + 32px)); max-width: none; }
  .h-hero--mockup.con-fondo::before { background: linear-gradient(90deg, rgba(11, 69, 64, .97) 0%, rgba(11, 69, 64, .97) 50%, rgba(11, 69, 64, .55) 68%, rgba(11, 69, 64, .15) 100%); }
  .h-visual { max-width: none; height: 500px; font-size: 14px; }
  .hv-portatil { top: 58px; width: 88%; }
  .hv-web { padding: 18px 20px 22px; }
  .hv-web__nav { font-size: 14px; }
  .hv-web__tit { font-size: 24px; }
  .hv-web__boton { font-size: 13px; padding: 7px 16px; }
  .hv-web__foto { height: 170px; }
  .hv-web__tarjetas span { height: 48px; }
  .hv-movil { max-width: 236px; }
  .hv-telefono__pantalla { min-height: 340px; }
  .hv-burbuja { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .hv { transform: none !important; }
  .h-prob__item:hover, .h-prob__item:focus-visible, .h-serv__card:hover, .h-serv__card:focus-within, .h-ej__pestana:hover { transform: none; }
}

@media print {
  .h-visual { display: none; }
}

.ilus-rep__ficha .marca--google-logo { display: block; height: 14px; margin-bottom: 6px; }
.ilus-web__lupa .marca { width: 14px; height: 14px; margin-right: 6px; }
.h-alb__conoce { margin-top: 12px; }

/* Mockups en las tarjetas de Soluciones: sin velo verde. La caja mantiene la proporción de la imagen (16:9)
   para que no se recorte en ningún ancho, y su fondo es el de la propia imagen (se inserta desde el generador). */
.ilus.ilus--mockup { height: auto; aspect-ratio: 16 / 9; max-height: 260px; background: var(--teal-tinte); }
.ilus--mockup .ilus__foto { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 50%; transform: none; transition: transform .6s var(--anim); }
.h-serv__card:hover .ilus--mockup .ilus__foto { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .h-serv__card:hover .ilus--mockup .ilus__foto { transform: none; } }
/* Fotografía de "Así trabajamos juntos": el sujeto está a la derecha y al centro */
.h-proc__foto img { object-position: 60% 55%; }

/* Módulo de zona con imagen: texto y mapa en dos columnas */
.h-zona--imagen .h-zona__fila { grid-template-columns: 1fr; grid-row-gap: 24px; align-items: center; }
.h-zona__imagen { max-width: 520px; margin: 0 auto; width: 100%; }
.h-zona__imagen img { display: block; width: 100%; height: auto; }
@media (min-width: 900px) {
  .h-zona--imagen { padding: 64px 0; }
  .h-zona--imagen .h-zona__fila { grid-template-columns: 1fr 1fr; grid-column-gap: 56px; }
  .h-zona--imagen .h-zona__titulo { font-size: 1.75rem; }
  .h-zona--imagen .h-zona__texto { font-size: 1.125rem; }
}

/* Ronda 8 · Home «¿Qué te está haciendo perder tiempo?» con mini-ilustración decorativa */
.h-prob__img { position: relative; display: block; width: 72px; height: 72px; object-fit: contain; transition: transform .3s var(--anim); }
.h-prob__item:hover .h-prob__img, .h-prob__item:focus-visible .h-prob__img { transform: scale(1.06) rotate(-3deg); }
@media (prefers-reduced-motion: reduce) { .h-prob__item:hover .h-prob__img, .h-prob__item:focus-visible .h-prob__img { transform: none; } }
@media (max-width: 479.98px) { .h-prob__img { width: 60px; height: 60px; } }

/* Un trabajo real (Laura Velázquez) */
.h-real { background: var(--blanco); }
.h-real__tarjeta {
  display: grid; overflow: hidden; border-radius: var(--radio-grande); background: var(--marfil);
  border: 1px solid var(--gris); box-shadow: var(--sombra);
}
.h-real__visual { display: flex; align-items: center; justify-content: center; min-height: 160px; background: var(--verde-tinte); }
.h-real__visual { padding: 20px 16px; }
.h-real__visual img { display: block; width: 100%; max-width: 440px; height: auto; margin: 0 auto; }
.h-real__icono { display: flex; align-items: center; justify-content: center; width: 88px; height: 88px; border-radius: 50%; background: var(--blanco); color: var(--verde); }
.h-real__icono .icono { width: 44px; height: 44px; }
.h-real__texto { padding: 24px 22px 26px; }
.h-real__negocio { margin: 8px 0 12px; }
.h-real__nota { margin-top: 12px; font-size: .875rem; color: var(--texto-suave); }
.h-real__botones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
@media (min-width: 900px) {
  .h-real__tarjeta { grid-template-columns: 2fr 3fr; }
  .h-real__texto { padding: 36px 40px; }
}
@media (max-width: 479px) {
  .h-real__botones .boton { flex: 1 1 100%; justify-content: center; padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 359px) {
  .h-real__texto { padding-left: 16px; padding-right: 16px; }
  .h-real__botones .boton { padding-left: 12px; padding-right: 12px; }
}

/* Línea de precios en «Así trabajamos juntos» (TARIFARIO 2.0) */
.h-proc__precios { margin-top: 22px; color: var(--sobre-verde-suave); }
.h-proc__precios .enlace-flecha { margin-left: 6px; color: var(--teal-claro); }
/* Con 4 problemas, la cuadrícula va en 2 × 2 (no deja una tarjeta sola) */
@media (min-width: 700px) { .h-prob__lista:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Mini-ilustración de la Home con fondo propio (p. ej. «Se me quedan mensajes sin contestar»): esquinas redondeadas */
.h-prob__img { border-radius: 16px; }

/* 25/10/2026: correo como enlace de texto bajo el botón de «Soy Alberto» */
.h-alb__correo { margin-top: 10px; font-size: 1rem; color: var(--texto-suave); overflow-wrap: anywhere; }
.h-alb__correo a { display: inline-flex; align-items: center; min-height: 44px; color: var(--verde); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.h-alb__correo a:hover { text-decoration-thickness: 2px; }
