/* ============================================================
   LAVAAUTOS 1° NIVEL — ESTILOS
   Fondo negro con detalles rojos y blancos (por defecto).
   Botón sol/luna: fondo blanco con detalles rojos y negros.
   La franja a cuadros es la bandera de largada del lavadero.
   ============================================================ */

:root,
:root[data-theme="dark"] {
  --bg: #000000;
  --surface: #141414;
  --surface-2: #202020;
  --text: #f7f7f7;
  --muted: #a9a9a9;
  --line: #2e2e2e;
  --rojo: #e3262b;
  --rojo-h: #c21d22;
  --contraste: #ffffff;
  --cuadro-a: #ffffff;
  --cuadro-b: #000000;
  --sombra: 0 18px 40px rgba(0, 0, 0, .6);
  --overlay: linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,0) 75%);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #ffffff;
  --surface: #f5f5f5;
  --surface-2: #e9e9e9;
  --text: #0d0d0d;
  --muted: #555555;
  --line: #dcdcdc;
  --rojo: #d21c21;
  --rojo-h: #ae1418;
  --contraste: #000000;
  --cuadro-a: #000000;
  --cuadro-b: #ffffff;
  --sombra: 0 16px 36px rgba(0, 0, 0, .12);
  --overlay: linear-gradient(90deg, rgba(0,0,0,.8) 0%, rgba(0,0,0,.45) 45%, rgba(0,0,0,0) 75%);
  color-scheme: light;
}

:root {
  --f-cond: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --f-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radio: 14px;
  --ancho: 1180px;
  --wa: #25d366;
  --wa-h: #1ebe5b;
  --mp: #009ee3;
  --mp-h: #0086c3;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 130px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}

img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; }

:focus-visible { outline: 3px solid var(--rojo); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--rojo); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Franja a cuadros (bandera de largada) + línea roja */
.franja {
  height: 11px;
  background:
    linear-gradient(var(--rojo), var(--rojo)) bottom / 100% 3px no-repeat,
    repeating-conic-gradient(var(--cuadro-a) 0 25%, var(--cuadro-b) 0 50%) 0 0 / 8px 8px;
}
.franja-corta { width: 128px; margin: 14px auto 18px; border-radius: 2px; }

