/* ==========================================================================
   Portal público de cada inmobiliaria (MiCRM)
   Tema por variables: --p (color principal), --a (acento), --f-titulos.
   Ligero a propósito: ~15 KB, sin frameworks, fuentes locales, iconos en sprite.
   ========================================================================== */
:root {
  --p: #1f3bff;
  --p-os: color-mix(in srgb, var(--p) 78%, #000);
  --p-su: color-mix(in srgb, var(--p) 9%, #fff);
  --sobre-p: #fff;
  --a: #a6ff3d;
  --tinta: #10131f;
  --gris: #5d6275;
  --gris-2: #686d82;
  --linea: #e7e8ef;
  --fondo: #f6f7fa;
  --f: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-titulos: "Inter Tight", var(--f);
  --r: 16px;
  --sombra: 0 18px 44px -24px rgba(16, 19, 31, 0.35);
  --ancho: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--f); font-size: 16px; line-height: 1.6; color: var(--tinta); background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-titulos); line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
p, ul, ol, figure { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--p) 45%, transparent); outline-offset: 2px; }
.i { width: 20px; height: 20px; fill: currentColor; flex: none; }
.i-sm { width: 16px; height: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.envoltura { width: min(var(--ancho), 100% - 40px); margin-inline: auto; }
.salto { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--tinta); color: #fff; padding: 8px 12px; border-radius: 8px; }
.salto:focus { left: 8px; }
.tenue { color: var(--gris); }
.chico { font-size: 14px; }

/* Botones */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1.5px solid transparent; background: var(--p); color: var(--sobre-p); font-weight: 650; font-size: 15px; cursor: pointer; transition: transform 0.12s, background 0.15s, border-color 0.15s; white-space: nowrap; }
.boton:hover { background: var(--p-os); }
.boton:active { transform: translateY(1px); }
.boton-acento { background: var(--a); color: #10131f; }
.boton-acento:hover { background: color-mix(in srgb, var(--a) 85%, #000); }
.boton-borde { background: transparent; border-color: currentColor; color: inherit; }
.boton-borde:hover { background: rgba(127, 127, 127, 0.08); }
.boton-wa { background: #1fb257; color: #fff; }
.boton-wa:hover { background: #199a4b; }
.boton-wa .i { fill: currentColor; }
.boton-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.boton-bloque { width: 100%; }

/* Encabezado */
.cabecera { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--linea); }
.cabecera .envoltura { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.marca { display: flex; align-items: center; gap: 10px; font-family: var(--f-titulos); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; min-width: 0; }
.marca img { max-height: 42px; width: auto; }
.marca-inicial { width: 36px; height: 36px; border-radius: 10px; background: var(--p); color: var(--sobre-p); display: grid; place-items: center; font-size: 17px; flex: none; }
.menu-principal { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.menu-principal a { padding: 8px 12px; border-radius: 999px; font-weight: 550; font-size: 15px; color: #2b2f40; }
.menu-principal a:hover, .menu-principal a[aria-current] { background: var(--p-su); color: var(--p); }
.menu-boton { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: var(--fondo); border-radius: 12px; cursor: pointer; }

/* Portada */
.portada { position: relative; color: #fff; background: var(--p); overflow: hidden; }
.portada-foto { position: absolute; inset: 0; }
.portada-foto img { width: 100%; height: 100%; object-fit: cover; }
.portada-foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 12, 24, 0.35), rgba(10, 12, 24, 0.62)); }
.portada .envoltura { position: relative; padding: 88px 0 72px; display: grid; gap: 18px; justify-items: center; text-align: center; }
.portada h1 { font-size: clamp(34px, 5.4vw, 62px); font-weight: 800; max-width: 900px; text-wrap: balance; }
.portada p { font-size: clamp(16px, 1.6vw, 19px); opacity: 0.9; max-width: 640px; }
.portada-sencilla .envoltura { padding: 48px 0 40px; }
.buscador { display: grid; grid-template-columns: 1fr 1fr 1.4fr auto; gap: 6px; width: min(860px, 100%); background: #fff; color: var(--tinta); padding: 8px; border-radius: 22px; box-shadow: var(--sombra); margin-top: 8px; text-align: left; }
.buscador label { display: grid; gap: 1px; padding: 6px 12px; border-radius: 14px; }
.buscador label:hover { background: var(--fondo); }
.buscador span { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gris-2); }
.buscador select, .buscador input { border: 0; background: transparent; font-size: 15px; font-weight: 550; outline: none; padding: 2px 0; width: 100%; appearance: none; }
.buscador .boton { min-height: 52px; border-radius: 16px; padding: 0 22px; }

/* Secciones */
.seccion { padding: 64px 0; }
.seccion-gris { background: var(--fondo); }
.seccion-cabeza { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.seccion-cabeza h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; }
.seccion-cabeza p { color: var(--gris); margin-top: 6px; }
.enlace { color: var(--p); font-weight: 650; display: inline-flex; align-items: center; gap: 6px; }
.enlace:hover { text-decoration: underline; }

/* Rejilla de tarjetas */
.rejilla { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.tarjeta { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--linea); border-radius: var(--r); overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; }
.tarjeta:hover { box-shadow: var(--sombra); transform: translateY(-2px); }
.tarjeta-foto { position: relative; aspect-ratio: 4 / 3; background: var(--fondo); overflow: hidden; }
.tarjeta-foto img { width: 100%; height: 100%; object-fit: cover; }
.etiquetas { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.etiqueta { background: rgba(255, 255, 255, 0.95); color: var(--tinta); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.etiqueta-p { background: var(--p); color: var(--sobre-p); }
.etiqueta-a { background: var(--a); color: #10131f; }
.tarjeta-cuerpo { padding: 16px 18px 18px; display: grid; gap: 6px; flex: 1; }
.precio { font-family: var(--f-titulos); font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.precio small { font-size: 13px; font-weight: 600; color: var(--gris); }
.tarjeta h3 { font-size: 17px; font-weight: 650; line-height: 1.3; }
.tarjeta h3 a::after { content: ""; position: absolute; inset: 0; }
.ubicacion { color: var(--gris); font-size: 14px; display: flex; gap: 6px; align-items: center; }
.datos { display: flex; gap: 14px; flex-wrap: wrap; color: #3b4054; font-size: 14px; margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--linea); }
.datos span { display: inline-flex; align-items: center; gap: 5px; }
.datos .i { width: 17px; height: 17px; fill: var(--gris-2); }

/* Tipos */
.tipos { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.tipo { padding: 20px; border-radius: var(--r); background: #fff; border: 1px solid var(--linea); display: grid; gap: 4px; }
.tipo:hover { border-color: var(--p); background: var(--p-su); }
.tipo b { font-family: var(--f-titulos); font-size: 18px; }
.tipo span { color: var(--gris); font-size: 14px; }
.tipo-icono { width: 44px; height: 44px; padding: 10px; margin-bottom: 8px; border-radius: 13px; background: var(--p-su); fill: var(--p); transition: background 0.15s, fill 0.15s; }
.tipo:hover .tipo-icono { background: var(--p); fill: var(--sobre-p); }

/* Llamado */
.llamado { border-radius: 28px; background: var(--p); color: var(--sobre-p); padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; }
.llamado h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; }
.llamado p { opacity: 0.88; margin-top: 10px; }
.llamado .acciones { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

/* Catálogo */
.catalogo { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; }
.filtros { position: sticky; top: 88px; display: grid; gap: 14px; background: #fff; border: 1px solid var(--linea); border-radius: var(--r); padding: 18px; }
.filtros h2 { font-size: 17px; }
.campo { display: grid; gap: 5px; }
.campo label { font-size: 13px; font-weight: 650; color: #353a4d; }
.campo input, .campo select, .campo textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #d6d8e2; border-radius: 12px; background: #fff; font-size: 15px; }
.campo textarea { min-height: 110px; resize: vertical; }
.campo input[type=checkbox], .campo input[type=radio] { width: 18px; height: 18px; min-height: 0; padding: 0; flex: none; accent-color: var(--p); }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--p); box-shadow: 0 0 0 3px color-mix(in srgb, var(--p) 18%, transparent); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 7px 12px; border-radius: 999px; border: 1px solid #d6d8e2; font-size: 14px; font-weight: 550; background: #fff; }
.chip[aria-current], .chip:hover { border-color: var(--p); color: var(--p); background: var(--p-su); }
.barra-resultados { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.rejilla-catalogo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.paginas { display: flex; gap: 6px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.paginas a, .paginas span { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--linea); padding: 0 12px; font-weight: 600; }
.paginas span[aria-current] { background: var(--p); color: var(--sobre-p); border-color: var(--p); }
.vacio { text-align: center; padding: 60px 20px; border: 1px dashed #d6d8e2; border-radius: var(--r); color: var(--gris); }
.migas { display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--gris); margin-bottom: 14px; }
.migas a:hover { color: var(--p); }

/* Ficha */
.galeria { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: min(520px, 62vw); border-radius: 20px; overflow: hidden; }
.galeria a { position: relative; background: var(--fondo); overflow: hidden; }
.galeria a:first-child { grid-row: span 2; }
.galeria img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.galeria a:hover img { transform: scale(1.03); }
.galeria .mas { position: absolute; inset: 0; background: rgba(16, 19, 31, 0.5); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 18px; }
.ficha { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; margin-top: 28px; align-items: start; }
.ficha h1 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; }
.ficha-precio { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 14px 0 4px; }
.ficha-precio div { display: grid; }
.ficha-precio span { font-size: 13px; font-weight: 700; color: var(--gris); text-transform: uppercase; letter-spacing: 0.05em; }
.ficha-precio b { font-family: var(--f-titulos); font-size: 30px; letter-spacing: -0.02em; }
.cifras { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin: 22px 0; }
.cifra { background: var(--fondo); border-radius: 14px; padding: 12px 14px; display: grid; gap: 2px; }
.cifra span { font-size: 13px; color: var(--gris); display: flex; gap: 6px; align-items: center; }
.cifra b { font-size: 18px; font-family: var(--f-titulos); }
.bloque { padding: 26px 0; border-top: 1px solid var(--linea); }
.bloque h2 { font-size: 22px; margin-bottom: 12px; }
.texto p + p { margin-top: 12px; }
.texto { white-space: pre-line; color: #2b2f40; }
.amenidades { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px 16px; }
.amenidades li { display: flex; gap: 12px; align-items: center; line-height: 1.3; min-width: 0; }
.amenidades .i { flex: none; width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: var(--p-su); fill: var(--p); }
.mapa { border-radius: 18px; overflow: hidden; border: 1px solid var(--linea); aspect-ratio: 16 / 9; background: var(--fondo); }
.mapa iframe { width: 100%; height: 100%; border: 0; }
.contacto-caja { position: sticky; top: 88px; background: #fff; border: 1px solid var(--linea); border-radius: 22px; padding: 22px; box-shadow: var(--sombra); display: grid; gap: 14px; }
.asesor { display: flex; gap: 12px; align-items: center; }
.asesor-foto { width: 52px; height: 52px; border-radius: 50%; background: var(--p-su); color: var(--p); display: grid; place-items: center; font-weight: 800; overflow: hidden; flex: none; }
.asesor-foto img { width: 100%; height: 100%; object-fit: cover; }
.aviso { padding: 14px 16px; border-radius: 14px; background: #ecfdf3; color: #14532d; font-weight: 550; }
.aviso-error { background: #fff1f2; color: #9f1239; }
.error { color: #be123c; font-size: 13px; font-weight: 550; }
[aria-invalid="true"] { border-color: #be123c !important; }
.legal { font-size: 12.5px; color: var(--gris-2); }
.legal a { text-decoration: underline; }
.oculto { position: absolute !important; left: -5000px !important; }

/* Visor de fotos */
.visor { position: fixed; inset: 0; z-index: 100; background: rgba(8, 10, 18, 0.95); display: none; align-items: center; justify-content: center; }
.visor.abierto { display: flex; }
.visor img { max-width: 94vw; max-height: 86vh; object-fit: contain; border-radius: 8px; }
.visor button { position: absolute; background: rgba(255, 255, 255, 0.12); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 22px; }
.visor .cerrar { top: 18px; right: 18px; }
.visor .ant { left: 18px; }
.visor .sig { right: 18px; }
.visor .contador { position: absolute; bottom: 18px; color: #fff; font-size: 14px; opacity: 0.8; }

/* Contenido de texto */
.articulo { max-width: 760px; }
.articulo h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; margin-bottom: 14px; }
.articulo h2 { font-size: 24px; margin: 34px 0 10px; }
.articulo p, .articulo li { color: #2b2f40; }
.articulo p + p { margin-top: 12px; }
.articulo ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; margin: 10px 0; }
.pasos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.paso { background: #fff; border: 1px solid var(--linea); border-radius: var(--r); padding: 20px; display: grid; gap: 8px; align-content: start; }
.paso small { color: var(--p); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; font-size: 12px; }
.paso h3 { font-size: 18px; }
.paso p { color: var(--gris); font-size: 15px; }
details.pregunta { border-bottom: 1px solid var(--linea); padding: 16px 0; }
details.pregunta summary { font-weight: 650; cursor: pointer; font-size: 17px; }
details.pregunta p { margin-top: 10px; color: var(--gris); }

/* Pie */
.pie { background: #0f111a; color: #c9ccda; padding: 56px 0 28px; margin-top: 40px; font-size: 15px; }
.pie-rejilla { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.pie h3 { color: #fff; font-size: 15px; margin-bottom: 12px; font-family: var(--f); }
.pie a:hover { color: #fff; }
.pie li + li { margin-top: 8px; }
.pie-bajo { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 13px; color: #8d91a6; }
.redes { display: flex; gap: 8px; margin-top: 14px; }
.redes a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); display: grid; place-items: center; }
.whatsapp-flotante { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.45); }
.whatsapp-flotante .i { width: 30px; height: 30px; }
.franja-aviso { background: #fff8d6; color: #5c4600; text-align: center; font-size: 14px; padding: 8px 16px; }

/* Móvil */
@media (max-width: 960px) {
  #captacion .envoltura, #contacto-general .envoltura { grid-template-columns: minmax(0, 1fr) !important; }
  .rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tipos, .pasos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tipo:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .catalogo, .ficha { grid-template-columns: minmax(0, 1fr); }
  .filtros, .contacto-caja { position: static; }
  .llamado { grid-template-columns: minmax(0, 1fr); }
  .llamado .acciones { justify-content: flex-start; }
  .pie-rejilla { grid-template-columns: 1fr 1fr; }
  .menu-boton { display: grid; place-items: center; }
  .menu-principal { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--linea); flex-direction: column; align-items: stretch; padding: 10px 20px 18px; gap: 2px; }
  .menu-principal.abierto { display: flex; }
  .menu-principal a { padding: 12px; }
}
@media (max-width: 640px) {
  .rejilla, .rejilla-catalogo, .pasos { grid-template-columns: minmax(0, 1fr); }
  .tipos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tipo { padding: 16px; }
  .tipo b { font-size: 16px; line-height: 1.25; }
  .tipo span { font-size: 13px; }
  .tipo-icono { width: 40px; height: 40px; padding: 9px; }
  .buscador { grid-template-columns: 1fr 1fr; }
  .buscador .campo-texto, .buscador .boton { grid-column: 1 / -1; }
  .galeria { grid-template-columns: 1fr; grid-template-rows: 1fr; height: 70vw; }
  .galeria a:not(:first-child) { display: none; }
  .seccion { padding: 44px 0; }
  .pie-rejilla { grid-template-columns: 1fr; }
  .portada .envoltura { padding: 56px 0 44px; }
}
/* Página de contacto de la inmobiliaria: hero a todo color con tarjeta de formulario (como micrm.mx/contacto). */
.contacto-pagina { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 36px; align-items: start; }
.pila-contacto { display: grid; gap: 22px; min-width: 0; }
.canales { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.canal { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; gap: 4px 14px; align-items: center; padding: 18px; border: 1px solid var(--linea); border-radius: var(--r); background: #fff; transition: border-color 0.15s, box-shadow 0.15s; }
.canal:hover { border-color: var(--p); box-shadow: var(--sombra); }
.canal-icono { grid-row: span 2; width: 46px; height: 46px; padding: 11px; border-radius: 14px; background: var(--p-su); fill: var(--p); }
.canal-icono.canal-wa { background: #e7f8ee; fill: #1a9c49; }
.canal-texto { display: grid; min-width: 0; }
.canal-texto b { font-family: var(--f-titulos); font-size: 17px; }
.canal-texto span { color: var(--gris); font-size: 14px; overflow-wrap: anywhere; }
.canal-accion { grid-column: 2; color: var(--p); font-weight: 650; font-size: 14px; }
.horario { display: flex; gap: 8px; align-items: center; color: var(--gris); font-size: 15px; }
.horario .i { fill: currentColor; flex: none; }

.contacto-hero { position: relative; overflow: hidden; background: var(--p); color: var(--sobre-p); }
.contacto-circulo { position: absolute; border-radius: 50%; background: color-mix(in srgb, var(--sobre-p) 7%, transparent); pointer-events: none; }
.contacto-circulo-a { width: 620px; height: 620px; top: -260px; right: 18%; }
.contacto-circulo-b { width: 520px; height: 520px; bottom: -330px; right: -120px; }
.contacto-hero-rejilla { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px); gap: 56px; align-items: center; padding: 48px 0 72px; }
.contacto-copia .migas { color: color-mix(in srgb, var(--sobre-p) 75%, transparent); margin-bottom: 26px; }
.contacto-copia .migas a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.contacto-kicker { font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; font-size: 13px; color: var(--a); margin-bottom: 14px; }
.contacto-kicker-p { color: var(--p); margin-bottom: 6px; }
.contacto-copia h1 { font-size: clamp(40px, 5.6vw, 66px); font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; }
.contacto-copia h1 em { font-style: normal; color: var(--a); }
.contacto-lead { margin-top: 22px; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; max-width: 520px; color: color-mix(in srgb, var(--sobre-p) 90%, transparent); }
.contacto-canales { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 12px; max-width: 520px; }
.contacto-canales a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 20px; border-radius: 16px; background: color-mix(in srgb, var(--sobre-p) 10%, transparent); border: 1px solid color-mix(in srgb, var(--sobre-p) 22%, transparent); color: inherit; transition: background 0.15s, transform 0.15s; }
.contacto-canales a:hover { background: color-mix(in srgb, var(--sobre-p) 16%, transparent); transform: translateY(-1px); }
.contacto-canales .i { width: 22px; height: 22px; fill: currentColor; opacity: 0.9; }
.contacto-canales b { display: block; font-size: 17px; }
.contacto-canales small { display: block; font-size: 14px; opacity: 0.82; overflow-wrap: anywhere; }
.contacto-canales i { font-style: normal; color: var(--a); font-weight: 800; }
.contacto-horario { display: flex; gap: 8px; align-items: center; margin-top: 16px; font-size: 15px; opacity: 0.85; }
.contacto-horario .i { fill: currentColor; }
.contacto-tarjeta { background: #fff; color: var(--tinta); border-radius: 28px; padding: 32px; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.45); }
.contacto-tarjeta form { display: grid; gap: 14px; }
.contacto-tarjeta h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.contacto-sub { color: var(--gris); margin-top: -8px; }
.contacto-tarjeta .campo label b { color: var(--p); }
.contacto-tarjeta .campo input, .contacto-tarjeta .campo select, .contacto-tarjeta .campo textarea { background: var(--fondo); border-color: transparent; }
.contacto-tarjeta .campo input:focus, .contacto-tarjeta .campo select:focus, .contacto-tarjeta .campo textarea:focus { background: #fff; }
.contacto-fila { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contacto-acepto { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--gris); }
.contacto-acepto input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--p); flex: none; }
.contacto-acepto a { color: var(--p); text-decoration: underline; }
.contacto-enviar { min-height: 56px; font-size: 17px; background: var(--a); color: var(--sobre-a); box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--a) 90%, #000); }
.contacto-enviar:hover { background: color-mix(in srgb, var(--a) 88%, #000); }
.contacto-listo { text-align: center; display: grid; gap: 12px; justify-items: center; padding: 20px 0; }
.contacto-palomita { width: 64px; height: 64px; border-radius: 50%; background: var(--a); color: var(--sobre-a); display: grid; place-items: center; font-size: 30px; font-weight: 800; }
.contacto-listo-botones { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.pasos-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.equipo-rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.miembro { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px; border: 1px solid var(--linea); border-radius: var(--r); background: #fff; min-width: 0; }
.miembro-perfil { display: flex; align-items: center; gap: 12px; min-width: 0; }
.miembro-perfil .asesor-foto { width: 56px; height: 56px; }
.miembro-perfil b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.miembro-wa { flex: none; width: 42px; height: 42px; border-radius: 12px; background: #1fb257; display: grid; place-items: center; }
.miembro-wa .i { fill: #fff; width: 20px; height: 20px; }
.oficina { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 0; border: 1px solid var(--linea); border-radius: 24px; overflow: hidden; background: #fff; }
.oficina-datos { padding: 34px; display: grid; gap: 10px; align-content: center; justify-items: start; }
.oficina-datos h2 { font-size: 28px; }
.oficina-mapa { min-height: 320px; background: var(--fondo); }
.oficina-mapa iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
@media (max-width: 960px) {
  .contacto-pagina, .contacto-hero-rejilla, .oficina { grid-template-columns: minmax(0, 1fr); }
  .contacto-hero-rejilla { gap: 36px; padding: 28px 0 48px; }
  .contacto-tarjeta { order: -1; }
  .pasos-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .canales { grid-template-columns: minmax(0, 1fr); }
  .canal { padding: 16px; }
  .contacto-tarjeta { padding: 24px 20px; border-radius: 24px; }
  .contacto-fila { grid-template-columns: minmax(0, 1fr); }
  .contacto-circulo-a { width: 360px; height: 360px; right: -120px; top: -140px; }
  .oficina-datos { padding: 24px; }
}
/* Catálogo: píldoras (operación, recámaras) y, en móvil, filtros en panel inferior. */
.pildoras { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.pildoras legend { font-size: 13px; font-weight: 650; color: #353a4d; margin-bottom: 6px; padding: 0; width: 100%; }
.pildoras label { position: relative; cursor: pointer; }
.pildoras input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pildoras span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 13px; border-radius: 999px; border: 1px solid #d6d8e2; font-size: 14px; font-weight: 550; background: #fff; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.pildoras input:checked + span { background: var(--p); border-color: var(--p); color: var(--sobre-p); }
.pildoras input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--p) 45%, transparent); outline-offset: 2px; }
.precios { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.precios input { -moz-appearance: textfield; }
.precios input::-webkit-outer-spin-button, .precios input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.filtros-cuerpo { display: grid; gap: 14px; }
.filtros-cabeza { display: flex; justify-content: space-between; align-items: center; }
.filtros-cerrar { display: none; }
.filtros-pie { display: grid; gap: 8px; }
.filtros-pie .boton-borde { order: 2; }
.filtros-movil, .filtros-activos, .filtros-velo { display: none; }
@media (max-width: 960px) {
  .catalogo-pagina .migas { display: none; }
  .filtros-movil { display: flex; gap: 8px; align-items: center; position: sticky; top: 68px; z-index: 20; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(8px); margin: -28px -20px 12px; padding: 10px 20px; border-bottom: 1px solid var(--linea); }
  .chip-filtros { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 40px; font-weight: 650; color: var(--tinta); cursor: pointer; font-family: inherit; }
  .chip-filtros .i { width: 17px; height: 17px; fill: currentColor; }
  .chip-cuenta { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--p); color: var(--sobre-p); font-size: 12px; font-weight: 700; }
  .chips-rapidos { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0; padding-right: 20px; mask-image: linear-gradient(to right, #000 85%, transparent); }
  .chips-rapidos::-webkit-scrollbar { display: none; }
  .chips-rapidos .chip { flex: none; min-height: 40px; display: inline-flex; align-items: center; }
  .chips-rapidos .chip[aria-current] { background: var(--p); border-color: var(--p); color: var(--sobre-p); }
  .filtros-activos { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 14px; }
  .chip-quitar { display: inline-flex; align-items: center; gap: 6px; background: var(--p-su); border-color: transparent; color: var(--p); }
  .chip-quitar span { font-size: 17px; line-height: 1; }
  .filtros { position: fixed !important; left: 0; right: 0; bottom: 0; top: auto; z-index: 70; max-height: 88vh; display: flex; flex-direction: column; gap: 0; padding: 0; border: 0; border-radius: 24px 24px 0 0; box-shadow: 0 -20px 50px -20px rgba(16, 19, 31, 0.45); transform: translateY(105%); visibility: hidden; transition: transform 0.25s ease, visibility 0s linear 0.25s; }
  .filtros.abierta { transform: none; visibility: visible; transition: transform 0.25s ease; }
  .filtros-cabeza { padding: 16px 20px 10px; border-bottom: 1px solid var(--linea); }
  .filtros-cabeza h2 { font-size: 18px; }
  .filtros-cerrar { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 12px; background: var(--fondo); font-size: 24px; line-height: 1; color: var(--tinta); cursor: pointer; }
  .filtros-cuerpo { overflow-y: auto; padding: 16px 20px; overscroll-behavior: contain; }
  .filtros-pie { grid-template-columns: 1fr 2fr; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--linea); }
  .filtros-pie .boton-borde { order: 0; }
  .filtros-pie .boton:only-child { grid-column: 1 / -1; }
  .filtros-velo:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 65; background: rgba(16, 19, 31, 0.5); }
}
/* QR del anuncio: icono junto a las etiquetas (escritorio) o sobre la foto (móvil) y ventana con el código. */
.ficha-etiquetas { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.qr-boton { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--linea); background: #fff; color: var(--tinta); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
.qr-boton:hover { border-color: var(--p); color: var(--p); }
.qr-boton .i, .carrusel-btn [data-abrir-qr] .i { width: 18px; height: 18px; }
.qr-boton svg, [data-abrir-qr] svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.qr-dialogo { border: 0; border-radius: 22px; padding: 26px 24px 22px; width: min(320px, calc(100% - 40px)); text-align: center; box-shadow: var(--sombra); }
.qr-dialogo::backdrop { background: rgba(16, 19, 31, 0.55); }
.qr-dialogo .qr-lienzo { width: 220px; height: 220px; margin: 0 auto 14px; }
.qr-dialogo .qr-lienzo svg { width: 100%; height: 100%; display: block; }
.qr-dialogo p { margin: 4px 0 0; }
.qr-cerrar { position: absolute; top: 8px; right: 10px; width: 36px; height: 36px; border: 0; background: none; font-size: 26px; line-height: 1; color: var(--gris); cursor: pointer; }
@media (max-width: 640px) { .qr-boton { display: none; } }
/* Ficha en móvil: carrusel a todo lo ancho con acciones encima y barra de contacto fija.
   En escritorio no existen; allá sigue el mosaico y la caja de contacto lateral. */
.carrusel-marco, .ficha-meta, .barra-contacto { display: none; }
@media (max-width: 640px) {
  .ficha-movil .migas, .ficha-movil .galeria { display: none; }
  .carrusel-marco { display: block; position: relative; margin: -24px -20px 0; background: var(--fondo); }
  .carrusel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; height: min(92vw, 560px); }
  .carrusel::-webkit-scrollbar { display: none; }
  .carrusel a { flex: 0 0 100%; scroll-snap-align: start; }
  .carrusel img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .carrusel-vacio { height: 34vw; }
  .carrusel-btn { position: absolute; top: 14px; width: 44px; height: 44px; border-radius: 14px; border: 0; background: rgba(255, 255, 255, 0.55); -webkit-backdrop-filter: blur(8px) saturate(1.2); backdrop-filter: blur(8px) saturate(1.2); color: var(--tinta); display: grid; place-items: center; box-shadow: 0 4px 14px -8px rgba(0, 0, 0, 0.35); cursor: pointer; padding: 0; }
  .carrusel-btn:active { background: rgba(255, 255, 255, 0.8); }
  .carrusel-btn .i { width: 22px; height: 22px; fill: currentColor; }
  .carrusel-btn svg[viewBox] { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
  .carrusel-atras { left: 14px; }
  .carrusel-derecha { position: absolute; top: 14px; right: 14px; display: flex; gap: 10px; }
  .carrusel-derecha .carrusel-btn { position: static; }
  .carrusel-chips { position: absolute; left: 0; right: 0; bottom: 34px; display: flex; justify-content: center; gap: 10px; pointer-events: none; }
  .carrusel-chip { pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 12px; background: rgba(16, 19, 31, 0.62); backdrop-filter: blur(6px); color: #fff; font-weight: 600; font-size: 15px; }
  .carrusel-chip .i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
  .carrusel-puntos { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; align-items: center; gap: 6px; pointer-events: none; }
  .carrusel-puntos span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.6); transition: transform 0.2s, background 0.2s; }
  .carrusel-puntos span.activo { background: #fff; }
  .carrusel-puntos span.chico { transform: scale(0.65); }
  .ficha-meta { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; margin-bottom: -12px; border-bottom: 1px solid var(--linea); font-size: 14px; color: var(--gris); }
  .ficha-movil .ficha { margin-top: 18px; }
  .barra-contacto { display: flex; gap: 9px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 10.5px 15px calc(10.5px + env(safe-area-inset-bottom)); background: #fff; border-radius: 20px 20px 0 0; box-shadow: 0 -10px 30px -12px rgba(16, 19, 31, 0.25); }
  .barra-mensaje { flex: 1; min-height: 46px; border-radius: 13px; font-size: 15px; gap: 7px; }
  .barra-mensaje .i { width: 19px; height: 19px; fill: currentColor; }
  .barra-redondo { flex: none; width: 48px; height: 46px; border-radius: 13px; border: 1.5px solid var(--tinta); color: var(--tinta); display: grid; place-items: center; }
  .barra-redondo .i { width: 20px; height: 20px; fill: currentColor; }
  body:has(.barra-contacto) { padding-bottom: calc(71px + env(safe-area-inset-bottom)); }
  body:has(.barra-contacto) .whatsapp-flotante { display: none; }
  .aviso-flotante { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; background: var(--tinta); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; white-space: nowrap; box-shadow: var(--sombra); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
