/* =============================================================
   BAR CARMEN · Estilos
   Mobile-first. Cambia la paleta y tipografías en :root.
   ============================================================= */

:root {
  /* Paleta (contraste AA verificado sobre los fondos donde se usa) */
  --carmin: #8E1B2C;        /* rojo carmín: CTAs y acentos */
  --carmin-dark: #6E1221;
  --crema: #FFF6E9;         /* fondo cálido */
  --crema-2: #F6E8D3;       /* fondo de secciones alternas */
  --cafe: #3B2418;          /* texto principal y fondos oscuros */
  --cafe-2: #5C3F30;        /* texto secundario */
  --mostaza: #E0A526;       /* acento (sobre fondos oscuros) */
  --mostaza-dark: #8A5F00;  /* mostaza legible sobre crema */
  --blanco: #FFFFFF;

  /* Tipografía */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Formas y espaciado */
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px -12px rgba(59, 36, 24, .35);
  --shadow-sm: 0 4px 14px -6px rgba(59, 36, 24, .25);
  --header-h: 64px;
  --gutter: 16px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Reset básico ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--cafe);
  background: var(--crema);
  padding-bottom: 76px; /* hueco para la barra flotante en móvil */
}
img { max-width: 100%; display: block; height: auto; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 6vw, 3rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--carmin); }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; margin: 0; }
:focus-visible { outline: 3px solid var(--mostaza); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--cafe-2); font-size: .95rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--cafe); color: var(--crema); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 8px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .75em 1.4em;
  font: 700 1rem/1.1 var(--font-body);
  border: 2px solid transparent; border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }
.btn--lg { min-height: 56px; font-size: 1.075rem; padding-inline: 1.7em; }
.btn--block { width: 100%; }
.btn--primary { background: var(--carmin); color: var(--blanco); }
.btn--primary:hover { background: var(--carmin-dark); }
.btn--ghost { background: rgba(255,255,255,.08); color: var(--crema); border-color: rgba(255,246,233,.7); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: rgba(255,255,255,.18); }
.btn--ghost-dark { background: transparent; color: var(--cafe); border-color: var(--cafe); }
.btn--cream { background: var(--crema); color: var(--carmin); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  background: rgba(255, 246, 233, .92); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgba(59,36,24,.08);
  transition: box-shadow .3s;
}
.header.is-scrolled { box-shadow: var(--shadow-sm); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cafe); }
.logo__mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  background: var(--carmin); transform: rotate(-4deg);
}
.logo__mark svg { width: 28px; height: 28px; }
.logo__text { font: 800 1.35rem/1 var(--font-display); }
.logo--light { color: var(--crema); }

