/* =========================================================
   Multiservicios Levi - Hoja de estilos
   ========================================================= */
:root {
  --verde-oscuro: #0e5a36;
  --verde-noche: #083822;
  --verde-medio: #1b7a4b;
  --verde-claro: #e9f4ee;
  --verde-suave: #d4ebdd;
  --acento: #f2b705;
  --whatsapp: #25d366;
  --texto: #1d2a23;
  --gris: #5b6b62;
  --radio: 14px;
  --sombra: 0 10px 30px rgba(8, 56, 34, .12);
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: 'Open Sans', system-ui, sans-serif; color: var(--texto); background: #fff; }
h1, h2, h3, h4, .marca { font-family: 'Montserrat', sans-serif; }

/* ---------- Botones ---------- */
.btn { border-radius: 50px; font-weight: 600; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; border: none; }
.btn-whatsapp:hover { background: #1ebe5a; color: #fff; }
.btn-claro { background: var(--acento); color: var(--verde-noche); border: none; }
.btn-verde { background: var(--verde-oscuro); color: #fff; border: none; }
.btn-verde:hover { background: var(--verde-medio); color: #fff; }
.btn-claro:hover { background: #ffc61a; color: var(--verde-noche); }

/* ---------- Encabezado ---------- */
.barra { background: var(--verde-oscuro); padding: .8rem 0; transition: padding .25s, box-shadow .25s; }
.barra.compacta { padding: .45rem 0; box-shadow: 0 4px 18px rgba(0,0,0,.25); }
.barra .logo { height: 56px; width: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); transition: height .25s; }
.barra.compacta .logo { height: 46px; }
.barra .marca { color: #fff; font-size: 1.1rem; font-weight: 600; }
.barra .marca strong { color: var(--acento); }
.barra .nav-link { color: rgba(255,255,255,.85); font-weight: 500; }
.barra .nav-link:hover, .barra .nav-link.active { color: #fff; }

/* ---------- Portada ---------- */
.portada {
  background: radial-gradient(circle at 85% 20%, #1b7a4b 0%, transparent 55%), linear-gradient(135deg, var(--verde-noche), var(--verde-oscuro));
  padding: 130px 0 70px; color: #fff; overflow: hidden;
}
.portada-texto h1 { color: #fff; font-weight: 800; font-size: clamp(1.9rem, 4vw, 3.1rem); line-height: 1.15; margin: 1rem 0; }
.portada-texto .lead { color: rgba(255,255,255,.88); margin-bottom: 1.8rem; }
.etiqueta { display: inline-block; background: rgba(255,255,255,.12); color: #fff; padding: .4rem 1rem; border-radius: 50px; font-size: .9rem; }
.etiqueta i { color: var(--acento); }
.portada-datos { list-style: none; padding: 0; margin: 1.8rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-weight: 600; font-size: .95rem; }
.portada-datos i { color: var(--acento); margin-right: .3rem; }
.marco-carrusel { position: relative; max-width: 470px; margin: 0 auto; }
.marco-carrusel::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 3px solid var(--acento); border-radius: 22px; z-index: 0;
}
.marco-carrusel .carousel { border-radius: 22px; overflow: hidden; box-shadow: 0 25px 60px rgba(0,0,0,.4); z-index: 1; }
.marco-carrusel .carousel-item img { aspect-ratio: 4 / 5; object-fit: cover; }
.marco-carrusel .carousel-indicators [data-bs-target] { width: 9px; height: 9px; border-radius: 50%; }
.marco-carrusel .carousel-control-prev, .marco-carrusel .carousel-control-next { width: 14%; }

/* ---------- Ventajas ---------- */
.ventajas { background: var(--verde-noche); padding: 1.4rem 0; }
.ventaja { display: flex; align-items: center; justify-content: center; gap: .6rem; color: #fff; font-weight: 600; font-size: .95rem; }
.ventaja i { color: var(--acento); font-size: 1.5rem; }

/* ---------- Secciones ---------- */
.seccion { padding: 5rem 0; }
.bloque-claro { background: var(--verde-claro); }
.bloque-oscuro { background: var(--verde-oscuro); color: #fff; }
.titulo-seccion { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.titulo-seccion h2 { font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--verde-noche); }
.titulo-seccion p { color: var(--gris); }
.titulo-seccion.claro h2 { color: #fff; }
.titulo-seccion.claro p { color: rgba(255,255,255,.8); }
.subtitulo { display: inline-block; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--verde-medio); margin-bottom: .4rem; }
.claro .subtitulo { color: var(--acento); }

/* ---------- Servicios ---------- */
.servicio {
  background: #fff; border-radius: var(--radio); padding: 2rem 1.6rem; height: 100%;
  box-shadow: var(--sombra); border-top: 4px solid var(--verde-oscuro);
  display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s;
}
.servicio:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(8,56,34,.18); }
.servicio-icono {
  width: 62px; height: 62px; border-radius: 16px; display: grid; place-items: center;
  background: var(--verde-oscuro); color: var(--acento); font-size: 1.8rem; margin-bottom: 1.2rem;
}
.servicio h3 { font-size: 1.2rem; font-weight: 700; color: var(--verde-noche); }
.servicio p { color: var(--gris); font-size: .95rem; }
.servicio ul { list-style: none; padding: 0; margin: 0 0 1.2rem; font-size: .92rem; }
.servicio li i { color: var(--verde-medio); margin-right: .3rem; }
.enlace-cotizar { margin-top: auto; font-weight: 700; color: var(--verde-oscuro); text-decoration: none; }
.enlace-cotizar i { transition: margin .2s; }
.enlace-cotizar:hover i { margin-left: .35rem; }

/* ---------- Pasos ---------- */
.paso { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); border-radius: var(--radio); padding: 2rem; height: 100%; }
.paso .numero { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--acento); color: var(--verde-noche); font-weight: 800; font-family: 'Montserrat'; margin-bottom: 1rem; }
.paso h3 { font-size: 1.2rem; font-weight: 700; }
.paso p { color: rgba(255,255,255,.82); margin: 0; }

/* ---------- Galería ---------- */
.filtros { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 2rem; }
.filtro {
  border: 2px solid var(--verde-oscuro); background: transparent; color: var(--verde-oscuro);
  padding: .45rem 1.1rem; border-radius: 50px; font-weight: 600; font-size: .92rem; transition: all .2s;
}
.filtro:hover { background: var(--verde-suave); }
.filtro.activo { background: var(--verde-oscuro); color: #fff; }
.item-galeria.oculto { display: none; }
.foto {
  position: relative; display: block; width: 100%; padding: 0; border: none; background: none;
  border-radius: var(--radio); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--sombra); cursor: zoom-in;
}
.foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; background: var(--verde-suave); }
.foto:hover img { transform: scale(1.07); }
.foto-capa {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: .4rem;
  padding: .9rem; color: #fff; text-align: left; background: linear-gradient(transparent 40%, rgba(8,56,34,.9));
  opacity: 0; transition: opacity .3s;
}
.foto:hover .foto-capa, .foto:focus-visible .foto-capa { opacity: 1; }
.foto-cat { font-size: .8rem; font-weight: 600; background: var(--acento); color: var(--verde-noche); padding: .2rem .6rem; border-radius: 50px; }
.foto-titulo { font-weight: 600; font-size: .9rem; line-height: 1.25; }
.item-galeria { animation: aparecer .35s ease; }
@keyframes aparecer { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (hover: none) { .foto-capa { opacity: 1; } }

/* ---------- Visor (lightbox) ---------- */
.visor .modal-content { background: transparent; border: none; align-items: center; }
.visor img { max-width: 100%; max-height: 82vh; border-radius: 10px; object-fit: contain; }
.visor-cerrar, .visor-nav {
  position: absolute; border: none; color: #fff; background: rgba(0,0,0,.45);
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; z-index: 2;
}
.visor-cerrar { top: -56px; right: 0; }
.visor-nav { top: 50%; transform: translateY(-50%); }
.visor-nav.anterior { left: 10px; }
.visor-nav.siguiente { right: 10px; }
.visor-cerrar:hover, .visor-nav:hover { background: var(--verde-oscuro); }
.visor-pie { display: flex; justify-content: space-between; width: 100%; color: #fff; margin-top: .7rem; font-weight: 600; }
.modal-backdrop.show { opacity: .9; }

/* ---------- Llamada a la acción ---------- */
.cta { background: linear-gradient(120deg, var(--verde-noche), var(--verde-medio)); color: #fff; padding: 4rem 0; }
.cta h2 { font-weight: 800; }
.cta p { color: rgba(255,255,255,.85); margin-bottom: 1.6rem; }

/* ---------- Formulario y contacto ---------- */
.tarjeta-form, .tarjeta-contacto { border-radius: var(--radio); padding: 2.4rem; height: 100%; box-shadow: var(--sombra); }
.tarjeta-form { background: #fff; }
.tarjeta-form h2 { font-weight: 800; color: var(--verde-noche); }
.form-control, .form-select { border-radius: 10px; padding: .7rem .9rem; border-color: #c9d8cf; }
.form-control:focus, .form-select:focus { border-color: var(--verde-medio); box-shadow: 0 0 0 .2rem rgba(27,122,75,.2); }
.form-label { font-weight: 600; font-size: .92rem; }
.tarjeta-contacto { background: var(--verde-oscuro); color: #fff; }
.tarjeta-contacto h3 { font-weight: 700; margin-bottom: 1.5rem; }
.lista-contacto { list-style: none; padding: 0; margin: 0; }
.lista-contacto li { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.lista-contacto li:last-child { border-bottom: none; }
.lista-contacto i { font-size: 1.3rem; color: var(--acento); width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.1); display: grid; place-items: center; flex-shrink: 0; }
.lista-contacto small { display: block; color: rgba(255,255,255,.7); font-size: .8rem; }
.lista-contacto a, .lista-contacto span { color: #fff; font-weight: 600; text-decoration: none; word-break: break-word; }
.lista-contacto a:hover { color: var(--acento); }

/* ---------- Preguntas ---------- */
.preguntas { max-width: 820px; }
.preguntas .accordion-item { border: none; border-radius: 12px !important; overflow: hidden; margin-bottom: .8rem; }
.preguntas .accordion-button { font-weight: 600; color: var(--verde-noche); }
.preguntas .accordion-button:not(.collapsed) { background: var(--verde-suave); color: var(--verde-noche); box-shadow: none; }
.preguntas .accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(242,183,5,.4); }

/* ---------- Pie ---------- */
.pie { background: var(--verde-noche); color: rgba(255,255,255,.8); padding: 3.5rem 0 1.5rem; }
.pie h4 { color: #fff; font-size: 1.05rem; font-weight: 700; margin-bottom: 1rem; }
.pie a { color: rgba(255,255,255,.8); text-decoration: none; line-height: 2; }
.pie a:hover { color: var(--acento); }
.pie hr { border-color: rgba(255,255,255,.2); margin: 2rem 0 1.2rem; }

/* ---------- WhatsApp flotante ---------- */
.whatsapp-flotante {
  position: fixed; right: 20px; bottom: 20px; z-index: 1030; width: 60px; height: 60px; border-radius: 50%;
  background: var(--whatsapp); color: #fff; display: grid; place-items: center; font-size: 1.9rem;
  box-shadow: 0 8px 22px rgba(0,0,0,.25); animation: pulso 2.4s infinite;
}
.whatsapp-flotante:hover { color: #fff; transform: scale(1.07); }
@keyframes pulso {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); }
  70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- Celular ---------- */
@media (max-width: 991px) {
  .barra .navbar-collapse { padding: 1rem 0; }
  .portada { padding: 110px 0 60px; }
  .marco-carrusel { max-width: 400px; }
}
@media (max-width: 575px) {
  .seccion { padding: 3.5rem 0; }
  .marco-carrusel::before { inset: 14px -12px -14px 12px; }
  .tarjeta-form, .tarjeta-contacto { padding: 1.6rem; }
  .ventaja { flex-direction: column; font-size: .85rem; text-align: center; }
  .visor-cerrar { top: -52px; right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .whatsapp-flotante { animation: none; }
}
