/* TERMIPLAGAS — hoja de estilos.
   Dirección: limpia, de alto contraste, con blancos y negros puros y el verde del logotipo llevado a lima.
   Los colores están todos aquí arriba. */
:root {
  --negro: #000;
  --blanco: #fff;
  --verde: #68a924;       /* logotipo. Fondo de botones y degradados; NUNCA texto sobre blanco (2,9:1) */
  --lima: #62ff01;        /* acento sobre negro (15,8:1). NUNCA texto sobre blanco (1,3:1) */
  --verde-texto: #3f7a0e; /* verde para texto sobre blanco o gris (5,2:1) */
  --gris: #f4f4f4;        /* fondo de las secciones alternas */
  --linea: #e3e3e3;       /* bordes sobre blanco */
  --tinta-2: #4d4d4d;     /* texto secundario sobre blanco (8,4:1) */
  --sobre-negro-2: rgba(255,255,255,.74); /* texto secundario sobre negro */
  --degradado: linear-gradient(90deg, var(--verde), var(--lima));
  --sans: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --gutter: 16px;
  --max: 1200px;
  --r: 20px;              /* radio de tarjetas */
  --r-s: 12px;            /* radio de campos e iconos */
  --sombra: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px -12px rgba(0,0,0,.16);
  --sombra-alta: 0 2px 4px rgba(0,0,0,.05), 0 24px 48px -16px rgba(0,0,0,.24);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  overflow-x: clip; margin: 0; background: var(--blanco); color: var(--negro);
  font: 400 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--verde); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.salto { position: absolute; left: 8px; top: -60px; background: var(--negro); color: var(--blanco); padding: 10px 14px; z-index: 100; border-radius: 8px; }
.salto:focus { top: 8px; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------------------------------------------------------------- tipografía */
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.7rem, 6.6vw, 4.6rem); line-height: 1.04; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.85rem, 3.8vw, 2.75rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.015em; }
h4 { font-size: 1.05rem; }
/* La palabra en cursiva de cada titular: Fraunces, como en la portada */
h1 em, h2 em { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -0.02em; color: var(--verde-texto); }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.6; max-width: 36rem; }

/* Etiqueta en forma de píldora */
.pastilla {
  display: inline-flex; align-items: center; min-height: 34px; padding: 4px 18px; margin: 0;
  border-radius: 999px; background: var(--lima); color: var(--negro); font-size: .9rem; font-weight: 600; line-height: 1.2;
}
.pastilla--suave { background: var(--gris); color: var(--verde-texto); font-size: .8rem; min-height: 30px; padding: 3px 14px; }

/* Icono sobre baldosa lima */
.icono { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: var(--r-s); background: var(--lima); color: var(--negro); }
.icono img { width: 30px; height: 40px; object-fit: contain; }
.icono svg { width: 26px; height: 26px; }
.icono--s { width: 42px; height: 42px; border-radius: 10px; }
.icono--s img { width: 22px; height: 30px; }
.icono--s svg { width: 22px; height: 22px; }
.icono--l { width: 64px; height: 64px; border-radius: 16px; }
.icono--l svg { width: 32px; height: 32px; }

/* ---------------------------------------------------------------- botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .65em;
  min-height: 54px; padding: 0 28px; border: 2px solid transparent; border-radius: 999px;
  background: transparent; color: var(--negro); text-decoration: none; text-align: center;
  font-weight: 600; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1.2;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn--s { min-height: 44px; padding: 0 20px; font-size: .85rem; }
.btn--lima { background: var(--lima); border-color: var(--lima); color: var(--negro); }
.btn--lima:hover { background: var(--blanco); border-color: var(--blanco); box-shadow: 0 0 0 2px var(--lima) inset; }
.btn--borde { border-color: var(--lima); color: var(--blanco); }
.btn--borde:hover { background: var(--lima); color: var(--negro); }
.btn--negro { background: var(--negro); border-color: var(--negro); color: var(--blanco); }
.btn--negro:hover { background: #222; border-color: #222; }
.btn--borde-negro { border-color: var(--negro); color: var(--negro); }
.btn--borde-negro:hover { background: var(--negro); color: var(--blanco); }
/* sobre fondo claro, el lima necesita el negro para no perderse */
.sec .btn--lima:hover, .fdlg .btn--lima:hover { background: var(--negro); border-color: var(--negro); color: var(--blanco); box-shadow: none; }
.botones { display: flex; flex-wrap: wrap; gap: 14px; }