.burger { width: 48px; height: 48px; display: grid; place-content: center; gap: 5px; background: none; border: 0; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2.5px; background: var(--cafe); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Menú móvil desplegable */
.nav {
  position: fixed; inset: var(--header-h) 0 auto; background: var(--crema);
  padding: 8px var(--gutter) 24px; box-shadow: var(--shadow);
  transform: translateY(-120%); visibility: hidden;
  transition: transform .35s var(--ease), visibility .35s;
}
.nav.is-open { transform: none; visibility: visible; }
.nav__list { list-style: none; margin: 0 0 16px; padding: 0; }
.nav__list a { display: block; padding: 14px 4px; font-weight: 700; font-size: 1.15rem; color: var(--cafe); text-decoration: none; border-bottom: 1px solid rgba(59,36,24,.1); }
.nav__cta { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 40px) 0 32px; color: var(--crema);
}
.hero__bg, .hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(40,20,12,.35) 0%, rgba(40,20,12,.55) 40%, rgba(40,20,12,.92) 100%);
}
.hero__kicker {
  display: inline-block; margin-bottom: 14px; padding: 6px 12px; border-radius: 999px;
  background: var(--mostaza); color: var(--cafe); font-weight: 700; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase;
}
.hero__title { font-size: clamp(2.4rem, 10vw, 4.6rem); font-weight: 800; max-width: 14ch; margin-bottom: .35em; }
.hero__title em { font-style: italic; color: var(--mostaza); }
.hero__subtitle { font-size: 1.15rem; max-width: 46ch; opacity: .95; }
.hero__ctas { display: flex; flex-direction: column; gap: 12px; margin: 24px 0; }
.hero__strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
  padding: 12px 16px; border-radius: var(--radius);
  background: rgba(255,246,233,.12); border: 1px solid rgba(255,246,233,.2); backdrop-filter: blur(6px);
  font-size: .95rem;
}
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.status__dot { width: 10px; height: 10px; border-radius: 50%; background: #aaa; }
.status.is-open .status__dot { background: #3DDC84; box-shadow: 0 0 0 0 rgba(61,220,132,.7); animation: pulse 2s infinite; }
.status.is-closed .status__dot { background: #FF7A6B; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }

/* ---------- Secciones ---------- */
.section { padding: 72px 0; }
.section--cream { background: var(--crema-2); }
.section__head { max-width: 640px; margin-bottom: 36px; }
.section__lead { font-size: 1.1rem; color: var(--cafe-2); }
.section__cta { text-align: center; margin-top: 40px; }
.section__cta .muted { margin-top: 12px; }
.eyebrow { font-weight: 700; color: var(--mostaza-dark); text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; margin-bottom: .6em; }
.eyebrow--light { color: var(--mostaza); }

/* ---------- Almuerzo del día ---------- */
.deal {
  position: relative; display: grid; gap: 20px;
  padding: 28px 22px; margin-bottom: 36px; border-radius: var(--radius-lg);
  background: var(--cafe); color: var(--crema); box-shadow: var(--shadow);
  background-image: radial-gradient(circle at 100% 0%, rgba(224,165,38,.25), transparent 50%);
}
.deal__badge {
  position: absolute; top: -14px; right: 18px; padding: 10px 14px; border-radius: 12px;
  background: var(--mostaza); color: var(--cafe); font-weight: 800; font-size: .8rem; line-height: 1.1; text-align: center; text-transform: uppercase;
  transform: rotate(4deg);
}
.deal h3 { font-size: 1.6rem; }
.deal__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.deal__list li { display: flex; gap: 10px; align-items: baseline; }
.deal__price { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 18px; border-top: 1px dashed rgba(255,246,233,.3); }
.deal__amount { font: 800 3.6rem/1 var(--font-display); color: var(--mostaza); }
.deal__amount small { font-size: .5em; margin-left: 4px; }
.deal__from { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; color: var(--crema); }
.deal__loyalty { margin: 18px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(224,165,38,.15); border: 1px solid rgba(224,165,38,.4); }
.deal__note { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; margin-bottom: 8px; }

/* ---------- Tarjetas ---------- */
.cards { display: grid; gap: 22px; }
.card {
  background: var(--blanco); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--crema-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
/* La foto de la vitrina lleva texto arriba y abajo: se amplía para mostrar solo la vitrina */
.card__media--vitrina img { object-position: 50% 51%; transform: scale(1.75); }
.card:hover .card__media--vitrina img { transform: scale(1.82); }
/* La tortilla sale de la misma foto de la vitrina, ampliada sobre ella */
.card__media--tortilla img { transform-origin: 46% 50%; transform: scale(3.2); }
.card:hover .card__media--tortilla img { transform: scale(3.35); }
.card__body { padding: 20px 20px 22px; }
.card__body p { color: var(--cafe-2); margin-bottom: .7em; }
.card__ing { font-size: .88rem; font-weight: 500; color: var(--mostaza-dark) !important; margin: 0 !important; }

.tag { position: absolute; top: 12px; left: 12px; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: .8rem; box-shadow: var(--shadow-sm); }
.tag--hot { background: var(--carmin); color: var(--blanco); }
.tag--big { background: var(--mostaza); color: var(--cafe); }
.tag--veg { background: #2E6B3A; color: var(--blanco); }

/* Fallback si una imagen no carga */
.img-fallback { display: grid; place-items: center; height: 100%; min-height: 180px; font-size: 4rem; background: var(--cafe); background-image: radial-gradient(circle at 30% 30%, rgba(224,165,38,.35), transparent 60%); }

/* ---------- Bebidas ---------- */
.section--coffee { background: var(--cafe); color: var(--crema); }
.drinks { display: grid; gap: 28px; }
.drinks__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.drinks__list li {
  display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: var(--radius);
  background: rgba(255,246,233,.07); border: 1px solid rgba(255,246,233,.14); font-weight: 700;
  transition: background .2s, transform .2s var(--ease);
}
.drinks__list li:hover { background: rgba(224,165,38,.18); transform: translateY(-2px); }
.drinks__list span { font-size: 1.5rem; }

/* ---------- Ventajas ---------- */
.perks { display: grid; gap: 18px; }
.perk { padding: 24px; border-radius: var(--radius-lg); background: var(--blanco); box-shadow: var(--shadow-sm); }
.perk p { color: var(--cafe-2); margin: 0; }
.perk__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--carmin); margin-bottom: 14px; transform: rotate(-3deg); transition: transform .3s var(--ease); }
.perk:hover .perk__icon { transform: rotate(3deg) scale(1.05); }
.perk__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--crema); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Pasos ---------- */
.steps { display: grid; gap: 14px; margin-bottom: 40px; counter-reset: none; }
.step { position: relative; padding: 22px 22px 22px 84px; border-radius: var(--radius-lg); background: var(--crema); border: 2px dashed rgba(142,27,44,.25); }
.step h3 { margin-bottom: .2em; }
.step p { margin: 0; color: var(--cafe-2); }
.step__n { position: absolute; left: 20px; top: 20px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--carmin); color: var(--crema); font: 800 1.4rem/1 var(--font-display); }

/* ---------- Bloque de reserva por teléfono ---------- */
.callbox { max-width: 620px; margin-inline: auto; padding: 32px 22px; text-align: center; background: var(--blanco); border-radius: var(--radius-lg); box-shadow: var(--shadow); border-top: 6px solid var(--carmin); }
.callbox__eyebrow { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; color: var(--mostaza-dark); margin-bottom: .4em; }
.callbox__number { display: block; font: 800 clamp(2.4rem, 11vw, 3.6rem)/1.1 var(--font-display); color: var(--carmin); text-decoration: none; letter-spacing: -.01em; }
.callbox__number:hover { color: var(--carmin-dark); }
.callbox__alt { color: var(--cafe-2); margin: .4em 0 1.2em; }
.callbox__alt a { font-weight: 700; }
.callbox__tip { margin: 1.4em auto 0; max-width: 44ch; color: var(--cafe-2); font-size: .98rem; }

/* ---------- Opiniones ---------- */
.reviews { display: grid; gap: 18px; }
.review { margin: 0; padding: 24px; border-radius: var(--radius-lg); background: var(--blanco); box-shadow: var(--shadow-sm); border-top: 5px solid var(--mostaza); }
.stars { color: var(--mostaza-dark); font-size: 1.2rem; letter-spacing: 2px; margin-bottom: 10px; }
.review blockquote { margin: 0 0 14px; font-size: 1.05rem; }
.review figcaption { color: var(--cafe-2); font-size: .95rem; }
.reviews__more { text-align: center; margin-top: 28px; }
.link-arrow { font-weight: 700; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.link-arrow span { display: inline-block; transition: transform .2s; }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- Dónde estamos ---------- */
.location { display: grid; gap: 28px; }
.location__address { font-style: normal; font-size: 1.1rem; margin-bottom: 1em; }
.hours { width: 100%; border-collapse: collapse; margin: 8px 0 24px; background: var(--crema); border-radius: var(--radius); overflow: hidden; }
.hours th, .hours td { padding: 10px 14px; text-align: left; border-bottom: 1px solid rgba(59,36,24,.08); }
.hours th { font-weight: 500; }
.hours td { text-align: right; font-weight: 700; }
.hours tr.is-today { background: var(--carmin); color: var(--blanco); }
.location__phones a { font-weight: 700; }
.location__contact { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.location__contact .btn { flex: 1 1 auto; }
.location__map { min-height: 340px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--crema); }
.map-consent { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 100%; min-height: 340px; padding: 24px; text-align: center;
  background: var(--crema); background-image: radial-gradient(circle at 50% 35%, rgba(142,27,44,.10), transparent 60%); }
.map-consent__pin { font-size: 2.6rem; }
.map-consent__note { max-width: 36ch; font-size: .92rem; color: var(--cafe-2); }
.location__map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--cafe); transition: background .2s, transform .2s; }
.social a:hover { background: var(--carmin); transform: translateY(-2px); }
.social svg { width: 22px; height: 22px; fill: none; stroke: var(--crema); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- CTA final ---------- */
.final-cta {
  padding: 80px 0; text-align: center; color: var(--crema);
  background: var(--carmin);
  background-image: radial-gradient(circle at 15% 20%, rgba(224,165,38,.35), transparent 40%), radial-gradient(circle at 85% 90%, rgba(59,36,24,.5), transparent 45%);
}
.final-cta h2 { font-size: clamp(2.2rem, 8vw, 3.6rem); }
.final-cta p { font-size: 1.15rem; max-width: 40ch; margin: 0 auto 28px; }

/* ---------- Footer ---------- */
.footer { background: var(--cafe); color: var(--crema); padding: 48px 0 24px; }
.footer__inner { display: grid; gap: 28px; }
.footer a { color: var(--crema); }
.footer__h { font: 700 .85rem var(--font-body); text-transform: uppercase; letter-spacing: .08em; color: var(--mostaza); margin-bottom: 10px; }
.footer__tag { margin-top: 12px; opacity: .85; }
.footer__links { display: grid; gap: 6px; }
.footer__copy { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,246,233,.15); font-size: .88rem; opacity: .8; }