/* ---------------- BOTONES ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .72em 1.35em;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--f-cond);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .15s;
}
.btn:active { transform: scale(.97); }
.btn-prim { background: var(--rojo); color: #fff; }
.btn-prim:hover { background: var(--rojo-h); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-h); }
.btn-mp { background: var(--mp); color: #fff; }
.btn-mp:hover { background: var(--mp-h); }
.btn-wa-sec { background: rgba(0,0,0,.35); color: #fff; border-color: rgba(255,255,255,.55); }
.btn-wa-sec:hover { background: var(--wa); border-color: var(--wa); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--text); }

/* ---------------- HEADER ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding-top: env(safe-area-inset-top, 0px);
}
.topbar-inner {
  max-width: var(--ancho); margin: 0 auto;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  padding: 10px 20px;
}
.brand { display: block; line-height: 0; }
.brand img { height: 64px; width: auto; }

.search { position: relative; max-width: 560px; width: 100%; justify-self: center; }
.search > .fa-magnifying-glass {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  color: var(--muted); pointer-events: none;
}
.search input {
  width: 100%;
  padding: 14px 18px 14px 48px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  transition: border-color .2s;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--rojo); }
.search input::-webkit-search-cancel-button { filter: grayscale(1); }

.search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radio);
  box-shadow: var(--sombra);
  max-height: min(70vh, 460px); overflow-y: auto;
  padding: 6px;
}
.sr-item {
  display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center;
  padding: 8px; border-radius: 10px; text-decoration: none; color: var(--text);
}
.sr-item:hover, .sr-item.activo { background: var(--surface-2); }
.sr-item img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.sr-item b { display: block; font-family: var(--f-cond); font-size: 1.1rem; font-weight: 600; line-height: 1.2; }
.sr-item small { color: var(--muted); font-size: .85rem; display: block; line-height: 1.3; }
.sr-item .sr-cat { color: var(--rojo); font-weight: 600; }
.sr-vacio { padding: 14px; color: var(--muted); margin: 0; }

.social { display: flex; gap: 8px; }
.soc {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--line); background: transparent; color: var(--text);
  font-size: 1.1rem; text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.soc-fb:hover { background: #1877f2; border-color: #1877f2; color: #fff; }
.soc-ig:hover { background: #d62976; border-color: #d62976; color: #fff; }
.soc-wa:hover { background: #25d366; border-color: #25d366; color: #fff; }
.theme-toggle:hover { border-color: var(--text); }
.theme-toggle .icon-luna { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sol { display: none; }
:root[data-theme="light"] .theme-toggle .icon-luna { display: inline; }

/* ---------------- SLIDER DE OFERTAS ---------------- */
.ofertas {
  position: relative;
  max-width: var(--ancho); margin: 24px auto 0; padding: 0 20px;
}
.of-track {
  position: relative; border-radius: 20px; overflow: hidden;
  aspect-ratio: 21 / 9; background: var(--surface);
}
.of-slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .6s ease, visibility .6s;
}
.of-slide.activa { opacity: 1; visibility: visible; }
.of-img { width: 100%; height: 100%; object-fit: cover; }
.of-slide::after { content: ''; position: absolute; inset: 0; background: var(--overlay); pointer-events: none; }
.of-texto {
  position: absolute; z-index: 2; left: 0; top: 0; bottom: 0;
  width: min(560px, 62%);
  display: flex; flex-direction: column; justify-content: center;
  padding: 32px 44px; color: #fff;
}
.of-texto h2 {
  font-family: var(--f-cond); font-weight: 700;
  font-size: clamp(1.7rem, 3.6vw, 3rem); line-height: 1.02; margin: 0 0 .3em;
  text-wrap: balance;
}
.of-texto p { margin: 0 0 1.1em; color: rgba(255,255,255,.88); max-width: 42ch; }
.of-pie { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.of-precio {
  background: var(--rojo); color: #fff;
  font-family: var(--f-cond); font-weight: 700; font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  line-height: 1; padding: .3em .55em; border-radius: 10px;
  transform: rotate(-2deg);
}
.of-flecha {
  position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: rgba(0,0,0,.5); color: #fff; cursor: pointer;
  display: grid; place-items: center;
}
.of-flecha:hover { background: rgba(0,0,0,.75); }
.of-prev { left: 34px; }
.of-next { right: 34px; }
.of-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.of-dots button {
  width: 10px; height: 10px; border-radius: 999px; border: 0; padding: 0;
  background: var(--line); cursor: pointer; transition: width .3s, background-color .3s;
}
.of-dots button[aria-selected="true"] { width: 28px; background: var(--rojo); }
.of-texto h2 { font-style: italic; }

/* Bienvenida (cuando no hay ofertas cargadas) */
.bienvenida { max-width: var(--ancho); margin: 24px auto 0; padding: 0 20px; }
.bv-inner {
  border-radius: 20px; padding: clamp(36px, 6vw, 72px) clamp(24px, 5vw, 64px);
  background:
    radial-gradient(circle at 85% 30%, rgba(227, 38, 43, .28), transparent 48%),
    var(--surface);
  border: 1px solid var(--line);
}
.bv-script { font-family: var(--f-cond); font-style: italic; font-weight: 700; font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 0; line-height: 1; color: var(--rojo); }
.bienvenida h1 {
  font-family: var(--f-cond); font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.02; margin: .15em 0 .35em; max-width: 18ch;
}
.bv-bajada { color: var(--muted); max-width: 46ch; margin: 0 0 1.4em; }

/* ---------------- SECCIONES ---------------- */
.home-carta, .galeria, .empresas { max-width: var(--ancho); margin: 0 auto; padding: 56px 20px 24px; }

.sec-head { text-align: center; max-width: 700px; margin: 0 auto 36px; }
/* Títulos: condensada itálica, como el "NIVEL" del logo */
.script {
  font-family: var(--f-cond); font-style: italic; font-weight: 800;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.02; margin: 0 0 .3em;
  letter-spacing: -.01em; text-wrap: balance;
}
.sec-head .script::after {
  content: ''; display: block; width: 72px; height: 4px; margin: .35em auto 0;
  background: var(--rojo); transform: skewX(-20deg);
}
.sec-head p { color: var(--muted); margin: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

/* ---------------- TARJETAS ---------------- */
.card {
  background: var(--surface);
  border-radius: var(--radio);
  overflow: hidden;
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
}
.card-img {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 3 / 2; background: var(--surface-2);
  cursor: pointer; border: 0; padding: 0; width: 100%;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; transition: transform .5s ease; }
.card-img:hover img, .card-img:focus-visible img { transform: scale(1.05); }

.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body h2, .card-body h3 {
  font-family: var(--f-cond); font-weight: 700; font-size: 1.55rem; line-height: 1.1; margin: 0 0 .35em;
}
.card-body p { color: var(--muted); margin: 0 0 1.2em; flex: 1; }


/* Galerías */
.gal-head { text-align: center; max-width: 700px; margin: 0 auto 40px; }
.gal-head h1 {
  font-family: var(--f-cond); font-style: italic; font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1.02; margin: 0;
}
.gal-head p { color: var(--muted); margin: 0 0 22px; }
.gal-cta, .emp-cta { text-align: center; margin: 40px 0 0; }

/* Franja de llamada a la acción */
.franja-cta { max-width: var(--ancho); margin: 40px auto 64px; padding: 0 20px; }
.fl-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px;
  padding: 36px 40px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 6px solid var(--rojo);
}
.fl-inner .script { font-size: clamp(1.9rem, 3.8vw, 2.7rem); }
.fl-inner p { color: var(--muted); margin: 0; max-width: 52ch; }
.fl-acciones { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------------- FOOTER ---------------- */
.site-footer { background: var(--surface); margin-top: 40px; }
.footer-grid {
  max-width: var(--ancho); margin: 0 auto; padding: 48px 20px 32px;
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px;
}
.f-logo { display: inline-block; background: #fff; border-radius: 16px; padding: 10px 14px; margin-bottom: 16px; }
.f-logo img { width: 190px; }
:root[data-theme="light"] .f-logo, :root[data-theme="light"] .bv-logo { border: 1px solid var(--line); }
.f-servicios { list-style: none; margin: 0 0 20px; padding: 0; }
.f-servicios li { margin-bottom: 8px; padding-left: 16px; position: relative; }
.f-servicios li::before { content: ''; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: var(--rojo); transform: skewX(-20deg); }
.f-servicios a { text-decoration: none; color: var(--text); }
.f-servicios a:hover { color: var(--rojo); }
.f-brand p { color: var(--muted); margin: 0 0 18px; max-width: 36ch; }
.f-social { display: flex; gap: 10px; }
.f-social a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--line); text-decoration: none; color: var(--text);
}
.f-social a:hover { border-color: var(--rojo); color: var(--rojo); }
.f-col h2 { font-family: var(--f-cond); font-weight: 700; font-size: 1.4rem; margin: 0 0 16px; }
.f-list { list-style: none; margin: 0; padding: 0; }
.f-list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: baseline; margin-bottom: 12px; }
.f-list i { color: var(--rojo); }
.f-list a { text-decoration: none; overflow-wrap: anywhere; }
.f-list a:hover { text-decoration: underline; }
.estado {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-cond); font-weight: 600; font-size: 1.05rem;
  padding: 4px 14px; border-radius: 999px; margin: 0 0 14px;
}
.estado::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.estado.abierto { background: color-mix(in srgb, var(--wa) 18%, transparent); color: var(--wa); }
.estado.cerrado { background: color-mix(in srgb, var(--rojo) 16%, transparent); color: var(--rojo); }
.f-horarios { margin: 0 0 20px; }
.f-horarios div { margin-bottom: 10px; }
.f-horarios dt { font-weight: 600; }
.f-horarios dd { margin: 0; color: var(--muted); }
.f-app { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.f-app .btn { font-size: .98rem; padding: .6em 1.1em; }
.f-app-ok { color: var(--rojo); margin: 0; font-size: .95rem; }
.f-map { line-height: 0; }
.f-map iframe { width: 100%; height: 320px; border: 0; filter: grayscale(.25); }
:root[data-theme="dark"] .f-map iframe { filter: grayscale(.4) brightness(.85); }
.f-bottom {
  max-width: var(--ancho); margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  padding: 18px 20px calc(18px + env(safe-area-inset-bottom, 0px));
  font-size: .9rem; color: var(--muted);
}
.f-bottom a { color: var(--text); }

/* ---------------- FLOTANTES ---------------- */
.wa-float {
  position: fixed; z-index: 60;
  right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff; font-size: 2rem;
  display: grid; place-items: center; text-decoration: none;
  box-shadow: 0 10px 26px rgba(0,0,0,.4);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); }