/* «Ver ficha →»: flecha en círculo */
.ver { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .92rem; }
.ver__ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--lima); color: var(--negro); transition: transform .25s var(--ease), background .2s, color .2s; }
.ver__ic svg { width: 16px; height: 16px; }

/* ---------------------------------------------------------------- barra superior */
.topbar { background: var(--degradado); color: var(--negro); }
.topbar__in { display: flex; align-items: center; justify-content: center; gap: 14px 56px; min-height: 44px; flex-wrap: wrap; padding-block: 6px; }
.topbar__tel { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 1.05rem; letter-spacing: .02em; }
.topbar__tel svg { width: 20px; height: 20px; }
.topbar__tel:hover span { text-decoration: underline; text-underline-offset: 3px; }
.topbar__gratis { margin: 0; font-weight: 700; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 479.98px) { .topbar__in { gap: 4px 22px; } .topbar__tel { font-size: .95rem; } .topbar__gratis { font-size: .8rem; } }

/* ---------------------------------------------------------------- cabecera */
.cab { position: sticky; top: 0; z-index: 50; background: var(--blanco); transition: box-shadow .25s; }
.cab__in { display: flex; align-items: center; gap: 24px; height: 76px; transition: height .25s; }
.cab--cond { box-shadow: 0 1px 0 var(--linea), 0 10px 30px -18px rgba(0,0,0,.35); }
.cab--cond .cab__in { height: 62px; }
.cab__logo { display: block; flex: none; }
.cab__logo img { height: 44px; width: auto; transition: height .25s; }
.cab--cond .cab__logo img { height: 36px; }
@media (max-width: 379.98px) { .cab__logo img { height: 36px; } }
.nav { display: none; margin-left: auto; gap: 44px; }
.nav a { position: relative; text-decoration: none; font-weight: 500; font-size: 1.05rem; padding: 6px 0; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px; background: var(--lima); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav a:hover::after { transform: scaleX(1); }
/* El botón «Llamar» de la cabecera solo aparece al bajar, cuando la barra superior ya no se ve */
.cab__btn { display: none; }
.menu-btn {
  margin-left: auto; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--negro);
  display: grid; place-content: center; gap: 5px; padding: 0;
}
.menu-btn span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--lima); }
@media (min-width: 960px) {
  .nav { display: flex; }
  .menu-btn { display: none; }
  .cab__btn { display: inline-flex; width: 0; padding: 0; margin-left: -24px; border-width: 0; overflow: hidden; opacity: 0; transition: opacity .25s, width .25s, padding .25s, margin .25s; }
  .cab--cond .cab__btn { width: 132px; padding: 0 18px; margin-left: 0; opacity: 1; }
}
.menu {
  border: 0; padding: 0; width: 100%; max-width: 100%; height: 100%; max-height: 100%;
  background: var(--negro); color: var(--blanco);
}
.menu::backdrop { background: rgba(0,0,0,.5); }
.menu__in { padding: 20px var(--gutter) 40px; display: flex; flex-direction: column; gap: 6px; height: 100%; overflow-y: auto; }
.menu__cerrar { align-self: flex-end; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--lima); color: var(--negro); font-size: 28px; line-height: 1; }
.menu a.menu__enlace { font-size: 1.9rem; font-weight: 600; letter-spacing: -.02em; text-decoration: none; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.menu .btn { margin-top: 28px; }

/* ---------------------------------------------------------------- portada */
.portada { position: relative; isolation: isolate; background: var(--negro); color: var(--blanco); overflow: hidden; }
/* Foto del técnico: en móvil, franja arriba que se funde en negro; en escritorio, ocupa la derecha y el texto va sobre negro */
.portada__fondo { display: block; width: 100%; height: clamp(260px, 72vw, 520px); object-fit: cover; object-position: 38% 18%; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
@media (min-width: 1200px) {
  .portada__fondo { position: absolute; top: 0; bottom: 0; right: 0; left: auto; z-index: -2; width: 66%; height: 100%; object-position: 100% 20%; -webkit-mask-image: none; mask-image: none; }
  .portada::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(90deg, #000 0%, #000 34%, rgba(0,0,0,.6) 42%, rgba(0,0,0,0) 54%),
                linear-gradient(0deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,0) 22%); }
}
.portada__grid { display: grid; gap: 44px; align-items: center; padding-block: 0 clamp(48px, 7vw, 80px); margin-top: clamp(-120px, -14vw, -48px); position: relative; }
@media (min-width: 1200px) {
  .portada__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 48px; margin-top: 0; padding-block: 64px 64px; }
  /* el texto ocupa la izquierda y deja ver la cara del técnico entre el texto y la tarjeta */
  .portada__txt { max-width: 540px; }
  .portada .lede { font-size: 1.1rem; }
}
.portada .pastilla { margin-bottom: clamp(26px, 4vw, 40px); }
.portada h1 { color: var(--lima); margin-bottom: clamp(26px, 4vw, 44px); }
.portada h1 em { display: block; color: var(--lima); font-weight: 600; font-size: 1.08em; letter-spacing: -0.03em; }
.portada .lede { color: rgba(255,255,255,.92); margin-bottom: clamp(30px, 4vw, 44px); }
.portada__horario { margin: 18px 0 0; color: var(--sobre-negro-2); font-weight: 500; }

