/* Serrano Café — "Latido": el corazón de Colonia */
:root {
  --ink: #1E2620;
  --ink-2: #2A352D;
  --sage: #7E917A;
  --sage-l: #DDE4D7;
  --brick: #9E4128;
  --amber: #E9A53F;
  --neon: #FFEDE8;
  --white: #FBFCF9;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Outfit", system-ui, sans-serif;
  --gut: clamp(16px, 4vw, 56px);
}
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-padding-top: 76px; }
body { margin: 0; background: var(--sage-l); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--amber); color: var(--ink); padding: 10px 14px; }
.skip:focus { top: 12px; }
.wrap { width: min(1240px, 100% - 2 * var(--gut)); margin-inline: auto; }
.kicker { font: 500 .78rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--brick); margin: 0 0 18px; }
.kicker--amber { color: var(--amber); }
.h2 { font: 400 clamp(2.4rem, 5.6vw, 5rem)/1 var(--serif); font-variation-settings: "SOFT" 100, "opsz" 144; letter-spacing: -.02em; margin: 0 0 22px; }
.h2 em { font-style: italic; color: var(--brick); }

.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border-radius: 999px; font: 500 .98rem/1 var(--sans); text-decoration: none; border: 1.5px solid transparent; transition: transform .25s ease, background .25s ease, color .25s ease; }
.pill:hover { transform: translateY(-2px); }
.pill--amber { background: var(--amber); color: var(--ink); }
.pill--amber:hover { background: #F3BC66; }
.pill--line { border-color: currentColor; }
.pill--line:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

/* Barra */
.bar { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px var(--gut); color: var(--white); transition: background .3s ease, color .3s ease; }
.bar.is-solid { background: rgba(30, 38, 32, .9); backdrop-filter: blur(10px); }
.bar__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 500 1.15rem/1 var(--serif); }
.bar__brand img { border-radius: 50%; }
.bar__nav { display: flex; gap: 28px; font-size: .9rem; }
.bar__nav a { text-decoration: none; opacity: .85; }
.bar__nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.bar__cta { min-height: 42px; padding: 0 18px; font-size: .88rem; }