.aviso-push {
  position: fixed; z-index: 70;
  left: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: min(380px, calc(100% - 110px));
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-top: 4px solid var(--rojo);
  border-radius: var(--radio); box-shadow: var(--sombra);
  padding: 18px 18px 16px;
}
.aviso-push[hidden] { display: none; }
.aviso-ico { color: var(--rojo); font-size: 1.3rem; }
.aviso-push p { margin: 8px 0 14px; }
.aviso-acciones { display: flex; flex-wrap: wrap; gap: 8px; }
.aviso-acciones .btn { font-size: .98rem; padding: .55em 1.1em; }

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.92);
  display: grid; place-items: center; padding: 20px;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1000px, 100%); }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: 12px; }
.lightbox figcaption { color: #fff; text-align: center; margin-top: 12px; font-family: var(--f-cond); font-size: 1.4rem; font-weight: 600; }
.lb-cerrar {
  position: absolute; top: calc(16px + env(safe-area-inset-top, 0px)); right: 16px;
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.14); color: #fff; font-size: 1.4rem; cursor: pointer;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
  .of-track { aspect-ratio: 16 / 9; }
  .of-texto { width: 75%; padding: 24px 28px; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 170px; }
  .topbar-inner { grid-template-columns: auto 1fr; gap: 10px 12px; padding: 8px 14px 12px; }
  .brand img { height: 60px; }
  .social { justify-self: end; gap: 6px; }
  .soc { width: 40px; height: 40px; font-size: 1rem; }
  .search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .search input { padding: 12px 16px 12px 44px; }

  .ofertas { padding: 0 12px; margin-top: 14px; }
  .of-track { aspect-ratio: auto; height: min(118vw, 520px); border-radius: 16px; }
  .of-slide::after { background: linear-gradient(0deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,0) 72%); }
  .of-texto { top: auto; width: 100%; padding: 20px 20px 24px; }
  .of-flecha { display: none; }

  .grid-3 { grid-template-columns: 1fr; gap: 20px; }
  .home-carta, .galeria, .empresas { padding: 40px 14px 16px; }
  .fl-inner { padding: 28px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 36px; }
  .f-bottom { flex-direction: column; padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
  .wa-float { width: 56px; height: 56px; font-size: 1.8rem; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .aviso-push { left: 12px; right: 12px; width: auto; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}

/* ============================================================
   HEADER: BUSCADOR + BOTÓN INICIO
   ============================================================ */
.centro-header {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 720px;
  justify-self: center;
}
.centro-header .search { flex: 1; max-width: none; min-width: 0; }

.btn-inicio {
  position: relative;
  overflow: hidden;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: .5em;
  height: 50px;
  padding: 0 1.2em;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-family: var(--f-cond);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .03em;
  text-decoration: none;
  transition: background-color .25s, border-color .25s, color .25s, transform .2s;
}
.btn-inicio i { color: var(--rojo); transition: color .25s, transform .3s; }
.btn-inicio::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--rojo);
  transform: scaleX(0);
  transition: transform .35s ease;
}
.btn-inicio:hover, .btn-inicio[aria-current="page"] { border-color: var(--rojo); transform: translateY(-1px); }
.btn-inicio[aria-current="page"]::after { transform: scaleX(1); }
.btn-inicio:hover::after { transform: scaleX(1); }
.btn-inicio:hover i { transform: translateY(-2px); }
.btn-inicio:active { transform: scale(.96); }