/* «¿Qué problema tienes?» */
.problemas { background: var(--blanco); color: var(--negro); border-radius: var(--r); padding: 28px 24px 22px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.2); max-width: 520px; width: 100%; justify-self: end; }
@media (max-width: 1199.98px) { .problemas { justify-self: stretch; max-width: 640px; } }
@media (min-width: 480px) { .problemas { padding: 34px 30px 24px; } }
.problemas h2 { font-size: 1.45rem; letter-spacing: -.02em; }
.problemas__sub { color: var(--tinta-2); margin: 4px 0 16px; font-size: .95rem; }
.problemas ul { list-style: none; margin: 0; padding: 0; }
.problemas li + li { border-top: 1px solid var(--linea); }
.problemas li a { display: flex; align-items: center; gap: 16px; padding: 13px 6px; margin-inline: -6px; border-radius: var(--r-s); text-decoration: none; transition: background .2s; }
.problemas li a:hover { background: var(--gris); }
.problemas li a > svg { width: 18px; height: 18px; flex: none; margin-left: auto; transition: transform .25s var(--ease); }
.problemas li a:hover > svg { transform: translateX(3px); }
.problemas__t { display: grid; min-width: 0; }
.problemas__t strong { font-weight: 600; font-size: 1.02rem; line-height: 1.3; }
.problemas__t span { color: var(--tinta-2); font-size: .86rem; line-height: 1.4; }
.problemas__pie { margin: 12px 0 0; padding-top: 16px; border-top: 1px solid var(--linea); font-size: .88rem; color: var(--tinta-2); }
.problemas__pie a { color: var(--negro); font-weight: 600; text-underline-offset: 3px; }