/* HERO */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; background: var(--ink); color: var(--white); isolation: isolate; }
.hero__photo { position: absolute; inset: 0; animation: kb 18s ease-in-out infinite alternate; }
@keyframes kb { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.12) translate(-2%, -1.5%); } }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.hero__knock { position: absolute; inset: 0; background: #27322A; mix-blend-mode: multiply; display: grid; place-items: center; transform-origin: 50% 46%; }
.hero__knock span { font: 800 clamp(3rem, 18vw, 19rem)/.8 var(--serif); font-variation-settings: "SOFT" 30, "opsz" 144; letter-spacing: -.04em; color: #fff; transform: translateY(-4%); }
.hero__content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; padding: 92px var(--gut) clamp(28px, 4vw, 48px); pointer-events: none; }
.hero__content a { pointer-events: auto; }
.hero__loc { margin: 0; text-align: center; font-size: .82rem; letter-spacing: .28em; text-transform: uppercase; color: var(--sage-l); }
.hero__spacer { flex: 1; }
.hero__bottom { display: grid; justify-items: center; gap: 16px; text-align: center; }
.hero__tag { display: flex; align-items: center; gap: 16px; margin: 0; font: 400 clamp(1.5rem, 3vw, 2.6rem)/1.1 var(--serif); font-variation-settings: "SOFT" 100; }
.hero__tag em { color: var(--neon); text-shadow: 0 0 18px rgba(255, 120, 110, .7); }
.neon { width: clamp(38px, 4vw, 56px); flex: none; fill: none; stroke: var(--neon); stroke-width: 3; filter: drop-shadow(0 0 6px rgba(255, 140, 130, .9)) drop-shadow(0 0 14px rgba(255, 90, 80, .6)); animation: flicker 4s infinite; }
@keyframes flicker { 0%, 18%, 22%, 62%, 64%, 100% { opacity: 1; } 20%, 63% { opacity: .45; } }
.hero__status { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: .95rem; padding: 8px 16px; border-radius: 999px; background: rgba(30, 38, 32, .6); border: 1px solid rgba(221, 228, 215, .25); }
.beat { width: 10px; height: 10px; border-radius: 50%; background: #9AA59A; }
.is-open .beat { background: #FF8A7A; animation: beat 1.1s infinite; }
@keyframes beat { 0%, 40%, 100% { transform: scale(1); } 15% { transform: scale(1.5); } 28% { transform: scale(1.15); } }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero .pill--line { color: var(--white); }

/* PUERTA */
.door { padding: clamp(80px, 11vw, 150px) 0; }
.door__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(30px, 7vw, 120px); align-items: center; }
.door__img { margin: 0; border-radius: 999px 999px 0 0; overflow: hidden; aspect-ratio: .78; box-shadow: 0 40px 60px -40px rgba(30, 38, 32, .6); }
.door__img img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 60%; }
.door__text p:not(.kicker) { max-width: 46ch; font-size: 1.08rem; }
.facts { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid rgba(30, 38, 32, .25); }
.facts li { flex: 1 1 140px; padding: 18px 18px 0 0; display: grid; }
.facts b { font: 500 clamp(1.6rem, 2.6vw, 2.2rem)/1.1 var(--serif); }
.facts span { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: #4B5A4C; }

/* FRASE */
.phrase { background: var(--brick); color: var(--white); padding: clamp(90px, 13vw, 180px) var(--gut); text-align: center; }
.phrase__txt { margin: 0 auto; max-width: 14ch; font: 400 clamp(3rem, 9vw, 9rem)/.95 var(--serif); font-variation-settings: "SOFT" 100, "opsz" 144; letter-spacing: -.03em; }
.phrase__txt span { display: inline-block; }
.phrase__txt em { color: #FFD9A0; }

/* RINCONES */
.nooks { padding: clamp(80px, 11vw, 150px) 0; }
.nooks__head { margin-bottom: 40px; }
.nooks__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 64px; gap: 18px; }
.nook { margin: 0; position: relative; overflow: hidden; border-radius: 4px; background: var(--ink); }
.nook img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.nook:hover img { transform: scale(1.04); }
.nook figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 50px 20px 18px; color: var(--white); background: linear-gradient(180deg, transparent, rgba(20, 26, 22, .85)); display: grid; gap: 2px; }
.nook figcaption b { font: 500 1.5rem/1.1 var(--serif); }
.nook figcaption span { font-size: .9rem; opacity: .9; }
.nook--terraza { grid-column: 1 / span 4; grid-row: 1 / span 10; }
.nook--terraza img { object-position: 50% 40%; }
.nook--deck { grid-column: 5 / span 5; grid-row: 1 / span 6; }
.nook--deck img { object-position: 50% 70%; }
.nook--salon { grid-column: 10 / span 3; grid-row: 1 / span 10; }
.nook--estufa { grid-column: 5 / span 2; grid-row: 7 / span 4; }
.nook--estufa figcaption span { display: none; }
.nook--ladrillo { grid-column: 7 / span 3; grid-row: 7 / span 4; }
.nook--ladrillo img { object-position: 50% 30%; }

/* BARRA */
.counter { background: var(--ink); color: var(--sage-l); padding: clamp(80px, 11vw, 150px) 0; overflow: hidden; }
.counter .h2 { color: var(--white); }
.counter .h2 em { color: var(--amber); }
.counter__head p:last-child { max-width: 48ch; }
.reel { margin-top: 40px; overflow-x: auto; padding-bottom: 40px; -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.reel__track { display: flex; gap: 18px; width: max-content; padding-inline: var(--gut); }
.reel.is-loop { overflow: hidden; }
.reel.is-loop .reel__track { animation: reel 46s linear infinite; }
.reel.is-loop:hover .reel__track { animation-play-state: paused; }
.reel figure { margin: 0; width: clamp(200px, 20vw, 290px); aspect-ratio: .72; border-radius: 160px 160px 6px 6px; overflow: hidden; flex: none; }
.reel figure:nth-child(even) { border-radius: 6px; transform: translateY(30px); }
.reel img { width: 100%; height: 100%; object-fit: cover; }
@keyframes reel { to { transform: translateX(-50%); } }
.counter__cta { margin-top: 30px; }

/* LATIDO */
.pulse { background: var(--sage-l); padding: clamp(80px, 11vw, 150px) 0; }
.pulse__t { max-width: 16ch; }
.ecg { position: relative; margin: 20px 0 30px; background: var(--ink); color: var(--white); border-radius: 18px; padding: clamp(20px, 3vw, 36px); overflow: hidden; }
.ecg::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(221, 228, 215, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(221, 228, 215, .07) 1px, transparent 1px); background-size: 30px 30px; }
.ecg svg { position: relative; width: 100%; height: clamp(120px, 16vw, 220px); }
.ecg path { fill: none; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ecg__flat { stroke: rgba(221, 228, 215, .4); }
.ecg__line { stroke: rgba(255, 138, 122, .45); }
.ecg__spark { stroke: #FFB3A6; filter: drop-shadow(0 0 6px rgba(255, 120, 110, .9)); stroke-dasharray: 300 2600; animation: trace 2.6s linear infinite; }
@keyframes trace { from { stroke-dashoffset: 300; } to { stroke-dashoffset: -2600; } }
.ecg:not(.is-open) .ecg__line, .ecg:not(.is-open) .ecg__spark { display: none; }
.ecg.is-open .ecg__flat { stroke: rgba(221, 228, 215, .12); }
.ecg__read { position: relative; margin: 10px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.ecg__read b { font: 500 clamp(1.8rem, 3.6vw, 3rem)/1 var(--serif); color: var(--neon); }
.ecg__read span { color: var(--sage-l); }
.week { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.week li { border: 1.5px solid rgba(30, 38, 32, .25); border-radius: 12px; padding: 14px 10px; display: grid; gap: 4px; text-align: center; }
.week b { font: 500 1.3rem/1 var(--serif); }
.week span { font-size: .85rem; }
.week .is-off { background: repeating-linear-gradient(135deg, transparent 0 8px, rgba(158, 65, 40, .1) 8px 10px); color: var(--brick); }
.week .is-today { background: var(--ink); color: var(--white); border-color: var(--ink); }
.week .is-today.is-off { background: var(--brick); border-color: var(--brick); color: var(--white); }
.pulse__note { margin: 22px 0 0; font: italic 400 1.3rem/1.3 var(--serif); }

/* VISITA */
.visit { position: relative; background: var(--ink); color: var(--white); padding: clamp(90px, 12vw, 160px) 0; overflow: hidden; }
.visit__photo { position: absolute; inset: 0; opacity: .28; }
.visit__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; filter: grayscale(.3) blur(2px); }
.visit::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30, 38, 32, .95) 30%, rgba(30, 38, 32, .6)); }
.visit__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(30px, 6vw, 90px); align-items: end; }
.visit__addr { font: 400 clamp(3.2rem, 10vw, 9.5rem)/.9 var(--serif); font-variation-settings: "SOFT" 100, "opsz" 144; letter-spacing: -.035em; margin: 0; }
.visit__addr em { color: var(--amber); }
.visit__city { margin: 14px 0 0; font-size: 1.1rem; color: var(--sage-l); }
.visit__card { background: rgba(251, 252, 249, .06); border: 1px solid rgba(221, 228, 215, .2); border-radius: 18px; padding: 26px; backdrop-filter: blur(6px); }
.visit__card dl { margin: 0 0 22px; display: grid; gap: 14px; }
.visit__card dt { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--amber); }
.visit__card dd { margin: 2px 0 0; font-size: 1.05rem; }
.visit__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.visit .pill--line { color: var(--white); }

