/* El Sitio Condominio · marco común del inicio y de /lotes/
   Encabezado (logo en escritorio, rótulo de texto en móvil), botones de contacto y barra fija inferior en móvil.
   Clases con prefijo «m-» para no chocar con styles.css ni con lotes.css.

   CONTACTO (15-oct-2026): mientras Meta no active el WhatsApp de la asistente (8948-8411), la acción principal es
   llamar a Marcela Marín (8775-0758) y el correo info@ queda como segunda opción.
   12-nov-2026: María ya atiende el 8948-8411 (vía 360dialog): se agrega el botón flotante de WhatsApp («m-wa», al final).
   Para pasar a WhatsApp: ver el comentario «CAMBIO A WHATSAPP» en index.html. */

@font-face {
  font-family: "Gelasio"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fuentes/gelasio-latin-400-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Gelasio"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(/fuentes/gelasio-latin-400-italic.woff2) format("woff2");
}

:root {
  --m-bosque: #203c30;
  --m-oliva: #465323;
  --m-marfil: #f5f2e9;
  --m-arena: #d8c7aa;
  --m-carbon: #191d19;
  --m-barra: 64px;
}

/* ---------- Encabezado ---------- */
.m-enc { position: relative; z-index: 20; background: var(--m-marfil); color: var(--m-bosque); border-bottom: 1px solid rgba(70, 83, 35, .25); }
.m-enc-fila { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(100% - 44px, 1160px); margin-inline: auto; min-height: 68px; }
/* Logo aprobado en PNG, nunca redibujado: mínimo 180 px de ancho. Solo en escritorio. */
.m-logo { display: none; padding: 14px; margin-left: -14px; line-height: 0; flex: none; }
.m-logo img { width: 180px; height: auto; display: block; }
/* Rótulo de texto en móvil (en lugar del logo reducido) */
.m-rotulo { font-family: Arial, Arimo, Helvetica, sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .26em; text-transform: uppercase; color: inherit; text-decoration: none; white-space: nowrap; }
.m-nav { display: none; align-items: center; gap: 30px; }
.m-nav a { font-family: Arial, Arimo, Helvetica, sans-serif; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: inherit; text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.m-nav a:hover, .m-nav a[aria-current="page"] { border-bottom-color: currentColor; }
.m-acciones { display: flex; align-items: center; gap: 10px; }

.m-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 10px 18px; border-radius: 999px;
  font-family: Arial, Arimo, Helvetica, sans-serif; font-weight: 700; font-size: 14px; letter-spacing: .03em; line-height: 1.1;
  text-decoration: none; white-space: nowrap;
  border: 1px solid currentColor; color: inherit; background: transparent;
  transition: background-color .15s ease, color .15s ease;
}
.m-btn svg { width: 17px; height: 17px; flex: none; }
.m-btn-lleno { background: var(--m-bosque); border-color: var(--m-bosque); color: var(--m-marfil); }
.m-btn-lleno:hover { background: var(--m-oliva); border-color: var(--m-oliva); color: var(--m-marfil); }
.m-btn:not(.m-btn-lleno):hover { background: rgba(32, 60, 48, .08); }
.m-solo-ancho { display: none !important; }