/* Celu: buscador + Inicio bajan juntos a la segunda fila */
@media (max-width: 720px) {
  .centro-header { grid-column: 1 / -1; grid-row: 2; max-width: none; gap: 8px; }
  .btn-inicio { height: 46px; padding: 0 1em; }
}

/* Celus: solo los íconos de Inicio y Galería */
@media (max-width: 520px) {
  .btn-inicio { width: 46px; padding: 0; justify-content: center; }
  .btn-inicio span { display: none; }
}

/* Ventana con foto grande + descripción completa */
.lightbox { background: rgba(0,0,0,.88); }
.lb-caja {
  position: relative; width: min(900px, 100%); max-height: calc(100vh - 40px); overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
}
.lb-caja img { width: 100%; max-height: 60vh; object-fit: cover; margin: 0; border-radius: 18px 18px 0 0; }
.lb-texto { padding: 22px 26px 28px; }
.lb-texto h2 { font-family: var(--f-cond); font-weight: 700; font-size: 1.9rem; line-height: 1.1; margin: 0 0 .4em; }
.lb-texto p { margin: 0; color: var(--muted); white-space: pre-line; max-width: 70ch; }
.lb-cerrar { top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; background: rgba(0,0,0,.6); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
/* Logo grande en la bienvenida */
.bv-inner { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 40px; }
.bv-logo { width: 100%; max-width: 440px; justify-self: center; background: #fff; border-radius: 18px; padding: 18px; box-shadow: var(--sombra); }
@media (max-width: 720px) {
  .bv-inner { grid-template-columns: 1fr; gap: 24px; }
  .bv-logo { order: -1; max-width: 320px; }
}


/* ============================================================
   1° NIVEL: BOTÓN WHATSAPP DE LAS TARJETAS
   ============================================================ */
.card-pedir {
  position: relative; isolation: isolate; overflow: hidden;
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: .55em;
  height: 46px; padding: 0 1.25em 0 .7em; border-radius: 999px;
  font-family: var(--f-cond); font-weight: 700; font-size: 1.04rem; letter-spacing: .03em;
  color: #fff; text-decoration: none; white-space: nowrap;
  background: linear-gradient(135deg, #2bd46f 0%, #1faa55 55%, #16833f 100%);
  box-shadow: 0 6px 18px rgba(31, 170, 85, .32), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .2s ease, box-shadow .3s ease;
}
.card-pedir i {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: #1faa55; font-size: 1.1rem; transition: transform .35s ease;
}
.card-pedir::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-20deg); transition: left .6s ease;
}
.card-pedir:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(31, 170, 85, .45); }
.card-pedir:hover::after { left: 120%; }
.card-pedir:hover i { transform: rotate(-12deg) scale(1.08); }
.card-pedir:active { transform: scale(.96); }
.card-servicio:target { border-color: var(--rojo); box-shadow: 0 0 0 3px var(--rojo); }