.foot { background: #151B16; color: var(--sage-l); padding: 22px 0; font-size: .88rem; }
.foot__wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.mbar { display: none; }
.js .reveal { opacity: 0; transform: translateY(30px); }

@media (max-width: 900px) {
  body { padding-bottom: 76px; font-size: 16px; }
  .bar__nav, .bar__cta { display: none; }
  .hero { min-height: 600px; height: 92svh; }
  .hero__knock span { font-size: 17.5vw; }
  .hero__tag { flex-direction: column; gap: 10px; }
  .hero__ctas { display: grid; width: 100%; }
  .door__grid { grid-template-columns: 1fr; }
  .door__img { max-width: 380px; }
  .nooks__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 52px; gap: 12px; }
  .nook--terraza { grid-column: 1 / span 3; grid-row: 1 / span 8; }
  .nook--salon { grid-column: 4 / span 3; grid-row: 1 / span 8; }
  .nook--deck { grid-column: 1 / -1; grid-row: 9 / span 5; }
  .nook--ladrillo { grid-column: 1 / span 4; grid-row: 14 / span 5; }
  .nook--estufa { grid-column: 5 / span 2; grid-row: 14 / span 5; }
  .nook figcaption { padding: 40px 12px 12px; }
  .nook figcaption b { font-size: 1.15rem; }
  .nook figcaption span { display: none; }
  .week { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
  .week li { padding: 10px 2px; border-radius: 8px; }
  .week b { font-size: 1rem; }
  .week span { font-size: .68rem; }
  .visit__grid { grid-template-columns: 1fr; }
  .mbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 60; }
  .mbar a { min-height: 56px; display: flex; align-items: center; justify-content: center; border-radius: 999px; text-decoration: none; font-weight: 600; box-shadow: 0 10px 26px -8px rgba(0, 0, 0, .55); }
  .mbar__a { background: var(--amber); color: var(--ink); }
  .mbar__b { background: var(--ink); color: var(--white); }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  .reel__track { animation: none; }
  .reel { overflow-x: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ecg__spark { display: none; }
}
