/* ---------- Tipografías ---------- */
@font-face { font-family: "Raleway"; src: url("/fuentes/raleway.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fuentes/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

/* ---------- Tokens (de lugardobenitez.com) ---------- */
:root {
  --rojo: #FA0726;
  --rojo-accion: #E2051F;
  --rojo-oscuro: #B8001A;
  --tinta: #2B2B2B;
  --tinta-suave: #4D4D4D;
  --gris-texto: #6B6B6B;
  --gris-fondo: #F2F2F2;
  --gris-claro: #F7F7F7;
  --borde: #E3E3E3;
  --blanco: #FFFFFF;
  --noche: #121212;
  --noche-2: #1C1C1C;
  --color-fondo: var(--blanco);
  --color-texto: var(--tinta);
  --color-marca: var(--rojo-accion);
  --color-marca-oscuro: var(--rojo-oscuro);
  --color-borde: var(--borde);
  --fuente: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fuente-titulos: "Raleway", "Inter", system-ui, sans-serif;
  --alto-encabezado: 64px;
  --radio: 20px;
  --sombra: 0 10px 30px rgb(0 0 0 / 0.08);
  --sombra-alta: 0 22px 50px rgb(0 0 0 / 0.14);
}
@media (min-width: 900px) { :root { --alto-encabezado: 76px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1rem/1.6 var(--fuente); color: var(--color-texto); background: var(--color-fondo); }
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--fuente-titulos); font-weight: 900; line-height: 1.08; letter-spacing: -0.01em; margin: 0; color: var(--tinta); }
h1 { font-size: clamp(2.3rem, 7vw + 0.6rem, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw + 0.6rem, 3rem); }
h3 { font-size: 1.2rem; font-weight: 800; line-height: 1.25; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--rojo-accion); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: calc(var(--alto-encabezado) + 16px); }
input, select, textarea, button { font: inherit; }
input, select, textarea { font-size: 16px; }
.saltar { position: absolute; left: 5%; top: -100px; z-index: 100; background: var(--tinta); color: #fff; padding: 12px 16px; border-radius: 8px; }
.saltar:focus { top: 12px; }
.oculto { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.rojo { color: var(--rojo); }
.centrado { text-align: center; margin-top: 40px; }

/* ---------- Regla del 90 % ---------- */
.contenedor { width: min(90%, 1200px); margin-inline: auto; }

/* ---------- Encabezado ---------- */
.encabezado { position: sticky; top: 0; z-index: 50; transition: box-shadow 0.25s ease; }
.encabezado::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(242 242 242 / 0.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.encabezado.con-scroll { box-shadow: 0 1px 0 var(--borde), var(--sombra); }
.encabezado.con-scroll::before { background: rgb(255 255 255 / 0.92); }
.encabezado .contenedor { height: var(--alto-encabezado); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.marca { display: flex; align-items: center; min-height: 44px; min-width: 44px; }
.marca img { height: 34px; width: auto; }

/* ---------- Menú ---------- */
.menu { display: flex; align-items: center; gap: 28px; }
.menu a { color: var(--tinta); text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: color 0.2s ease; }
.menu a:not(.boton):hover, .menu a[aria-current="page"] { color: var(--rojo-accion); }
.menu-boton { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; color: var(--tinta); }
.menu-boton span, .menu-boton span::before, .menu-boton span::after {
  display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px;
  margin-inline: auto; position: relative; transition: transform 0.3s ease, background 0.3s ease;
}
.menu-boton span::before, .menu-boton span::after { content: ""; position: absolute; left: 0; }
.menu-boton span::before { top: -7px; }
.menu-boton span::after { top: 7px; }
.menu-abierto .menu-boton span { background: transparent; }
.menu-abierto .menu-boton span::before { transform: translateY(7px) rotate(45deg); }
.menu-abierto .menu-boton span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 899px) {
  .menu-boton { display: block; }
  .menu {
    position: fixed; inset: var(--alto-encabezado) 0 0 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 24px 5%;
    background: var(--blanco);
    transform: translateX(100%); visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s;
    overflow-y: auto;
  }
  .menu a { font-family: var(--fuente-titulos); font-size: 1.4rem; font-weight: 800; padding: 12px 0; min-height: 52px; display: flex; align-items: center; border-bottom: 1px solid var(--borde); }
  .menu .boton { margin-top: 20px; border-bottom: 0; justify-content: center; font-family: var(--fuente); font-size: 1.05rem; }
  .menu a.boton-contorno { background: var(--rojo-accion); color: #fff; min-height: 52px; padding: 12px 22px; }
  .menu-abierto .menu { transform: none; visibility: visible; }
  .menu-abierto .encabezado::before { background: var(--blanco); }
  html.menu-abierto { overflow: hidden; }
}

/* ---------- Botones e íconos ---------- */
.icono { display: inline-block; width: 1.25em; height: 1.25em; vertical-align: -0.2em; flex: none; }
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 999px;
  border: 2px solid var(--rojo-accion); background: var(--rojo-accion); color: #fff; font-weight: 700; font-size: 0.95rem; text-decoration: none; cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.boton:hover { background: var(--rojo-oscuro); border-color: var(--rojo-oscuro); transform: translateY(-2px); box-shadow: 0 10px 24px rgb(226 5 31 / 0.25); }
.boton:active { transform: translateY(0); }
.boton .icono { width: 1.1em; height: 1.1em; }
.boton-contorno { background: transparent; color: var(--rojo-accion); }
.menu .boton-contorno { color: var(--rojo-accion); min-height: 40px; padding: 8px 18px; }
.boton-contorno:hover, .menu .boton-contorno:hover { background: var(--rojo-accion); color: #fff; }
.boton-oscuro-contorno { background: transparent; border-color: var(--tinta); color: var(--tinta); }
.boton-oscuro-contorno:hover { background: var(--tinta); border-color: var(--tinta); color: #fff; box-shadow: var(--sombra); }
.boton-grande { min-height: 54px; font-size: 1rem; width: 100%; }
.boton-fantasma { background: transparent; border-color: rgb(255 255 255 / 0.25); color: #fff; width: 100%; }
.boton-fantasma:hover { background: #fff; color: var(--noche); border-color: #fff; box-shadow: none; }
.botones { display: flex; flex-wrap: wrap; gap: 12px; }
.caja-icono { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; flex: none; border: 1px solid var(--borde); color: var(--rojo-accion); background: var(--blanco); }
.caja-icono.grande { width: 64px; height: 64px; border-radius: 18px; }
.caja-icono.grande .icono { width: 30px; height: 30px; }

/* ---------- Etiquetas ---------- */
.ceja { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rojo-accion); margin-bottom: 12px; }
.pildora {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: var(--blanco);
  box-shadow: 0 2px 10px rgb(0 0 0 / 0.06); font-size: 0.9375rem; font-weight: 700; margin-bottom: 22px;
}
.pildora .icono { color: var(--rojo-accion); width: 1.1em; height: 1.1em; }
.pastilla { display: inline-block; background: var(--tinta); color: #fff; padding: 0 0.22em 0.06em; border-radius: 0.18em; transform: rotate(-1.5deg); box-shadow: 0 8px 20px rgb(0 0 0 / 0.18); }

/* ---------- Decoración (cuadros de la marca) ---------- */
.deco { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.deco i { position: absolute; display: block; border-radius: 22%; }
.cuadro { width: 34px; height: 34px; border: 3px solid var(--rojo); transform: rotate(14deg); }
.cuadro.c2 { width: 22px; height: 22px; border-color: var(--tinta); border-width: 2.5px; transform: rotate(-12deg); }
.cuadro.c3 { width: 26px; height: 26px; border-color: rgb(250 7 38 / 0.45); transform: rotate(24deg); }
.cuadro.c4 { width: 46px; height: 46px; transform: rotate(-18deg); }
.bloque { width: 180px; height: 180px; background: rgb(0 0 0 / 0.035); filter: blur(2px); transform: rotate(-12deg); }
.bloque.b2 { width: 130px; height: 130px; transform: rotate(16deg); }
.portada .c1 { top: 2%; right: 4%; }
.portada .c4 { bottom: 3%; left: 3%; width: 30px; height: 30px; }
.portada .b1 { top: 4%; left: -40px; }
.portada .b2 { bottom: -30px; right: 30%; }

/* ---------- Portada ---------- */
.portada { position: relative; background: linear-gradient(180deg, var(--gris-fondo) 0%, #F8F8F8 100%); padding: 40px 0 48px; }
.portada > .contenedor { position: relative; z-index: 1; }
.portada-rejilla { display: grid; gap: 48px; align-items: center; }
.portada h1 { margin-bottom: 22px; }
.portada h1 .pastilla { margin-top: 0.08em; }
.portada-parrafo { font-size: 1.08rem; color: var(--tinta-suave); max-width: 34rem; margin-bottom: 28px; }
.portada-nota { display: flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 0.9375rem; color: var(--tinta-suave); }
.portada-nota .icono { color: var(--rojo-accion); }

.portada-visual { position: relative; aspect-ratio: 5 / 4; width: 100%; max-width: 560px; margin-inline: auto; }
.navegador-barra { display: flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; background: #fff; border-bottom: 1px solid var(--borde); }
.navegador-barra i { width: 7px; height: 7px; border-radius: 50%; background: #D9D9D9; flex: none; }
.navegador-barra i:first-child { background: var(--rojo); }
.navegador-barra span { margin-left: 8px; flex: 1; min-width: 0; height: 17px; border-radius: 999px; background: var(--gris-fondo); font-size: 0.68rem; line-height: 17px; padding: 0 10px; color: var(--gris-texto); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pila-marco { position: absolute; width: 74%; aspect-ratio: 16 / 11; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--sombra-alta); }
.pila-marco img { width: 100%; height: calc(100% - 28px); object-fit: cover; object-position: top; }
.pila-1 { left: 13%; top: 12%; z-index: 3; }
.pila-2 { left: 0; top: 0; z-index: 2; transform: rotate(-6deg) scale(0.9); opacity: 0.95; }
.pila-3 { right: 0; top: 4%; z-index: 1; transform: rotate(6deg) scale(0.86); opacity: 0.9; }
.telefono { width: 21%; aspect-ratio: 9 / 19; border-radius: 16px; border: 4px solid #151515; background: #151515; overflow: hidden; box-shadow: 0 14px 30px rgb(0 0 0 / 0.25); }
.telefono img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 11px; }
.telefono-portada { position: absolute; right: 4%; bottom: 0; z-index: 4; width: 23%; }

.cifras { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: 1fr; gap: 12px; }
.cifras li { background: #fff; border-radius: 16px; padding: 16px 20px; display: flex; align-items: baseline; gap: 12px; box-shadow: 0 2px 10px rgb(0 0 0 / 0.04); }
.cifras strong { font-family: var(--fuente-titulos); font-size: 1.9rem; font-weight: 900; color: var(--rojo); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.cifras strong .icono { width: 0.8em; height: 0.8em; }
.cifras span { font-size: 0.9rem; color: var(--tinta-suave); line-height: 1.35; }

/* ---------- Secciones ---------- */
.seccion { padding: 72px 0; }
.seccion-cabeza { display: grid; gap: 18px; margin-bottom: 36px; }
.seccion-cabeza > p { color: var(--tinta-suave); max-width: 30rem; }

/* ---------- Filtros ---------- */
.filtros { display: none; margin-bottom: 28px; gap: 14px; }
.js .filtros { display: grid; }
.segmentos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: var(--gris-fondo); border-radius: 999px; }
.segmentos button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 10px; border: 0; border-radius: 999px; background: transparent; color: var(--tinta-suave); font-weight: 700; font-size: 0.9rem; cursor: pointer; transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease; }
.segmentos button span, .chips button span { font-size: 0.75rem; font-weight: 700; color: var(--gris-texto); }
.segmentos button .icono { width: 1em; height: 1em; }
.segmentos button[aria-pressed="true"] { background: #fff; color: var(--tinta); box-shadow: 0 2px 8px rgb(0 0 0 / 0.08); }
.segmentos button:hover { color: var(--tinta); }
.chips { display: none; flex-wrap: wrap; gap: 8px; }
.chips button { min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--borde); background: #fff; color: var(--tinta); font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease; }
.chips button:hover { border-color: var(--tinta); transform: translateY(-1px); }
.chips button[aria-pressed="true"] { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.chips button[aria-pressed="true"] span { color: rgb(255 255 255 / 0.7); }
.selector-rubro { display: grid; gap: 6px; font-size: 0.85rem; font-weight: 700; color: var(--tinta-suave); }
.selector-rubro select { min-height: 48px; padding: 10px 44px 10px 16px; border: 1.5px solid var(--borde); border-radius: 14px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%232B2B2B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 16px center; appearance: none; color: var(--tinta); font-weight: 600; width: 100%; }
.filtros-estado { font-size: 0.9375rem; color: var(--gris-texto); }
.filtros-pie { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.selector-orden { display: inline-flex; align-items: center; gap: 10px; font-size: 0.9375rem; font-weight: 700; color: var(--tinta-suave); }
.selector-orden select { min-height: 44px; padding: 8px 40px 8px 14px; border: 1.5px solid var(--borde); border-radius: 12px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%232B2B2B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 14px center; appearance: none; color: var(--tinta); font-weight: 600; }

/* ---------- Tarjetas de trabajos ---------- */
.rejilla-trabajos { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.trabajo { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); padding: 12px; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.trabajo:hover { transform: translateY(-4px); box-shadow: var(--sombra-alta); border-color: transparent; }
.trabajo-vista { position: relative; border-radius: 14px; overflow: hidden; background: var(--gris-fondo); aspect-ratio: 16 / 11; isolation: isolate; }
.trabajo-pantalla { position: absolute; inset: 28px 0 0; overflow: hidden; background: #fff; }
.trabajo-pantalla img { width: 100%; height: auto; transform: translateY(0); transition: transform var(--duracion, 3s) cubic-bezier(0.45, 0, 0.25, 1); will-change: transform; }
.trabajo:hover .trabajo-pantalla img, .trabajo:focus-within .trabajo-pantalla img { transform: translateY(var(--recorrido, 0)); }
.sin-imagen { display: grid; place-items: center; height: 100%; color: var(--borde); }
.sin-imagen .icono { width: 48px; height: 48px; }
.trabajo-vista .telefono { position: absolute; right: 10px; bottom: 10px; z-index: 2; width: 20%; border-width: 3px; border-radius: 12px; transition: transform 0.3s ease; }
.trabajo-vista .telefono img { border-radius: 8px; }
.trabajo:hover .trabajo-vista .telefono { transform: translateY(-4px) rotate(-2deg); }
.trabajo-cuerpo { display: flex; flex-direction: column; gap: 8px; padding: 16px 8px 6px; flex: 1; }
.trabajo h3 { margin-top: 4px; }
.trabajo-enlace { text-decoration: none; color: inherit; }
.trabajo-enlace::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: var(--radio); }
.trabajo-enlace:focus-visible { outline: none; }
.trabajo:has(.trabajo-enlace:focus-visible) { outline: 3px solid var(--rojo-accion); outline-offset: 3px; }
.trabajo-meta { font-size: 0.9375rem; font-weight: 600; color: var(--gris-texto); }
.trabajo-fecha { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9375rem; font-weight: 600; color: var(--tinta-suave); }
.trabajo-fecha .icono { width: 1em; height: 1em; color: var(--rojo-accion); }
.trabajo-descripcion { font-size: 1rem; color: var(--tinta-suave); line-height: 1.5; }
.trabajo-pie { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--borde); font-size: 0.9375rem; }
.trabajo-dominio { display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: var(--gris-texto); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trabajo-dominio .icono { width: 1em; height: 1em; }
.trabajo-ir { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; color: var(--rojo-accion); white-space: nowrap; transition: gap 0.2s ease; }
.trabajo:hover .trabajo-ir { gap: 8px; }

.distintivos { display: flex; flex-wrap: wrap; gap: 6px; }
.distintivo { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; line-height: 1; white-space: nowrap; }
.distintivo .icono { width: 1.05em; height: 1.05em; }
.distintivo-wix { background: #111; color: #fff; }
.distintivo-wix .icono { width: 1.6em; }
.distintivo-codigo { background: #FFE9EC; color: #B8001A; }
.distintivo-marca { background: var(--gris-fondo); color: var(--tinta-suave); }
.distintivo-marca img { height: 16px; width: auto; }
.distintivo-nuevo { background: #FFF6D6; color: #6B4E00; }

.trabajo[hidden], .vacio[hidden], .formulario[hidden], .formulario-gracias[hidden], .formulario-error[hidden] { display: none; }
.vacio { text-align: center; padding: 48px 0; display: grid; gap: 16px; justify-items: center; color: var(--tinta-suave); }

/* ---------- Reseñas ---------- */
.resenas-inicio { background: var(--gris-claro); }
.calificacion { display: flex; align-items: center; gap: 16px; background: #fff; border-radius: var(--radio); padding: 18px 22px; box-shadow: 0 2px 12px rgb(0 0 0 / 0.05); justify-self: start; }
.calificacion > strong { font-family: var(--fuente-titulos); font-size: 3rem; font-weight: 900; line-height: 1; color: var(--tinta); }
.calificacion > div { display: grid; gap: 4px; font-size: 0.88rem; color: var(--tinta-suave); line-height: 1.35; }
.estrellas { display: inline-flex; gap: 2px; color: #D7D7D7; }
.estrellas .icono { width: 18px; height: 18px; }
.estrellas .llena, .icono.llena { color: var(--rojo); fill: currentColor; }
.rejilla-resenas { columns: 1; column-gap: 20px; }
.resena { break-inside: avoid; margin-bottom: 20px; background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); padding: 24px; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.resena:hover { transform: translateY(-3px); box-shadow: var(--sombra); }
.js .resena-extra { display: none; }
.resena-cabeza { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.resena-fuente { display: inline-flex; align-items: center; gap: 4px; color: var(--tinta); font-size: 0.75rem; font-weight: 700; }
.resena-fuente .icono { width: 30px; height: 14px; }
.resena-directa { color: var(--rojo-accion); }
.resena-directa .icono { width: 16px; height: 16px; }
.resena blockquote { margin: 0 0 18px; }
.resena blockquote p { font-size: 1rem; line-height: 1.6; color: var(--tinta); }
.resena-autor { display: flex; gap: 12px; align-items: flex-start; font-size: 0.82rem; color: var(--gris-texto); }
.resena-autor > span:last-child { display: grid; gap: 1px; min-width: 0; }
.resena-autor strong { color: var(--tinta); font-size: 0.95rem; }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--tinta); color: #fff; font-family: var(--fuente-titulos); font-weight: 900; flex: none; }
.resena:nth-child(3n + 2) .avatar { background: var(--rojo-accion); }
.resena:nth-child(3n + 3) .avatar { background: #6B6B6B; }
.resena-sitio { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; color: var(--rojo-accion); font-weight: 700; text-decoration: none; min-height: 24px; position: relative; z-index: 1; }
.resena-sitio .icono { width: 1em; height: 1em; }
.resena-sitio:hover { text-decoration: underline; }
.resenas-acciones { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 16px; }
.mas-resenas { margin-top: 12px; }
.aviso-resena { margin-top: 48px; display: grid; gap: 16px; align-items: center; justify-items: start; background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); padding: 24px; }
.aviso-resena p { color: var(--tinta-suave); }
.aviso-resena strong { color: var(--tinta); }

/* ---------- Portada chica (reseñas, formulario, 404) ---------- */
.portada-chica { padding: 48px 0 56px; }
.portada-chica .c1 { top: 18%; right: 5%; }
.portada-chica .c2 { top: 60%; right: 14%; }
.portada-chica .c4 { bottom: 14%; left: 3%; }
.portada-chica h1 { font-size: clamp(2.2rem, 6vw + 0.5rem, 3.8rem); }
.portada-chica-rejilla { display: grid; gap: 32px; align-items: end; }
.calificacion-grande { justify-self: stretch; }
.migas { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--gris-texto); margin-bottom: 18px; }
.migas a { color: var(--tinta); font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.migas a:hover { color: var(--rojo-accion); }

/* ---------- Formulario de reseña ---------- */
.formulario-rejilla { display: grid; gap: 36px; align-items: start; }
.lista-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--tinta-suave); }
.lista-check li { display: flex; gap: 10px; align-items: flex-start; }
.lista-check .icono { color: var(--rojo-accion); margin-top: 3px; }
.formulario-tarjeta { background: #fff; border-radius: 24px; padding: 24px; box-shadow: var(--sombra-alta); }
.formulario { display: grid; gap: 18px; }
.formulario-titulo { font-size: 1.5rem; }
.formulario-error { background: #FFE9EC; color: #9E0016; border-radius: 12px; padding: 12px 14px; font-size: 0.9375rem; font-weight: 600; }
.campo { display: grid; gap: 6px; }
.campo label, .calificar legend { font-weight: 700; font-size: 0.92rem; }
.campo small { font-weight: 500; color: var(--gris-texto); }
.campo input, .campo select, .campo textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--borde); border-radius: 12px; background: var(--gris-claro); color: var(--tinta); transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease; }
.campo textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--tinta); background: #fff; box-shadow: 0 0 0 4px rgb(43 43 43 / 0.08); }
.campo [aria-invalid="true"] { border-color: var(--rojo-accion); }
.campo-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.calificar { border: 0; padding: 0; margin: 0; }
.calificar-estrellas { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; margin-top: 6px; }
.calificar-estrellas input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.calificar-estrellas label { display: grid; place-items: center; width: 48px; height: 48px; cursor: pointer; color: #D7D7D7; border-radius: 12px; transition: color 0.15s ease, transform 0.15s ease; }
.calificar-estrellas label .icono { width: 34px; height: 34px; }
.calificar-estrellas input:checked ~ label, .calificar-estrellas label:hover, .calificar-estrellas label:hover ~ label { color: var(--rojo); }
.calificar-estrellas input:checked ~ label .icono, .calificar-estrellas label:hover .icono, .calificar-estrellas label:hover ~ label .icono { fill: currentColor; }
.calificar-estrellas label:hover { transform: scale(1.1); }
.calificar-estrellas input:focus-visible + label { outline: 3px solid var(--rojo-accion); outline-offset: 2px; }
.casilla { display: flex; gap: 12px; align-items: flex-start; font-size: 0.92rem; color: var(--tinta-suave); cursor: pointer; }
.casilla input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--rojo-accion); flex: none; }
.formulario-gracias { text-align: center; display: grid; gap: 14px; justify-items: center; padding: 24px 0; }
.formulario-gracias .caja-icono { color: #12804A; border-color: #CDEBDA; background: #EFFAF3; }
.formulario-solo { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.formulario-solo .formulario-tarjeta { width: 100%; max-width: 520px; }
.formulario-aviso h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); }
.formulario-aviso .caja-icono { color: var(--rojo-accion); border-color: #F5B8C1; background: #FFF1F3; }
.formulario-aviso p { color: var(--tinta-suave); max-width: 26rem; }
.formulario-aviso .boton { width: 100%; max-width: 320px; }
.boton-whatsapp-publico { background: #128C4A; border-color: #128C4A; }
.boton-whatsapp-publico:hover { background: #0B6E39; border-color: #0B6E39; box-shadow: 0 10px 24px rgb(18 140 74 / 0.25); }
.formulario-pagina { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--gris-claro); border: 1.5px solid var(--borde); font-size: 0.9375rem; color: var(--tinta-suave); }
.formulario-pagina .icono { color: var(--rojo-accion); margin-top: 3px; }
.formulario-pagina strong { color: var(--tinta); }
.formulario .boton[disabled] { opacity: 0.6; cursor: progress; transform: none; }

/* ---------- Contacto y pie ---------- */
.contacto { position: relative; background: var(--noche); color: #fff; padding: 80px 0; }
.contacto > .contenedor { position: relative; z-index: 1; }
.contacto .c1 { top: 12%; right: 8%; }
.contacto .c2 { top: 26%; right: 14%; border-color: rgb(255 255 255 / 0.5); }
.contacto .c3 { bottom: 16%; left: 6%; }
.contacto .b1 { top: -40px; right: -30px; background: rgb(255 255 255 / 0.04); }
.contacto h2 { color: #fff; margin-bottom: 16px; }
.contacto .ceja { color: #FF4D63; }
.contacto-rejilla { display: grid; gap: 40px; align-items: center; }
.contacto-texto { color: rgb(255 255 255 / 0.75); max-width: 30rem; margin-bottom: 28px; }
.contacto-lista { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.contacto-lista a { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; font-weight: 700; min-height: 48px; }
.contacto-lista small { display: block; font-weight: 500; font-size: 0.75rem; color: rgb(255 255 255 / 0.55); }
.contacto-lista .caja-icono { background: transparent; border-color: rgb(255 255 255 / 0.18); color: #FF4D63; transition: background 0.2s ease, border-color 0.2s ease; }
.contacto-lista a:hover .caja-icono { background: var(--rojo-accion); border-color: var(--rojo-accion); color: #fff; }
.contacto-tarjeta { background: var(--noche-2); border: 1px solid rgb(255 255 255 / 0.1); border-radius: 24px; padding: 28px; display: grid; gap: 16px; }
.contacto-tarjeta p { color: rgb(255 255 255 / 0.75); }
.contacto-tarjeta .contacto-tarjeta-titulo { font-family: var(--fuente-titulos); font-weight: 900; font-size: 1.8rem; color: #fff; }
.contacto-tarjeta .rojo { color: #FF4D63; }

.pie { background: var(--noche); color: rgb(255 255 255 / 0.7); padding: 0 0 36px; }
.pie-solo .pie-rejilla { border-top: 0; padding-top: 40px; }
.pie-rejilla { display: grid; gap: 24px; padding-top: 32px; border-top: 1px solid rgb(255 255 255 / 0.1); font-size: 0.88rem; }
.pie-marca { display: inline-flex; min-height: 44px; align-items: center; }
.pie-marca img { height: 32px; width: auto; }
.pie-enlaces { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.pie-enlaces a { color: #fff; text-decoration: none; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.pie-enlaces a:hover { color: #FF4D63; }
.pie-redes { display: flex; gap: 10px; }
.pie-redes a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgb(255 255 255 / 0.18); color: #fff; transition: background 0.2s ease, transform 0.2s ease; }
.pie-redes a:hover { background: var(--rojo-accion); border-color: var(--rojo-accion); transform: translateY(-2px); }
.pie-redes .icono { width: 18px; height: 18px; }
.pie-legal { display: grid; gap: 4px; font-size: 0.9375rem; }
.pie-legal .rojo { color: #FF4D63; font-weight: 800; text-decoration: none; min-height: 24px; }

@media (max-width: 899px) {
  .deco .c2, .deco .c3 { display: none; }
  .deco .c1 { top: 14px; right: 4%; width: 26px; height: 26px; }
}

/* ---------- Tableta ---------- */
@media (min-width: 640px) {
  .cifras { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cifras li { flex-direction: column; gap: 2px; }
  .rejilla-trabajos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rejilla-resenas { columns: 2; }
  .aviso-resena { grid-template-columns: auto 1fr auto; }
  .formulario-tarjeta { padding: 32px; }
}
@media (min-width: 768px) {
  .chips { display: flex; }
  .selector-rubro { display: none; }
  .segmentos { display: inline-grid; justify-self: start; }
  .segmentos button { padding-inline: 18px; }
}
/* ---------- Escritorio ---------- */
@media (min-width: 900px) {
  .portada { padding: 56px 0 64px; }
  .portada .c1 { top: 14%; right: 6%; }
  .deco .c2, .deco .c3 { display: block; }
  .portada .c2 { top: 26%; right: 18%; }
  .portada .c3 { bottom: 22%; left: 47%; }
  .portada .c4 { bottom: 10%; left: 4%; width: 46px; height: 46px; }
  .portada-rejilla { grid-template-columns: 1.05fr 1fr; }
  .seccion { padding: 100px 0; }
  .seccion-cabeza { grid-template-columns: 1fr auto; align-items: end; gap: 40px; }
  .portada-chica-rejilla { grid-template-columns: 1fr auto; }
  .calificacion-grande { justify-self: end; }
  .formulario-rejilla { grid-template-columns: 0.9fr 1fr; gap: 56px; }
  .formulario-rejilla.formulario-solo { grid-template-columns: minmax(0, 1fr); }
  .contacto-rejilla { grid-template-columns: 1fr 0.8fr; gap: 64px; }
  .pie-rejilla { grid-template-columns: auto 1fr auto; align-items: center; }
  .pie-legal { grid-column: 1 / -1; display: flex; justify-content: space-between; }
}
@media (min-width: 1100px) {
  .rejilla-trabajos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .rejilla-resenas { columns: 3; }
}

/* ---------- Aparición al bajar (solo con JS: sin JS todo se ve) ---------- */
.js [data-revelar] {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js [data-revelar].visible { opacity: 1; transform: none; }
.js .trabajo[data-revelar].visible, .js .resena[data-revelar].visible { transition: opacity 0.5s ease-out, transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; transition-delay: 0s; }
.js .trabajo[data-revelar].visible:hover { transform: translateY(-4px); }
.js .resena[data-revelar].visible:hover { transform: translateY(-3px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .js [data-revelar] { opacity: 1; transform: none; }
  .trabajo:hover .trabajo-pantalla img { transform: none; }
}