/* ============================================================
   EMPRESAS QUE CONFÍAN EN NOSOTROS
   ============================================================ */
.emp-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.emp-card { margin: 0; flex: 0 1 calc(25% - 14px); min-width: 200px; }
.emp-card button {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  aspect-ratio: 4 / 3; border-radius: var(--radio); overflow: hidden; background: var(--surface-2);
  border-bottom: 4px solid var(--rojo);
}
.emp-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.emp-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; text-align: left;
  padding: 36px 14px 12px; color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.88) 100%);
}
.emp-card figcaption b { display: block; font-family: var(--f-cond); font-style: italic; font-weight: 800; font-size: 1.35rem; line-height: 1.05; }
.emp-card figcaption span { display: block; font-size: .85rem; color: rgba(255,255,255,.82); }
.emp-card button:hover img, .emp-card button:focus-visible img { transform: scale(1.06); }

/* ============================================================
   GALERÍA DE TRABAJOS: fotos completas en columnas
   ============================================================ */
.fotos { columns: 3 280px; column-gap: 18px; }
.foto { margin: 0 0 18px; break-inside: avoid; }
.foto button {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  border-radius: var(--radio); overflow: hidden; background: var(--surface-2);
  position: relative;
}
.foto button::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: var(--rojo); transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.foto img { width: 100%; height: auto; transition: transform .5s ease; }
.foto button:hover img, .foto button:focus-visible img { transform: scale(1.03); }
.foto button:hover::after, .foto button:focus-visible::after { transform: scaleX(1); }

/* Ventana de fotos: se ve la foto entera (tienen frases grabadas abajo) */
.lb-caja img { object-fit: contain; background: #000; max-height: 70vh; }
.lb-texto h2 { font-style: italic; }
.lb-texto p[hidden] { display: none; }

@media (max-width: 720px) {
  .emp-grid { gap: 12px; }
  .emp-card { flex-basis: calc(50% - 6px); min-width: 0; }
  .emp-card figcaption { padding: 28px 10px 10px; }
  .emp-card figcaption b { font-size: 1.1rem; }
  .emp-card figcaption span { display: none; }
  .fotos { columns: 2 150px; column-gap: 12px; }
  .foto { margin-bottom: 12px; }
  .of-pie .btn { font-size: 1rem; padding: .65em 1.1em; }
}