/* Variante sobre la foto del héroe (inicio): transparente y en marfil */
.m-enc-foto { position: absolute; inset: 0 0 auto 0; background: transparent; border-bottom: 0; color: var(--m-marfil); }
.m-enc-foto .m-btn-lleno { background: var(--m-marfil); border-color: var(--m-marfil); color: var(--m-bosque); }
.m-enc-foto .m-btn-lleno:hover { background: #fff; border-color: #fff; color: var(--m-bosque); }
.m-enc-foto .m-btn:not(.m-btn-lleno):hover { background: rgba(245, 242, 233, .14); }
.m-enc-foto :focus-visible { outline-color: var(--m-marfil); }
.m-enc-foto .m-rotulo { text-shadow: 0 1px 10px rgba(0, 0, 0, .45); }

@media (min-width: 701px) {
  .m-enc-fila { width: min(100% - 128px, 1160px); min-height: 92px; }
  .m-logo { display: block; }
  .m-rotulo { display: none; }
  .m-solo-ancho { display: inline !important; }
  .m-btn.m-solo-ancho { display: inline-flex !important; }
}
@media (min-width: 1100px) { .m-nav { display: flex; } }

/* ---------- Barra fija inferior (móvil) ---------- */
.m-barra { display: none; }
@media (max-width: 700px) {
  body { padding-bottom: calc(var(--m-barra) + env(safe-area-inset-bottom, 0px)); }
  html { scroll-padding-bottom: calc(var(--m-barra) + 16px); }
  .m-barra {
    display: grid; grid-template-columns: repeat(3, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--m-bosque); border-top: 1px solid rgba(245, 242, 233, .18);
  }
  .m-barra a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    height: var(--m-barra); color: var(--m-marfil); text-decoration: none;
    font-family: Arial, Arimo, Helvetica, sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .04em;
  }
  .m-barra a + a { border-left: 1px solid rgba(245, 242, 233, .18); }
  .m-barra svg { width: 22px; height: 22px; }
  .m-barra :focus-visible { outline: 3px solid var(--m-arena); outline-offset: -4px; }
}

/* ---------- Botón flotante de WhatsApp (12-nov-2026): chat con María, 8948-8411 ----------
   Escritorio: píldora verde «Escríbele a María» abajo a la derecha. Móvil: círculo verde encima de la barra fija. */
.m-wa {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 12px 22px 12px 16px; border-radius: 999px;
  background: #25d366; color: #fff; text-decoration: none;
  font-family: Arial, Arimo, Helvetica, sans-serif; font-weight: 700; font-size: 15px; letter-spacing: .02em; white-space: nowrap;
  box-shadow: 0 6px 18px rgba(25, 29, 25, .28);
  transition: transform .15s ease, background-color .15s ease;
}
.m-wa svg { width: 28px; height: 28px; flex: none; }
.m-wa:hover { background: #1ebe5a; transform: translateY(-2px); }
.m-wa:focus-visible { outline: 3px solid var(--m-bosque); outline-offset: 3px; }
@media (max-width: 700px) {
  .m-wa {
    right: 16px; bottom: calc(var(--m-barra) + 16px + env(safe-area-inset-bottom, 0px));
    width: 58px; height: 58px; min-height: 0; padding: 0; justify-content: center;
  }
  .m-wa svg { width: 32px; height: 32px; }
  .m-wa-texto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .m-wa { transition: none; } .m-wa:hover { transform: none; } }

@media print { .m-barra, .m-acciones, .m-wa { display: none !important; } }

/* ---------- Migas: «← Volver al inicio» en las páginas internas (14-nov-2026, Rigo: «le hace falta un botón de volver») ---------- */
.m-migas { background: var(--m-marfil); border-bottom: 1px solid rgba(70, 83, 35, .18); }
.m-migas ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; width: min(100% - 44px, 1160px); margin: 0 auto; padding: 10px 0; list-style: none;
  font-family: Arial, Arimo, Helvetica, sans-serif; font-size: 14px; color: var(--m-oliva); }
.m-migas li + li::before { content: "/"; margin-right: 10px; opacity: .55; }
.m-migas a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; color: var(--m-bosque); font-weight: 700; text-decoration: none; border-bottom: 1px solid transparent; }
.m-migas a:hover { border-bottom-color: currentColor; }
.m-migas a:focus-visible { outline: 3px solid var(--m-arena); outline-offset: 2px; border-radius: 4px; }
.m-migas [aria-current="page"] { color: var(--m-oliva); }
@media (min-width: 701px) { .m-migas ol { width: min(100% - 128px, 1160px); } }
@media print { .m-migas { display: none; } }

/* ---------- Videos cortos (reels, 14-nov-2026). Se ven igual que el «Video tour 360»: portada ancha con 3 escenas,
   botón grande y sello. Al tocar, reels.js abre el video vertical a pantalla completa (sin JavaScript se ve el video normal). ---------- */
