/* Café•Lounge Caché — estilos */

@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-normal.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-normal.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }

:root {
  --ink: #0e0a0b;
  --ink-2: #191214;
  --cream: #f6f0e7;
  --paper: #fffaf3;
  --text: #f6f0e7;
  --muted: #b5a9a6;
  --accent: #e20a4d;
  --accent-dark: #b3063c;
  --line: rgba(246, 240, 231, .14);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --radius: 22px;
  --header-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; font: 400 1.02rem/1.7 var(--sans); color: var(--text); background: var(--ink); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; height: auto; }
figure, blockquote, dl, dd { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -.015em; margin: 0; }
h1 { font-size: clamp(2.9rem, 6.4vw, 5.6rem); }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.7rem); }
h3 { font-size: 1.55rem; }
em { font-style: italic; font-weight: 300; color: var(--accent); }
p { margin: 0; }

.container { width: min(1200px, 90%); margin-inline: auto; }
.section { padding: clamp(80px, 10vw, 140px) 0; }
.light { background: var(--cream); color: var(--ink); }
.icon { width: 18px; height: 18px; flex: none; fill: currentColor; }

.eyebrow { display: inline-flex; align-items: center; gap: .7rem; margin-bottom: 1rem; font-size: .74rem; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: 1rem 1.7rem; border: 1px solid transparent; border-radius: 999px; font-weight: 700; font-size: .93rem; line-height: 1.2; transition: transform .25s, background .25s, border-color .25s, box-shadow .25s; }
.btn:hover { transform: translateY(-3px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); box-shadow: 0 14px 30px -10px rgba(226, 10, 77, .65); }
.btn--line { border-color: rgba(246, 240, 231, .35); }
.btn--line:hover { border-color: var(--cream); background: rgba(246, 240, 231, .06); }
.btn--small { padding: .7rem 1.3rem; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Cabecera y logo */
.header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.header.scrolled, .header.menu-open { background: rgba(14, 10, 11, .94); border-color: var(--line); }
.header.scrolled:not(.menu-open) { backdrop-filter: blur(14px); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .85rem; }
.logo__mark { width: 58px; height: auto; transition: transform .6s; }
.logo:hover .logo__mark { transform: rotate(90deg); }
.logo__type { display: flex; flex-direction: column; gap: 5px; }
.logo__word { width: 100px; }
.logo__sub { font-size: .6rem; font-weight: 700; letter-spacing: .42em; text-transform: uppercase; color: var(--muted); line-height: 1; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav > a:not(.btn) { font-size: .92rem; font-weight: 600; background: linear-gradient(var(--accent), var(--accent)) left bottom / 0 2px no-repeat; transition: background-size .3s; padding-block: .3rem; }
.nav > a:not(.btn):hover { background-size: 100% 2px; }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 10px; background: none; border: 0; }
.nav-toggle span { display: block; height: 2px; background: var(--cream); margin: 7px 0; transition: transform .3s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* Portada */
.hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + 40px) 0 80px; min-height: 100svh; display: flex; align-items: center;
  background: radial-gradient(900px 600px at 78% 40%, rgba(226, 10, 77, .2), transparent 70%), var(--ink); }
