
  :root{
    --tinta:#171512;
    --hueso:#F4EFE4;
    --linea: rgba(23,21,18,0.14);

    --nopal:#3C6B35;
    --nopal-2:#274A22;
    --magenta:#C41E6E;
    --magenta-2:#8C1350;
    --turquesa:#0F8B8D;
    --turquesa-2:#0B5F60;
    --cempasuchil:#F2A73B;
    --cempasuchil-2:#C97F1D;
    --chile:#D93A2B;

    --acento: var(--magenta);
    --acento-2: var(--magenta-2);
    --sobre-acento: #F4EFE4;
  }
  [data-chapter="house"]{ --acento:var(--cempasuchil); --acento-2:var(--cempasuchil-2); --sobre-acento:#171512; }
  [data-chapter="condesa"]{ --acento:var(--nopal); --acento-2:var(--nopal-2); --sobre-acento:#F4EFE4; }
  [data-chapter="vibe"]{ --acento:var(--turquesa); --acento-2:var(--turquesa-2); --sobre-acento:#F4EFE4; }

  *{ box-sizing:border-box; }
  html{ scroll-behavior:smooth; }
  body{
    margin:0; background:var(--hueso); color:var(--tinta);
    font-family:'Space Grotesk', sans-serif; -webkit-font-smoothing:antialiased;
    overflow-x:hidden;
  }
  h1,h2,h3,.display{ font-weight:700; letter-spacing:-0.02em; line-height:0.96; }
  ::selection{ background:var(--acento); color:var(--sobre-acento); }
  .wrap{ max-width:1280px; margin:0 auto; padding:0 32px; }
  @media (max-width:640px){ .wrap{ padding:0 20px; } }
  a{ color:inherit; text-decoration:none; } button{ font-family:inherit; cursor:pointer; background:none; border:none; color:inherit; }

  /* ---------- NAV: ver css/header.css (hamburguesa, logo centrado, "Reserva aquí") ---------- */

  /* ---------- HERO ---------- */
  .hero{ min-height:100svh; position:relative; display:flex; flex-direction:column; justify-content:flex-end; padding:0 32px 56px; background:var(--tinta); color:var(--hueso); overflow:hidden; }
  .hero-blocks{ position:absolute; inset:0; z-index:0; display:grid; grid-template-columns:repeat(6,1fr); }
  .hero-blocks div{ height:100%; }
  .hero-inner{ position:relative; z-index:2; }
  .hero-eyebrow{ font-size:14px; margin-bottom:16px; max-width:420px; line-height:1.5; opacity:.85; }
  h1.hero-title{ font-size:clamp(46px,10vw,148px); margin:0 0 26px; max-width:14ch; }
  h1.hero-title span{ color: var(--cempasuchil); }
  .hero-sub{ display:flex; justify-content:space-between; align-items:flex-end; gap:24px; flex-wrap:wrap; border-top:1px solid rgba(244,239,228,0.25); padding-top:20px; }
  .hero-sub p{ max-width:36ch; font-size:15px; opacity:.8; margin:0; }
  .scroll-cue{ font-size:13px; display:flex; align-items:center; gap:10px; opacity:.8; }
  .scroll-cue .dot{ width:8px; height:8px; border-radius:50%; background:var(--magenta); animation:pulse 1.6s ease-in-out infinite; }
  @keyframes pulse{ 0%,100%{ transform:scale(1); opacity:1;} 50%{ transform:scale(1.6); opacity:.4;} }

  section{ padding:110px 0; position:relative; }
  @media (max-width:640px){ section{ padding:72px 0; } }
  .kicker{ font-size:13px; font-weight:600; text-transform:uppercase; letter-spacing:.06em; margin:0 0 14px; color:var(--acento); }
  .section-head{ display:grid; grid-template-columns:1.2fr 1fr; gap:48px; margin-bottom:60px; align-items:end; }
  .section-head h2{ font-size:clamp(34px,4.6vw,60px); margin:0; }
  .section-head p{ font-size:16px; color:#4A453D; line-height:1.6; margin:0; }
  @media (max-width:800px){ .section-head{ grid-template-columns:1fr; } }

  .reveal{ opacity:0; transform:translateY(24px); transition:opacity .7s ease, transform .7s ease; }
  .reveal.in{ opacity:1; transform:translateY(0); }

  /* franja LOUD entre secciones QUIET, según punto 16 del brief */
  .loud-strip{ background:var(--acento); color:var(--sobre-acento); padding:64px 0; }
  .loud-strip .wrap{ display:flex; justify-content:space-between; align-items:center; gap:24px; flex-wrap:wrap; }
  .loud-strip .display{ font-size:clamp(26px,3.4vw,42px); }

  /* ---------- DAY ---------- */
  /* ---------- DAY — foto real por momento + banner de color ----------
     La foto y el banner viven en el mismo card. El banner cambia de
     color según el capítulo del momento (magenta/cempasúchil/nopal),
     igual que el resto del sistema de acentos por capítulo. */
  .day-stage{ border-radius:28px; overflow:hidden; position:relative; display:flex; flex-direction:column; }
  .day-photo-wrap{ position:relative; width:100%; aspect-ratio:16/10; background:var(--linea); overflow:hidden; }
  @media (max-width:640px){ .day-photo-wrap{ aspect-ratio:1/1; } }
  .day-photo-wrap img{
    position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
    opacity:0; transition:opacity .45s ease;
  }
  .day-photo-wrap img.active{ opacity:1; }
  .day-banner{
    padding:40px 44px; color:var(--sobre-acento); background:var(--dia-color, var(--magenta));
    transition:background .4s ease;
  }
  @media (max-width:640px){ .day-banner{ padding:26px; } }
  .day-banner .moment-title{ font-size:clamp(28px,4vw,50px); margin-bottom:8px; }
  .day-banner .moment-tag{ font-size:14px; opacity:.92; max-width:48ch; }
  .day-rail{ display:flex; gap:10px; margin-top:22px; overflow-x:auto; }
  .day-step{ flex:1; min-width:110px; text-align:left; padding:16px; border-radius:16px; font-size:13px; font-weight:600; background:var(--hueso); border:2px solid var(--linea); color:#4A453D; transition:border-color .25s ease, color .25s ease, transform .2s ease; }
  .day-step .num{ display:block; font-size:20px; margin-bottom:6px; }
  .day-step.active{ border-color:var(--acento); color:var(--tinta); transform:translateY(-3px); }

  /* ---------- STAY — galería de fotos + banner de color (mismo
     patrón que "A Day at The Gallery": foto arriba, banner sólido
     abajo con el número grande) ---------- */
  .room-tabs{ display:flex; gap:8px; margin-bottom:32px; flex-wrap:wrap; }
  .room-tab{ padding:10px 20px; border-radius:999px; border:2px solid var(--tinta); font-size:14px; font-weight:600; transition:background .25s ease, color .25s ease; }
  .room-tab.active{ background:var(--tinta); color:var(--hueso); }
  .room-grid{ display:grid; grid-template-columns:1fr 1fr; gap:52px; align-items:center; }
  @media (max-width:800px){ .room-grid{ grid-template-columns:1fr; gap:30px; } }

  .room-gallery{ border-radius:28px; overflow:hidden; }
  .room-photo-wrap{ position:relative; width:100%; aspect-ratio:4/5; background:var(--linea); }
  .room-photo-wrap img{
    position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
    opacity:0; transition:opacity .45s ease;
  }
  .room-photo-wrap img.active{ opacity:1; }
  .room-dots{ position:absolute; bottom:16px; left:0; right:0; display:flex; justify-content:center; gap:7px; z-index:2; }
  .room-dots .dot{ width:7px; height:7px; border-radius:50%; background:rgba(244,239,228,.5); transition:background .25s ease, transform .25s ease; }
  .room-dots .dot.active{ background:var(--hueso); transform:scale(1.3); }

  .room-banner{ display:flex; justify-content:space-between; align-items:flex-end; padding:22px 26px; }
  .room-banner .roomnum{ font-size:clamp(56px,7vw,88px); font-weight:700; color:rgba(244,239,228,.9); line-height:.8; }
  .room-banner .caption{ font-size:12px; color:rgba(244,239,228,.9); padding-bottom:6px; }

  .room-name{ font-size:clamp(30px,3.6vw,46px); margin:0 0 6px; }
  .room-tagline{ color:var(--acento); font-size:15px; font-weight:600; margin:0 0 20px; }
  .room-specs{ display:flex; gap:26px; padding:18px 0; border-top:2px solid var(--tinta); border-bottom:2px solid var(--tinta); margin-bottom:22px; flex-wrap:wrap; }
  .room-specs div{ font-size:13px; color:#4A453D; } .room-specs strong{ display:block; font-size:20px; color:var(--tinta); }
  .room-desc{ font-size:15px; line-height:1.7; color:#3A362F; margin-bottom:22px; }
  .room-art{ font-size:13px; color:#4A453D; border-left:3px solid var(--acento); padding-left:14px; margin-bottom:24px; }
  .room-art em{ font-style:normal; font-weight:600; color:var(--tinta); }
  .link-explore{ font-size:14px; font-weight:600; padding:12px 22px; border-radius:999px; border:2px solid var(--tinta); display:inline-block; transition:background .25s ease, color .25s ease; }
  .link-explore:hover{ background:var(--tinta); color:var(--hueso); }

  /* ---------- HOUSE ---------- */
  .house-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
  @media (max-width:800px){ .house-grid{ grid-template-columns:1fr; } }
  .house-card{ padding:36px 28px; border-radius:24px; color:var(--hueso); transition:transform .25s ease; }
  .house-card:hover{ transform:translateY(-6px); }
  .house-card:nth-child(1){ background:var(--cempasuchil); color:#171512; }
  .house-card:nth-child(2){ background:var(--chile); color:var(--hueso); }
  .house-card:nth-child(3){ background:var(--tinta); color:var(--hueso); }
  .house-card h3{ font-size:23px; margin:0 0 10px; }
  .house-card p{ font-size:14px; line-height:1.65; margin:0; opacity:.92; }
  .house-card .tag{ font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; margin-bottom:10px; display:block; opacity:.75; }

  /* ---------- LIVING CONDESA — blog en marquesina ----------
     El contenido real vive en content/posts.json (editado desde
     /admin vía Decap CMS). El track se pinta dos veces seguidas
     y la animación recorre exactamente la mitad de su ancho total,
     así el loop es perfectamente continuo (sin salto al reiniciar). */
  .marquee-wrap{
    overflow:hidden; margin-top:8px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  }
  .marquee-track{
    display:flex; gap:22px; width:max-content;
    animation: marqueeScroll 42s linear infinite;
  }
  .marquee-wrap:hover .marquee-track{ animation-play-state:paused; }
  @keyframes marqueeScroll{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }

  .post-card{
    flex:0 0 auto; width:320px; border-radius:22px; overflow:hidden; background:var(--hueso);
    border:2px solid var(--linea); text-align:left; transition:transform .25s ease, border-color .25s ease;
  }
  .post-card:hover{ transform:translateY(-4px); border-color:var(--nopal); }
  .post-card .post-cover{ width:100%; aspect-ratio:4/3; object-fit:cover; display:block; background:var(--linea); }
  .post-card .post-body{ padding:20px; }
  .post-card .post-cat{ font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--nopal); margin-bottom:8px; display:block; }
  .post-card h3{ font-size:19px; margin:0 0 8px; line-height:1.15; }
  .post-card p{ font-size:13px; color:#4A453D; line-height:1.55; margin:0 0 10px; }
  .post-card .post-date{ font-size:11px; color:#8A8072; }

  @media (max-width:640px){ .post-card{ width:250px; } }
  @media (prefers-reduced-motion: reduce){
    .marquee-track{ animation:none; flex-wrap:wrap; width:100%; }
    .marquee-wrap{ overflow-x:auto; -webkit-mask-image:none; mask-image:none; }
  }

  /* ---------- Modal de lectura de post ---------- */
  .post-modal{
    position:fixed; inset:0; z-index:200; display:none; align-items:flex-start; justify-content:center;
    padding:64px 20px; overflow-y:auto; background:rgba(23,21,18,0.78); backdrop-filter:blur(4px);
  }
  .post-modal.open{ display:flex; }
  .post-modal-inner{
    background:var(--hueso); border-radius:24px; max-width:720px; width:100%; padding:44px; position:relative;
  }
  .post-modal-close{
    position:absolute; top:18px; right:18px; width:36px; height:36px; border-radius:50%;
    background:var(--tinta); color:var(--hueso); font-size:16px; display:flex; align-items:center; justify-content:center;
  }
  .post-modal-body img{ width:100%; border-radius:16px; margin-bottom:24px; aspect-ratio:16/9; object-fit:cover; }
  .post-modal-body .post-cat{ font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--nopal); }
  .post-modal-body h2{ font-size:clamp(26px,3.4vw,38px); margin:10px 0 6px; }
  .post-modal-body .post-date{ font-size:13px; color:#8A8072; margin-bottom:22px; display:block; }
  .post-modal-body p{ font-size:15px; line-height:1.7; color:#3A362F; margin:0 0 16px; }


  /* ---------- BOOK ---------- */
  .book-section{ background:var(--tinta); color:var(--hueso); border-radius:32px; }
  .book-section .wrap{ padding-top:76px; padding-bottom:76px; }
  .book-form{ display:grid; grid-template-columns:repeat(3,1fr) auto; gap:2px; background:rgba(244,239,228,0.16); margin-top:36px; border-radius:20px; overflow:hidden; }
  @media (max-width:800px){ .book-form{ grid-template-columns:1fr 1fr; } }
  .book-field{ background:#211E19; padding:18px 20px; }
  .book-field label{ display:block; font-size:11px; color:#A79C8A; margin-bottom:6px; font-weight:600; }
  .book-field input, .book-field select{ background:transparent; border:none; color:var(--hueso); font-size:15px; width:100%; font-family:inherit; }
  .book-submit{ background:var(--magenta); color:var(--hueso); padding:18px 32px; font-size:14px; font-weight:700; }
  @media (max-width:800px){ .book-submit{ grid-column:1/-1; border-radius:0 0 20px 20px; } }
  .book-note{ font-size:12px; color:#8A8072; margin-top:14px; min-height:16px; }
  .book-note.error{ color:var(--chile); font-weight:600; }

  footer{ padding:60px 0 40px; font-size:13px; color:#4A453D; }
  .foot-grid{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:24px; }
  .foot-cols{ display:flex; gap:52px; flex-wrap:wrap; }
  .foot-cols div{ display:flex; flex-direction:column; gap:8px; }
  .foot-cols a:hover{ color:var(--tinta); }

  @media (prefers-reduced-motion: reduce){ *{ animation:none !important; transition:none !important; } .reveal{ opacity:1; transform:none; } }
  :focus-visible{ outline:3px solid var(--acento); outline-offset:2px; }

/* ==========================================================
   HERO — imagen de fondo revelada por el cursor
   Capas: <img> real (fuente para el canvas) -> <canvas> "cortina"
   sólida rosa mexicano que se perfora con trazos gruesos al
   mover el cursor, y se regenera sola cuando el cursor se detiene.
   ========================================================== */
.hero{ background:var(--tinta); } /* fallback antes de que cargue JS */
.hero-media{
  position:absolute; inset:0; z-index:0; overflow:hidden;
}
.hero-media img#heroPhoto{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  object-position:60% 50%;
  /* imagen de baja calidad (LQIP) inline vía background, ver HTML */
}
.hero-media canvas#heroReveal{
  position:absolute; inset:0; width:100%; height:100%;
  display:block; touch-action:none;
}
/* Si JS no corre o el usuario prefiere menos movimiento: fondo sólido, sin canvas */
.no-js .hero-media canvas#heroReveal,
.reduced-motion .hero-media canvas#heroReveal{ display:none; }
.no-js .hero-media img#heroPhoto,
.reduced-motion .hero-media img#heroPhoto{ opacity:.28; }

@media (prefers-reduced-motion: reduce){
  .hero-media canvas#heroReveal{ display:none; }
  .hero-media img#heroPhoto{ opacity:.3; }
}

.house-card{ position:relative; overflow:hidden; }
.house-photo{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  opacity:0; transition:opacity .45s ease; z-index:0;
}
/* Por defecto el bloque es color sólido; al hover se revela la foto real
   por completo, con un velo oscuro para que el texto blanco siga legible. */
.house-card:hover .house-photo.loaded{ opacity:1; }
.house-card::after{
  content:""; position:absolute; inset:0; z-index:0;
  background:linear-gradient(180deg, rgba(23,21,18,0) 30%, rgba(23,21,18,.65) 100%);
  opacity:0; transition:opacity .45s ease; pointer-events:none;
}
.house-card:hover::after{ opacity:1; }
.house-card > *:not(img){ position:relative; z-index:1; }
@media (hover:none){
  /* dispositivos táctiles: sin hover real, dejamos el bloque de color siempre */
  .house-card:hover .house-photo.loaded,
  .house-card:hover::after{ opacity:0; }
}