/* Franja de confianza */
.sellos { border-top: 1px solid rgba(255,255,255,.16); background: rgba(0,0,0,.35); }
.sellos ul { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
@media (min-width: 720px) { .sellos ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .sellos ul { grid-template-columns: repeat(5, auto); justify-content: space-between; } }
.sellos li { display: grid; line-height: 1.35; }
.sellos strong { font-weight: 600; font-size: 1rem; }
.sellos span { color: var(--sobre-negro-2); font-size: .88rem; }
.sellos .estrellas { color: var(--lima); font-size: .95rem; letter-spacing: .08em; }
@media (max-width: 719.98px) { .sellos li:last-child { grid-column: 1 / -1; } }

/* ---------------------------------------------------------------- secciones */
.sec { padding-block: clamp(55px, 9vw, 120px); }
.sec--gris { background: var(--gris); }
.sec__cab { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec__cab p { max-width: 58ch; margin: 0; color: var(--tinta-2); }
@media (min-width: 960px) { .sec__cab--dos { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; } .sec__cab--dos p { padding-top: 6px; } }

/* Control de plagas en Valencia: texto y foto */
.intro { display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) { .intro { grid-template-columns: 6fr 5fr; gap: 72px; } }
.intro h2 { margin-bottom: 22px; }
.intro p { color: var(--tinta-2); font-size: 1.05rem; margin-bottom: 30px; }
.intro__foto { margin: 0; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: #e8e8e8; }
.intro__foto img { width: 100%; height: 100%; object-fit: cover; }
.tarjeta:hover .ver__ic { background: var(--negro); color: var(--lima); transform: translateX(3px); }

/* Ámbito de aplicación */
.ambito { display: grid; gap: 36px; }
@media (min-width: 960px) { .ambito { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; } }
.ambito__izq h2 { margin-bottom: 28px; }
.credenciales { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; margin: 0; padding: 26px; border-radius: var(--r); background: var(--negro); color: var(--blanco); }
.credenciales p { margin: 0; color: rgba(255,255,255,.88); font-size: .98rem; }
.alcance { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.alcance li { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; padding: 22px 24px; border-radius: var(--r); background: var(--blanco); border: 1px solid var(--linea); }
.alcance li p { margin: 0; }
.alcance__n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--lima); font-weight: 700; font-size: .9rem; }
.sectores__bloque { margin-top: clamp(40px, 6vw, 64px); display: grid; gap: 16px; }
@media (min-width: 960px) { .sectores__bloque { grid-template-columns: 12fr; gap: 72px; align-items: center; } }
.sectores__t { font-size: 1.35rem;    display: flex;
    align-items: center; }
.sectores { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.sectores li { padding: 9px 18px; border-radius: 999px; background: var(--blanco); border: 1px solid var(--linea); font-weight: 500; font-size: .92rem; }
.equipo__fotos { display: grid; gap: 18px; margin-top: clamp(40px, 6vw, 64px); }
@media (min-width: 720px) { .equipo__fotos { grid-template-columns: repeat(2, 1fr); gap: 22px; } }
.equipo__fotos figure { margin: 0; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: #ddd; }
.equipo__fotos img { width: 100%; height: 100%; object-fit: cover; }

/* Medio ambiente: negro con un halo verde */
.ambiente {
  padding-block: clamp(64px, 9vw, 112px); color: var(--blanco);
  background: radial-gradient(60rem 30rem at 0% 0%, rgba(98,255,1,.16), transparent 60%), radial-gradient(40rem 24rem at 100% 100%, rgba(104,169,36,.22), transparent 60%), var(--negro);
}
.ambiente__in { display: grid; gap: 28px; }
@media (min-width: 900px) { .ambiente__in { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; } }
.ambiente .icono { margin-bottom: 26px; }
.ambiente h2 em { color: var(--lima); }
.ambiente__txt p { margin: 0 0 1.1em; font-size: 1.05rem; color: rgba(255,255,255,.86); }
.ambiente__txt p:first-child { font-size: 1.18rem; color: var(--blanco); }

/* Cierre: primer diagnóstico gratis, en lima */
.cta { padding-block: clamp(56px, 8vw, 96px); background: var(--degradado); color: var(--negro); }
.cta__in { display: grid; gap: 22px; }
@media (min-width: 900px) { .cta__in { grid-template-columns: 5fr 7fr; gap: 72px; align-items: center; } }
.cta h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.cta h2 em { color: var(--negro); }
.cta p { font-size: 1.12rem; font-weight: 500; max-width: 46ch; margin: 0 0 26px; }

/* ---------------------------------------------------------------- servicios: filtros y tarjetas */
.filtros { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 40px; padding: 0; list-style: none; }
.filtro {
  display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 20px;
  border: 1px solid var(--linea); border-radius: 999px; background: var(--blanco); font-weight: 500; font-size: .93rem;
  transition: background .2s, color .2s, border-color .2s;
}
.filtro img { width: 20px; height: 20px; object-fit: contain; }
.filtro:hover { border-color: var(--negro); }
.filtro[aria-pressed="true"] { background: var(--negro); border-color: var(--negro); color: var(--blanco); }
.filtro[aria-pressed="true"] img { filter: invert(1); }

.rejilla { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .rejilla { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .rejilla { grid-template-columns: repeat(3, 1fr); } }
.rejilla li[hidden] { display: none; }
.tarjeta {
  display: flex; flex-direction: column; width: 100%; height: 100%; text-align: left; padding: 0;
  border: 1px solid var(--linea); border-radius: var(--r); background: var(--blanco); overflow: hidden;
  transition: border-color .25s, box-shadow .25s, transform .25s var(--ease);
}
.tarjeta:hover { border-color: var(--negro); box-shadow: var(--sombra-alta); }
.tarjeta:focus-visible { outline-offset: 4px; }
.tarjeta__foto { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #e8e8e8; }
.tarjeta__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tarjeta:hover .tarjeta__foto img { transform: scale(1.045); }
.tarjeta__txt { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.tarjeta__grupo { align-self: flex-start; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--verde-texto); margin-bottom: 8px; }
.tarjeta__txt strong { display: block; font-size: 1.22rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; margin-bottom: 6px; }
.tarjeta__txt .cient { display: block; font-family: var(--serif); font-size: .98rem; color: var(--tinta-2); margin: -2px 0 6px; }
.tarjeta__txt .res { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: var(--tinta-2); font-size: .93rem; line-height: 1.55; margin-bottom: 18px; }
.tarjeta .ver { margin-top: auto; }

/* ---------------------------------------------------------------- ventanas (fichas y textos legales) */
.fdlg {
  border: 0; border-radius: 24px; padding: 0; background: var(--blanco); color: var(--negro);
  width: min(1000px, calc(100% - 24px)); max-height: calc(100dvh - 24px); overflow: hidden; margin: auto;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.5);
}
.fdlg::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(3px); }
.fdlg__in { display: grid; max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; }
@media (min-width: 800px) { .fdlg__in { grid-template-columns: 5fr 6fr; } }
.fdlg__foto { padding: 72px 20px 0; }
@media (min-width: 800px) { .fdlg__foto { padding: 28px 0 28px 28px; align-self: start; position: sticky; top: 0; } }
.fdlg__img { aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: #e8e8e8; }
.fdlg__img img { width: 100%; height: 100%; object-fit: cover; }
.fdlg__cient { margin: 10px 4px 0; font-family: var(--serif); font-style: italic; color: var(--tinta-2); }
.fdlg__cuerpo { padding: 24px 20px 28px; position: relative; }
@media (min-width: 800px) { .fdlg__cuerpo { padding: 36px 36px 36px 32px; } }
.fdlg h3 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); letter-spacing: -.025em; margin: 14px 0 18px; }
@media (min-width: 800px) { .fdlg h3 { padding-right: 52px; } }
.fdlg p { margin-bottom: .85em; color: #1f1f1f; }
.fdlg h4.sub { font-size: 1.12rem; line-height: 1.3; font-weight: 600; margin: 28px 0 8px; }
.fdlg .lista { margin: 0 0 1em; padding-left: 1.2em; }
.fdlg .lista li { margin-bottom: .6em; }
.fdlg .lista li::marker { color: var(--verde); font-weight: 700; }
.fdlg__cerrar {
  position: absolute; top: 14px; right: 14px; z-index: 5; width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: var(--negro); color: var(--blanco); font-size: 26px; line-height: 1; box-shadow: 0 0 0 6px var(--blanco);
}
.fdlg__cerrar:hover { background: var(--lima); color: var(--negro); }
.fdlg__cta { margin-top: 28px; padding: 24px; border-radius: 18px; background: var(--gris); }
.fdlg__cta h4 { font-size: 1.2rem; margin-bottom: 8px; }
.fdlg__cta p { font-weight: 500; }
.fdlg--texto { width: min(760px, calc(100% - 24px)); }
.fdlg--texto .fdlg__in { grid-template-columns: 1fr; }
.fdlg--texto .fdlg__cuerpo { padding-top: 72px; }
@media (min-width: 800px) { .fdlg--texto .fdlg__cuerpo { padding: 48px 44px 44px; } }
.fdlg--texto h3 { margin-top: 0; }
.fdlg--texto h4.sub:first-of-type { margin-top: 8px; }
.fdlg--texto a { text-underline-offset: 4px; }

/* ---------------------------------------------------------------- contacto */
.contacto__grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .contacto__grid { grid-template-columns: 7fr 5fr; gap: 56px; align-items: start; } }
.form { display: grid; gap: 18px; padding: clamp(22px, 4vw, 40px); border-radius: var(--r); background: var(--blanco); box-shadow: var(--sombra); }
.campo-f { display: grid; gap: 7px; }
.campo-f label, .campo-f legend { font-weight: 600; font-size: .9rem; padding: 0; }
.campo-f input[type=text], .campo-f input[type=email], .campo-f input[type=tel], .campo-f select, .campo-f textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid #cfcfcf; border-radius: var(--r-s);
  background: var(--blanco); color: var(--negro); font: inherit; transition: border-color .2s, box-shadow .2s;
}
.campo-f select { appearance: none; background: var(--blanco) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center / 18px; padding-right: 44px; }
.campo-f textarea { min-height: 140px; resize: vertical; }
.campo-f input:hover, .campo-f select:hover, .campo-f textarea:hover { border-color: #8a8a8a; }
.campo-f input:focus, .campo-f select:focus, .campo-f textarea:focus { outline: none; border-color: var(--negro); box-shadow: 0 0 0 4px rgba(98,255,1,.55); }
.dos { display: grid; gap: 18px; }
@media (min-width: 640px) { .dos { grid-template-columns: 1fr 1fr; } }
fieldset.campo-f { border: 0; margin: 0; padding: 0; min-width: 0; }
.radios { display: flex; gap: 10px; flex-wrap: wrap; }
.radios label { font-weight: 500; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; border: 1px solid #cfcfcf; border-radius: 999px; cursor: pointer; background: var(--blanco); transition: background .2s, color .2s, border-color .2s; }
.radios input { accent-color: var(--lima); width: 18px; height: 18px; margin: 0; }
.radios label:has(input:checked) { background: var(--negro); border-color: var(--negro); color: var(--blanco); }
.acepto { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; padding-block: 8px; font-size: .9rem; line-height: 1.5; }
.acepto input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--negro); flex: none; }
.acepto a { text-underline-offset: 3px; font-weight: 500; }
.form__nota { font-size: .85rem; color: var(--tinta-2); margin: 0; }
.form__estado { margin: 0; font-weight: 600; min-height: 1.4em; }
.form__estado:empty { display: none; }
.contacto__datos { padding: clamp(26px, 4vw, 36px); border-radius: var(--r); background: var(--negro); color: var(--blanco); }
@media (min-width: 960px) { .contacto__datos { position: sticky; top: 96px; } }
.contacto__datos h3 { margin-bottom: 22px; color: var(--lima); }
.contacto__datos dl { margin: 0 0 26px; display: grid; gap: 0; }
.contacto__datos dl > div { padding-block: 14px; border-bottom: 1px solid rgba(255,255,255,.14); }
.contacto__datos dl > div:first-child { padding-top: 0; }
.contacto__datos dt { color: var(--sobre-negro-2); font-size: .8rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.contacto__datos dd { margin: 0; font-size: 1.02rem; overflow-wrap: anywhere; }
.contacto__datos dd a { text-underline-offset: 4px; }
.contacto__datos .tel { display: inline-block; font-size: 2rem; font-weight: 700; letter-spacing: -.02em; text-decoration: none; color: var(--lima); }
.contacto__btns { display: grid; gap: 12px; }

/* ---------------------------------------------------------------- preguntas frecuentes */
.faq__grid { display: grid; gap: 24px; }
@media (min-width: 960px) { .faq__grid { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; } .faq__grid .sec__cab { position: sticky; top: 110px; margin: 0; } }
.faq__grid .sec__cab .botones { margin-top: 10px; }
.faq { display: grid; gap: 12px; }
.faq__item { border: 1px solid var(--linea); border-radius: 18px; background: var(--blanco); transition: border-color .2s, background .2s; }
.faq__item:hover { border-color: #b5b5b5; }
.faq__item[open] { border-color: var(--negro); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 20px 22px; font-weight: 600; font-size: 1.05rem; line-height: 1.4; border-radius: 18px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ''; flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--lima) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") no-repeat center / 18px;
  transition: transform .25s var(--ease), background-color .2s;
}
.faq__item[open] summary::after { transform: rotate(45deg); background-color: var(--negro); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2362ff01' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E"); }
.faq__resp { padding: 0 22px 22px; max-width: 70ch; color: var(--tinta-2); }
.faq__resp p { margin: 0; }

/* ---------------------------------------------------------------- pie */
.pie { background: var(--negro); color: var(--blanco); padding-block: 64px 112px; border-top: 4px solid transparent; border-image: var(--degradado) 1; }
@media (min-width: 720px) { .pie { padding-bottom: 56px; } }
.pie__grid { display: grid; gap: 36px; }
@media (min-width: 800px) { .pie__grid { grid-template-columns: 2fr 1fr 1fr; gap: 56px; } }
.pie img { width: 220px; height: auto; margin-bottom: 20px; }
.pie p { margin: 0 0 .35em; color: var(--sobre-negro-2); font-size: .93rem; }
.pie h2 { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--lima); margin-bottom: 10px; }
.pie ul { list-style: none; margin: 0; padding: 0; }
.pie a { display: inline-block; padding-block: 9px; color: var(--blanco); text-decoration: none; font-size: .95rem; }
.pie a:hover { color: var(--lima); }

/* ---------------------------------------------------------------- barra fija del móvil */
.barra {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: var(--negro);
}
.barra a { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; border-radius: 999px; font-weight: 600; text-decoration: none; color: var(--blanco); border: 2px solid rgba(255,255,255,.3); }
.barra a:first-child { background: var(--lima); border-color: var(--lima); color: var(--negro); }
.barra svg { width: 20px; height: 20px; }
@media (min-width: 720px) { .barra { display: none; } }

/* ===================================================================
   MOVIMIENTO
   Todo con transform y opacity. Con prefers-reduced-motion no hay
   nada de esto y nada queda oculto.
   =================================================================== */
@keyframes entrar { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes asienta { from { transform: scale(1.08); } to { transform: none; } }
@keyframes aro { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.12, 1.45); } }
@keyframes barra-in { from { transform: translateY(100%); } to { transform: none; } }
@keyframes dlg-in { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes fundido { from { opacity: 0; } to { opacity: 1; } }
@keyframes abre { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.stg > li:nth-child(1) { --n: 0; } .stg > li:nth-child(2) { --n: 1; } .stg > li:nth-child(3) { --n: 2; }
.stg > li:nth-child(4) { --n: 3; } .stg > li:nth-child(5) { --n: 4; } .stg > li:nth-child(6) { --n: 5; }
.stg > li:nth-child(7) { --n: 6; } .stg > li:nth-child(8) { --n: 7; } .stg > li:nth-child(9) { --n: 8; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}

@media (prefers-reduced-motion: no-preference) {
  /* 1. Portada */
  .portada__fondo { animation: asienta 1.8s var(--ease) backwards; }
  .portada .pastilla { animation: entrar .8s var(--ease) .05s backwards; }
  .portada h1 { animation: entrar .8s var(--ease) .15s backwards; }
  .portada .lede { animation: entrar .8s var(--ease) .3s backwards; }
  .portada .botones { animation: entrar .8s var(--ease) .42s backwards; }
  .problemas { animation: entrar .9s var(--ease) .3s backwards; }
  .problemas li { animation: entrar .6s var(--ease) backwards; }
  .problemas li:nth-child(1) { animation-delay: .5s; } .problemas li:nth-child(2) { animation-delay: .56s; }
  .problemas li:nth-child(3) { animation-delay: .62s; } .problemas li:nth-child(4) { animation-delay: .68s; }
  .problemas li:nth-child(5) { animation-delay: .74s; }
  .sellos li { animation: entrar .7s var(--ease) backwards; }
  .sellos li:nth-child(1) { animation-delay: .6s; } .sellos li:nth-child(2) { animation-delay: .67s; } .sellos li:nth-child(3) { animation-delay: .74s; }
  .sellos li:nth-child(4) { animation-delay: .81s; } .sellos li:nth-child(5) { animation-delay: .88s; }
  .portada .btn--lima { position: relative; }
  .portada .btn--lima::after { content: ''; position: absolute; inset: -2px; border: 2px solid var(--lima); border-radius: inherit; pointer-events: none; opacity: 0; animation: aro 1.3s ease-out 2.8s 1; }

  /* 2. Apariciones al hacer scroll (una vez) */
  .js .reveal { opacity: 0; transform: translateY(16px); }
  .js .reveal.vis { opacity: 1; transform: none; animation: entrar .7s var(--ease) var(--d, 0ms) backwards; }
  .js .reveal.stg, .js .reveal.stg.vis { opacity: 1; transform: none; animation: none; }
  .js .stg > li { opacity: 0; transform: translateY(14px); }
  .js .stg.vis > li { opacity: 1; transform: none; animation: entrar .6s var(--ease) calc(var(--n, 0) * 70ms) backwards; }

  @media (min-width: 640px) and (max-width: 1023.98px) { .rejilla li:nth-child(2n) { --d: 90ms; } }
  @media (min-width: 1024px) { .rejilla li:nth-child(3n+2) { --d: 90ms; } .rejilla li:nth-child(3n) { --d: 180ms; } }
  .faq__item:nth-child(2) { --d: 60ms; } .faq__item:nth-child(3) { --d: 120ms; } .faq__item:nth-child(4) { --d: 180ms; }
  .alcance li:nth-child(2) { --d: 70ms; } .alcance li:nth-child(3) { --d: 140ms; } .alcance li:nth-child(4) { --d: 210ms; }
  .intro__foto, .equipo__fotos figure:nth-child(2), .cta__in > :nth-child(2), .ambiente__in > :nth-child(2), .contacto__grid > :nth-child(2) { --d: 140ms; }
  .reveal.vis .tarjeta__foto img, .equipo__fotos .reveal.vis img, .intro__foto.vis img { animation: asienta 1.1s var(--ease) var(--d, 0ms) backwards; }

  /* al filtrar manda el JavaScript: sin animación CSS que se reinicie al volver a mostrar la tarjeta */
  .rejilla.filtrando li.reveal.vis, .rejilla.filtrando .tarjeta__foto img { animation: none; }

  /* 3. Microdetalles */
  .btn { transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s var(--ease); }
  .btn:hover { transform: translateY(-2px); }
  .btn:active { transform: none; }
  .tarjeta:hover { transform: translateY(-4px); }

  /* ventanas, menú y preguntas */
  .fdlg[open] { animation: dlg-in .35s var(--ease); }
  .fdlg[open]::backdrop { animation: fundido .3s ease; }
  .menu[open] { animation: fundido .25s ease; }
  .menu[open] .menu__enlace { animation: entrar .5s var(--ease) backwards; }
  .menu__enlace:nth-of-type(1) { animation-delay: .08s !important; } .menu__enlace:nth-of-type(2) { animation-delay: .14s !important; }
  .menu__enlace:nth-of-type(3) { animation-delay: .2s !important; } .menu__enlace:nth-of-type(4) { animation-delay: .26s !important; }
  .menu[open] .btn { animation: entrar .5s var(--ease) .34s backwards; }
  .faq__item[open] .faq__resp { animation: abre .35s var(--ease); }

  .barra { animation: barra-in .55s var(--ease) 1.1s backwards; }
}

/* Al imprimir no puede quedar nada oculto */
@media print {
  .js .reveal, .js .stg > li { opacity: 1 !important; transform: none !important; animation: none !important; }
  .topbar, .barra, .menu-btn { display: none; }
}

/* ===================================================================
   ANCLAS DEL MENÚ
   La cabecera pasa de 76 a 62 px al condensarse. Como ocupa sitio en la
   página, todo lo de debajo subía 14 px en mitad del desplazamiento y el
   enlace no acababa justo en su sección. Este margen guarda el hueco.
   =================================================================== */
.cab--cond { margin-bottom: 14px; }
/* «Sectores:» va dentro de la lista para quedar en la misma línea que las píldoras */
.sectores li.sectores__cab { padding: 0 6px 0 0; border: 0; border-radius: 0; background: none; display: flex; align-items: center; }

/* ===================================================================
   FIRMA bajo el pie: los logotipos de cada estudio
   =================================================================== */
.firma { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 28px; margin-top: 48px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.14); }
.pie .firma__item { display: inline-flex; align-items: center; gap: 12px; padding: 6px 4px; text-decoration: none; opacity: .82; transition: opacity .2s; }
.pie .firma__item:hover { opacity: 1; color: inherit; }
.firma__rol { font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--sobre-negro-2); }
.pie .firma__item img { width: auto; margin: 0; }
.pie .firma__si4 { height: 22px; }
.pie .firma__alpha { height: 27px; }
.firma__sep { width: 1px; height: 22px; background: rgba(255,255,255,.2); }
@media (max-width: 479.98px) { .firma__sep { display: none; } .firma { flex-direction: column; gap: 6px; } }

/* nota del asterisco de «Primera visita gratis*» */
.pie .pie__nota { margin: 40px 0 0; max-width: 70ch; font-size: .8rem; line-height: 1.5; color: var(--sobre-negro-2); }