.reel-fila { display: grid; gap: 28px; align-items: center; margin-top: 44px; }
@media (min-width: 960px) {
  .reel-fila { grid-template-columns: 1.35fr 1fr; gap: 56px; }
  .reel-fila.reel-derecha { grid-template-columns: 1fr 1.35fr; }
  .reel-fila.reel-derecha .reel { order: 2; }
}
.reel { margin: 0; width: 100%; }
.reel-caja { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--m-bosque); box-shadow: 0 14px 34px rgba(25, 29, 25, .18); }
.reel-caja video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--m-bosque); }
.reel-portada { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: var(--m-bosque); }
.reel-portada[hidden] { display: none; }
.reel-portada img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease, filter .4s ease; }
.reel-portada:hover img, .reel-portada:focus-visible img { transform: scale(1.02); filter: brightness(.92); }
.reel-portada:focus-visible { outline: 3px solid var(--m-arena); outline-offset: -3px; }
.reel-play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: rgba(245, 242, 233, .94); box-shadow: 0 6px 22px rgba(0, 0, 0, .35); transition: transform .25s ease; }
.reel-play::after { content: ""; position: absolute; left: 34px; top: 26px; border-style: solid; border-width: 16px 0 16px 26px; border-color: transparent transparent transparent var(--m-bosque); }
.reel-portada:hover .reel-play { transform: scale(1.08); }
@media (min-width: 701px) { .reel-play { width: 104px; height: 104px; margin: -52px 0 0 -52px; } .reel-play::after { left: 42px; top: 32px; border-width: 20px 0 20px 32px; } }
.reel-sello { position: absolute; left: 14px; bottom: 14px; padding: 7px 12px; border-radius: 999px; background: rgba(32, 60, 48, .9); color: var(--m-marfil);
  font: 700 13px/1 Arial, Arimo, Helvetica, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.reel figcaption { margin-top: 10px; font-family: Arial, Arimo, Helvetica, sans-serif; font-size: 13px; opacity: .8; text-align: center; }
.reel-ante { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; font: 700 12px/1.2 Arial, Arimo, Helvetica, sans-serif; letter-spacing: .22em; text-transform: uppercase; color: var(--m-oliva); }
.reel-ante::before { content: ""; flex: none; width: 40px; height: 1px; background: currentColor; }
.seccion-bosque .reel-ante { color: var(--m-arena); }
.reel-texto h3 { margin: 0 0 .45em; font-size: clamp(1.75rem, 4.6vw, 2.5rem); line-height: 1.1; letter-spacing: -.01em; }
.reel-texto p { margin: 0 0 1em; }
/* Visor: el video vertical a pantalla completa */
.reel-visor { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; overflow: visible; }
.reel-visor::backdrop { background: rgba(15, 20, 17, .92); }
.reel-visor video { display: block; height: min(88vh, 900px); max-width: 94vw; aspect-ratio: 9 / 16; border-radius: 14px; background: #000; }
.reel-cerrar { position: fixed; top: 14px; right: 14px; z-index: 3; width: 48px; height: 48px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(245, 242, 233, .95); color: var(--m-bosque); font: 400 30px/48px Arial, Arimo, Helvetica, sans-serif; text-align: center; padding: 0; }
.reel-cerrar:focus-visible { outline: 3px solid var(--m-arena); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .reel-portada img, .reel-play { transition: none; } }

/* ---------- Botón de idioma ES / EN (14-nov-2026) ---------- */
.m-idioma { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 4px; font-family: Arial, Arimo, Helvetica, sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .14em; color: inherit; text-decoration: none; }
.m-idioma:hover { text-decoration: underline; text-underline-offset: 4px; }
/* Celular angosto: el encabezado no cabía (rótulo + idioma + WhatsApp > 375 px). El botón de arriba queda solo con el ícono;
   la barra fija de abajo ya trae «WhatsApp» con texto. */
@media (max-width: 430px) {
  .m-enc-fila { gap: 10px; }
  .m-acciones { gap: 2px; }
  .m-acciones .m-btn-lleno { font-size: 0; gap: 0; width: 44px; padding: 0; }
}
@media (max-width: 359px) { .m-rotulo { font-size: 12px; letter-spacing: .14em; } }