/* ---------- Barra flotante (móvil) ---------- */
.floatbar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
  display: flex; gap: 8px; padding: 8px; border-radius: 999px;
  background: var(--cafe); box-shadow: 0 10px 30px rgba(0,0,0,.35);
  transform: translateY(150%); transition: transform .35s var(--ease);
}
.floatbar.is-visible { transform: none; }
.floatbar__main { flex: 1; min-height: 50px; }

/* ---------- Animaciones de entrada ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

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

/* =============================================================
   BREAKPOINTS (mobile-first)
   ============================================================= */
@media (min-width: 600px) {
  :root { --gutter: 24px; }
  .hero__ctas { flex-direction: row; flex-wrap: wrap; }
  .cards, .reviews { grid-template-columns: repeat(2, 1fr); }
  .perks { grid-template-columns: repeat(2, 1fr); }
  .drinks__list { grid-template-columns: repeat(3, 1fr); }
  .callbox { padding: 44px 40px; }
  .deal { padding: 36px; }
}

@media (min-width: 900px) {
  :root { --header-h: 76px; }
  body { padding-bottom: 0; }
  .floatbar { display: none; }
  .burger { display: none; }
  .nav { position: static; transform: none; visibility: visible; background: none; box-shadow: none; padding: 0; display: flex; align-items: center; gap: 28px; }
  .nav__list { display: flex; gap: 26px; margin: 0; }
  .nav__list a { padding: 6px 0; border: 0; font-size: 1rem; position: relative; }
  .nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--carmin); transform: scaleX(0); transition: transform .25s var(--ease); }
  .nav__list a:hover::after { transform: scaleX(1); }
  .nav__cta { width: auto; }

  .hero { align-items: center; padding-bottom: 60px; }
  .hero::after { background: linear-gradient(90deg, rgba(40,20,12,.92) 0%, rgba(40,20,12,.7) 45%, rgba(40,20,12,.15) 100%); }
  .section { padding: 104px 0; }

  .deal { grid-template-columns: 1.6fr 1fr; align-items: center; padding: 44px 48px; }
  .deal__price { padding: 0 0 0 36px; border-top: 0; border-left: 1px dashed rgba(255,246,233,.3); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .perks { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .reviews { grid-template-columns: repeat(3, 1fr); }
  .drinks { grid-template-columns: 1fr 1.3fr; align-items: center; }
  .location { grid-template-columns: 1fr 1.1fr; align-items: stretch; }
  .footer__inner { grid-template-columns: 2fr 1.5fr 1fr; }
}

/* =============================================================
   PÁGINAS LEGALES (aviso-legal.html, privacidad.html, cookies.html)
   ============================================================= */
.legal-page { padding-bottom: 0; }
.legal { max-width: 760px; padding-top: calc(var(--header-h) + 40px); padding-bottom: 72px; }
.legal h1 { font-size: clamp(2rem, 7vw, 2.8rem); font-weight: 800; }
.legal h2 { font-size: 1.4rem; margin-top: 2em; }
.legal h3 { font-size: 1.1rem; margin-top: 1.4em; }
.legal p, .legal li { color: var(--cafe-2); }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }
.legal__updated { font-size: .9rem; }
.legal__back { display: inline-block; margin-bottom: 24px; font-weight: 700; text-decoration: none; }
.legal table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .95rem; background: var(--blanco); border-radius: var(--radius); overflow: hidden; }
.legal th, .legal td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(59,36,24,.1); }
.legal th { background: var(--crema-2); }
.legal .table-wrap { overflow-x: auto; }
.legal .placeholder { background: #FFE9A8; color: var(--cafe); padding: 0 4px; border-radius: 4px; font-weight: 700; }
.legal-header { position: fixed; }