.hero__ornament { position: absolute; width: 720px; left: -300px; bottom: -300px; opacity: .08; animation: spin 140s linear infinite; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.hero__text { animation: rise .9s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
.hero h1 { margin: 1.4rem 0; }
.hero h1 em { display: block; }
.hero__lead { max-width: 460px; font-size: 1.12rem; color: var(--muted); margin-bottom: 2.2rem; }
.facts { display: flex; flex-wrap: wrap; gap: 1rem 2.8rem; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.facts dt { font-size: .68rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.facts dd { font-family: var(--serif); font-size: 1.25rem; }

.status { display: inline-flex; align-items: center; gap: .65rem; padding: .45rem 1rem; border: 1px solid var(--line); border-radius: 999px; font-size: .84rem; font-weight: 600; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status.is-open::before { background: #3ddc84; animation: pulse 2s infinite; }
.status.is-closed::before { background: var(--accent); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); } 100% { box-shadow: 0 0 0 10px rgba(61, 220, 132, 0); } }

.hero__visual { position: relative; width: 100%; max-width: 480px; justify-self: end; animation: rise 1.1s .15s ease both; }
.arch { margin-left: auto; width: 82%; aspect-ratio: 3 / 4.3; border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden; border: 1px solid var(--line); }
.arch img, .hero__float img, .hero__round img { width: 100%; height: 100%; object-fit: cover; }
.hero__float { position: absolute; left: 0; bottom: -30px; width: 44%; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; border: 6px solid var(--ink); box-shadow: 0 30px 60px -20px #000; animation: float 7s ease-in-out infinite; }
.hero__round { position: absolute; left: 6%; top: 12%; width: 29%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 6px solid var(--ink); animation: float 7s -3.5s ease-in-out infinite; }
.hero__round img { object-position: 50% 85%; }
@keyframes float { 50% { transform: translateY(-14px); } }

/* Cinta */
.ticker { overflow: hidden; background: var(--accent); color: #fff; padding: 1.1rem 0; }
.ticker__track { display: flex; align-items: center; gap: 2.4rem; width: max-content; animation: ticker 30s linear infinite; }
.ticker span { font: italic 300 1.9rem/1.2 var(--serif); }
.ticker i { width: 10px; height: 10px; background: #fff; transform: rotate(45deg); }
@keyframes ticker { to { transform: translateX(calc(-50% - 1.2rem)); } }

/* Encabezados de sección */
.head { margin-bottom: 3.5rem; }
.head--center { text-align: center; }
.head--split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: end; }

/* Momentos del día */
.moments { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; padding-bottom: 40px; }
.moment { position: relative; overflow: hidden; border-radius: 999px 999px var(--radius) var(--radius); aspect-ratio: 3 / 5; color: #fff; }
.moment:nth-child(even) { top: 40px; }
.moment img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.moment:hover img { transform: scale(1.07); }
.moment div { position: absolute; inset: auto 0 0; padding: 5rem 1.3rem 1.5rem; background: linear-gradient(transparent, rgba(14, 10, 11, .92)); }
.moment span { display: block; margin-bottom: .4rem; font-size: .68rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: #ff7fa6; }

/* Galería */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: 2.2rem; }
.filters button { padding: .6rem 1.3rem; border: 1px solid var(--line); border-radius: 999px; background: none; font-size: .88rem; font-weight: 700; transition: .25s; }
.filters button:hover { border-color: var(--cream); }
.filters button[aria-pressed="true"] { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 290px; grid-auto-flow: dense; gap: 1rem; }
.dish { position: relative; overflow: hidden; padding: 0; border: 0; border-radius: var(--radius); background: var(--ink-2); animation: rise .5s ease both; }
.dish[hidden] { display: none; }
.dish--big { grid-column: span 2; grid-row: span 2; }
.dish--wide { grid-column: span 2; }
.dish img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.dish:hover img { transform: scale(1.08); }
.dish span { position: absolute; inset: auto 0 0; padding: 3.5rem 1.3rem 1.1rem; background: linear-gradient(transparent, rgba(14, 10, 11, .88)); text-align: left; font: 400 1.35rem/1.2 var(--serif); }
.dish--big span { font-size: 2rem; }
.gallery.is-filtered { grid-template-columns: repeat(auto-fit, minmax(240px, 300px)); justify-content: center; }
.gallery.is-filtered .dish { grid-column: auto; grid-row: auto; }
.gallery.is-filtered .dish span { font-size: 1.35rem; }
.note { margin-top: 2rem; text-align: center; font-size: .86rem; color: var(--muted); }

.lightbox { max-width: min(92vw, 900px); padding: 0; border: 0; background: transparent; color: var(--cream); text-align: center; overflow: visible; }
.lightbox::backdrop { background: rgba(14, 10, 11, .93); }
.lightbox img { max-height: 78vh; width: auto; margin-inline: auto; border-radius: var(--radius); }
.lightbox p { margin-top: .9rem; font: italic 300 1.5rem var(--serif); }
.lightbox__close { position: absolute; top: -16px; right: -6px; z-index: 1; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--accent); font-size: 1.6rem; line-height: 1; }

/* Local */
.terrace { position: relative; min-height: 680px; display: flex; align-items: flex-end; padding: 80px 0; }
.terrace > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.terrace .container { position: relative; display: flex; justify-content: flex-end; }
.terrace__card { max-width: 500px; padding: clamp(2rem, 4vw, 3rem); border-radius: var(--radius); background: var(--ink); }
.terrace__card h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.terrace__card p:not(.eyebrow) { margin: 1.2rem 0 1.8rem; color: var(--muted); }

/* Opiniones */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.review { display: flex; flex-direction: column; gap: 1.6rem; padding: 2.2rem 2rem; border-radius: var(--radius); background: var(--paper); box-shadow: 0 30px 60px -40px rgba(60, 20, 30, .35); }
.review::before { content: "“"; height: 40px; font: 400 6rem/1 var(--serif); color: var(--accent); }
.review p { flex: 1; font: 300 1.13rem/1.65 var(--serif); }
.review footer { display: flex; align-items: center; gap: .8rem; font-weight: 800; }
.review footer b { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; font: 400 1.2rem var(--serif); }
.review--accent { background: var(--accent); color: #fff; }
.review--accent::before { color: #fff; }
.review--accent footer b { background: #fff; color: var(--accent); }

/* Visítanos */
.visit { display: grid; grid-template-columns: 1fr 1.15fr; gap: 1.3rem; }
.card { padding: clamp(1.6rem, 4vw, 2.8rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); }
.hours { margin: 1rem 0 2rem; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem .9rem; border-bottom: 1px solid var(--line); color: var(--muted); }
.hours b { color: var(--cream); font-weight: 700; white-space: nowrap; }
.hours li.today { background: var(--accent); border-color: var(--accent); border-radius: 12px; color: #fff; }
.contact { display: grid; gap: 1rem; margin-bottom: 2rem; }
.contact li { display: flex; gap: .9rem; align-items: flex-start; font-weight: 600; }
.contact .icon { margin-top: 5px; color: var(--accent); }
.contact small { display: block; font-weight: 400; color: var(--muted); }
.map { overflow: hidden; min-height: 480px; border-radius: var(--radius); background: var(--ink-2); }
.map iframe { display: block; width: 100%; height: 100%; min-height: 480px; border: 0; }

/* Pie */
.footer { padding: 80px 0 30px; border-top: 1px solid var(--line); text-align: center; }
.footer__brand { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.footer__brand img:first-child { width: 120px; }
.footer__word { width: 170px; }
.social { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin: 2.4rem 0 3rem; }
.social a { display: inline-flex; align-items: center; gap: .65rem; padding: .8rem 1.4rem; border: 1px solid var(--line); border-radius: 999px; font-weight: 700; font-size: .9rem; transition: .25s; }
.social a:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; padding-top: 1.6rem; border-top: 1px solid var(--line); font-size: .84rem; color: var(--muted); }
.footer__bottom a { margin-left: 1.4rem; }
.footer__bottom a:first-child { margin-left: 0; }
.footer__bottom a:hover { color: var(--accent); }

.mobile-bar { display: none; }

/* Animación al hacer scroll (solo con JS) */
.js .reveal { opacity: 0; translate: 0 30px; transition: opacity .8s ease, translate .8s ease; }
.js .reveal.is-visible { opacity: 1; translate: 0 0; }

/* Páginas legales */
.legal { max-width: 820px; padding: calc(var(--header-h) + 50px) 0 90px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: .5rem; }
.legal h2 { font-size: 1.45rem; margin: 2.4rem 0 .8rem; color: var(--accent); }
.legal p, .legal li { color: var(--muted); }
.legal p { margin-bottom: 1rem; }
.legal ul { list-style: disc; padding-left: 1.2rem; }
.legal a { color: var(--accent); text-decoration: underline; }
.legal__updated { font-size: .88rem; }
.table-wrap { overflow-x: auto; }
.legal-table { width: 100%; min-width: 560px; border-collapse: collapse; margin: 1rem 0; font-size: .9rem; }
.legal-table th, .legal-table td { padding: .75rem; border: 1px solid var(--line); text-align: left; vertical-align: top; color: var(--muted); }
.legal-table th { color: var(--cream); background: var(--ink-2); }
.footer--legal { padding: 30px 0; }
.footer--legal .footer__bottom { border: 0; padding: 0; }

/* Adaptación a pantallas */
@media (max-width: 1000px) {
  .hero__grid, .head--split, .visit { grid-template-columns: 1fr; }
  .hero__visual { justify-self: center; margin-bottom: 30px; }
  .moments { grid-template-columns: 1fr 1fr; }
  .reviews { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 250px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch; gap: 0; padding: 0 5% 1.5rem; background: var(--ink); border-bottom: 1px solid var(--line); visibility: hidden; opacity: 0; transition: .25s; }
  .nav.open { visibility: visible; opacity: 1; }
  .nav > a:not(.btn) { padding: 1rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 1.2rem; }
}
@media (max-width: 640px) {
  :root { --header-h: 76px; }
  body { padding-bottom: 66px; }
  .logo__mark { width: 46px; }
  .logo__word { width: 84px; }
  .hero { padding-bottom: 60px; }
  .facts { gap: 1rem 1.8rem; }
  .moments { gap: .8rem; }
  .moment h3 { font-size: 1.15rem; }
  .moment div { padding: 4rem .8rem 1rem; text-align: center; }
  .gallery, .gallery.is-filtered { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; gap: .7rem; }
  .dish--big, .dish--wide { grid-column: span 2; }
  .dish--big { grid-row: span 2; }
  .dish span, .gallery.is-filtered .dish span { font-size: 1.05rem; padding: 2.5rem .8rem .7rem; }
  .terrace { flex-direction: column; min-height: 0; padding: 0; }
  .terrace > img { position: static; height: 300px; }
  .terrace .container { width: 100%; }
  .terrace__card { border-radius: 0; padding: 3rem 5%; }
  .footer__bottom { justify-content: center; }
  .mobile-bar { position: fixed; inset: auto 0 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr; background: var(--ink-2); border-top: 1px solid var(--line); }
  .mobile-bar a { display: flex; justify-content: center; align-items: center; gap: .6rem; height: 66px; font-weight: 800; font-size: .9rem; }
  .mobile-bar a:first-child { background: var(--accent); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; translate: none; }
}
