/* ============================================================
   CAVAMAR — Editorial mediterráneo
   Negro · Marfil · Rojo Cavamar
   Cormorant Garamond (display) + Jost (UI)
   ============================================================ */

:root {
	--negro:        #0C0C0C;
	--negro-2:      #131313;
	--marfil:       #F2EDE3;
	--marfil-60:    rgba(242, 237, 227, .62);
	--marfil-40:    rgba(242, 237, 227, .4);
	--linea:        rgba(242, 237, 227, .14);
	--linea-suave:  rgba(242, 237, 227, .08);
	--rojo:         #C8342A;
	--rojo-hover:   #E04437;

	--serif: 'Cormorant Garamond', Georgia, serif;
	--sans:  'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;

	--topbar-h: 60px;
	--sticky-offset: calc(var(--topbar-h) + 72px);
	--wrap: 1180px;
}

/* ---------- Reset ligero ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--sans);
	font-weight: 300;
	font-size: 1rem;
	line-height: 1.55;
	color: var(--marfil);
	background: var(--negro);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
input, select, button { font: inherit; }
::selection { background: var(--rojo); color: var(--marfil); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }

.skip-link {
	position: absolute; left: -999px; top: 0;
	background: var(--rojo); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 0; }

.eyebrow {
	font-size: .72rem; letter-spacing: .34em; text-transform: uppercase;
	color: var(--rojo); font-weight: 500;
}

/* ---------- Botones ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 15px 32px;
	border: 0; border-radius: 0; cursor: pointer;
	font-family: var(--sans); font-weight: 500; font-size: .85rem; letter-spacing: .18em;
	text-decoration: none; text-transform: uppercase;
	transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-rojo { background: var(--rojo); color: #fff; }
.btn-rojo:hover { background: var(--rojo-hover); }
.btn-ghost {
	background: transparent; color: var(--marfil);
	box-shadow: inset 0 0 0 1px rgba(242,237,227,.45);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--marfil); background: rgba(242,237,227,.06); }
.btn-block { width: 100%; }

/* ---------- Topbar ---------- */
.topbar {
	position: fixed; top: 0; left: 0; right: 0; z-index: 50;
	transition: background .3s ease, border-color .3s ease;
	border-bottom: 1px solid transparent;
}
body.is-scrolled .topbar {
	background: rgba(12, 12, 12, .88);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom-color: var(--linea-suave);
}
.topbar-in {
	max-width: var(--wrap); margin-inline: auto;
	padding: 0 22px;
	min-height: var(--topbar-h);
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.brand { justify-self: center; }
.brand-logo { height: 40px; width: auto; }
.topbar-link {
	font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 400;
	color: var(--marfil); text-decoration: none;
	padding-bottom: 3px;
	border-bottom: 1px solid transparent;
	transition: border-color .2s ease, color .2s ease;
	justify-self: start;
}
.topbar-link:last-child { justify-self: end; }
.topbar-link:hover { border-bottom-color: var(--rojo); color: #fff; }

/* ---------- Hero ---------- */
.hero {
	position: relative;
	min-height: 100svh;
	display: flex; flex-direction: column; justify-content: center;
	overflow: hidden;
}
.hero-media, .hero-media img {
	position: absolute; inset: 0; width: 100%; height: 100%;
	object-fit: cover; object-position: center 40%;
}
.hero-shade {
	position: absolute; inset: 0;
	background:
		linear-gradient(180deg, rgba(12,12,12,.55) 0%, rgba(12,12,12,.28) 35%, rgba(12,12,12,.45) 70%, rgba(12,12,12,.92) 100%),
		radial-gradient(75% 60% at 50% 45%, rgba(12,12,12,.38) 0%, rgba(12,12,12,.1) 100%);
}
.hero-in {
	position: relative;
	width: 100%; max-width: 1380px; margin-inline: auto;
	padding: 110px 24px 40px;
	display: grid; grid-template-columns: 1fr; align-items: center;
	text-align: center;
}
.hero-aside {
	display: none;
	max-width: 230px;
	font-size: .8rem; line-height: 1.75; letter-spacing: .06em;
	text-transform: uppercase; font-weight: 300;
	color: var(--marfil-60);
}
.hero-center { justify-self: center; }
.hero-eyebrow { text-shadow: 0 1px 20px rgba(0,0,0,.6); }
.hero-title {
	margin-top: 20px;
	font-family: var(--serif); font-weight: 500;
	font-size: clamp(3.2rem, 12vw, 6.2rem);
	line-height: 1.02; letter-spacing: .01em;
	text-shadow: 0 2px 40px rgba(0,0,0,.5);
}
.hero-title em { font-style: italic; }
.hero-cta {
	margin-top: 38px;
	display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
}
@media (max-width: 700px) {
	.hero-cta { flex-direction: column; align-items: center; gap: 12px; }
	.hero-cta .btn { width: min(300px, 80vw); }
	.hero .hero-foot { display: none; }
	.hero-title { margin-top: 24px; }
	.hero-eyebrow { font-size: .66rem; letter-spacing: .3em; }
}
.hero-foot {
	position: relative;
	display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: center;
	padding: 0 22px 26px;
	font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
	color: var(--marfil-60); text-align: center;
}

/* ---------- Barra de categorías ---------- */
.catbar {
	position: sticky; top: var(--topbar-h); z-index: 40;
	background: rgba(12, 12, 12, .9);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-block: 1px solid var(--linea-suave);
}
.catbar-scroll {
	display: flex; gap: 6px;
	overflow-x: auto; -webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding: 13px 22px;
	max-width: var(--wrap); margin-inline: auto;
}
.catbar-scroll::-webkit-scrollbar { display: none; }
.chip {
	flex: 0 0 auto;
	padding: 8px 17px;
	background: transparent;
	border: 1px solid var(--linea);
	color: var(--marfil-60);
	font-size: .78rem; font-weight: 400; letter-spacing: .1em; text-transform: uppercase;
	text-decoration: none; white-space: nowrap;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.chip:hover { border-color: var(--marfil-60); color: var(--marfil); }
.chip.is-active {
	background: var(--rojo); border-color: var(--rojo); color: #fff;
}

/* ---------- Cabecera de carta + búsqueda ---------- */
.menu-wrap { padding-block: 72px 80px; }
.menu-head { text-align: center; margin-bottom: 40px; }
.menu-title {
	margin-top: 14px;
	font-family: var(--serif); font-weight: 500;
	font-size: clamp(2.4rem, 8vw, 4rem);
	line-height: 1.08;
}
.menu-tools { margin-bottom: 30px; }
.search {
	display: flex; align-items: center; gap: 10px;
	background: var(--negro-2);
	border: 1px solid var(--linea);
	padding: 4px 8px 4px 18px;
	max-width: 520px; margin-inline: auto;
	color: var(--marfil-40);
	transition: border-color .2s ease;
}
.search:focus-within { border-color: var(--rojo); }
.search input {
	flex: 1; border: 0; outline: 0; background: transparent;
	padding: 11px 4px; color: var(--marfil); font-size: 1rem; font-weight: 300;
}
.search input::placeholder { color: var(--marfil-40); }
.search-empty {
	text-align: center; margin-top: 24px;
	color: var(--marfil-60); font-family: var(--serif); font-style: italic; font-size: 1.15rem;
}

/* ---------- Categorías ---------- */
.menu-cat { padding-top: 46px; scroll-margin-top: var(--sticky-offset); }
.cat-head { margin-bottom: 10px; }
.cat-title {
	font-family: var(--serif); font-weight: 500;
	font-size: clamp(2rem, 7vw, 2.9rem);
	line-height: 1.1;
	display: flex; align-items: baseline; gap: 18px;
}
.cat-title::after {
	content: "";
	flex: 1; height: 1px;
	background: var(--linea);
	transform: translateY(-6px);
}
.cat-note {
	margin-top: 8px; max-width: 640px;
	font-size: .84rem; color: var(--marfil-60); font-weight: 300; letter-spacing: .02em;
}
.group-title {
	font-family: var(--serif); font-weight: 500; font-style: italic;
	font-size: 1.5rem; color: var(--rojo);
	margin: 30px 0 0;
}

/* ---------- Platos ---------- */
.dish-grid {
	display: grid; grid-template-columns: 1fr;
	column-gap: 56px;
	margin-top: 8px;
}
.dish {
	padding: 17px 0;
	border-bottom: 1px solid var(--linea-suave);
}
.dish-head { display: flex; align-items: baseline; gap: 12px; }
.dish-name {
	font-family: var(--sans); font-weight: 400;
	font-size: 1.02rem; line-height: 1.4; letter-spacing: .04em;
	text-transform: uppercase;
}
.dish-meta {
	display: inline-block;
	white-space: nowrap;
	font-size: .76em; font-weight: 300; letter-spacing: .12em;
	color: var(--marfil-60);
}
.dish-dots {
	flex: 1; min-width: 18px;
	border-bottom: 1px dotted var(--linea);
	transform: translateY(-4px);
}
.dish-price {
	font-family: var(--sans); font-weight: 500;
	color: var(--rojo);
	white-space: nowrap; font-size: .98rem; letter-spacing: .04em;
}
.dish-desc {
	margin-top: 6px;
	font-size: .9rem; font-weight: 300;
	color: var(--marfil-60); line-height: 1.55;
	max-width: 60ch;
}
.dish-variants { margin-top: 10px; display: grid; gap: 7px; }
.dish-variants li { display: flex; align-items: baseline; gap: 12px; }
.variant-name { font-size: .9rem; color: var(--marfil); font-weight: 300; letter-spacing: .03em; }
.dish.is-hidden, .menu-cat.is-hidden, .group-title.is-hidden { display: none; }

/* ---------- Reservas ---------- */
.reservas {
	background: var(--negro); scroll-margin-top: 0;
	border-top: 1px solid var(--linea-suave);
}
.reservas-grid {
	display: grid; grid-template-columns: 1fr;
	min-height: 100svh;
	grid-template-rows: minmax(38svh, auto) 1fr;
}
.reservas-photo { position: relative; overflow: hidden; }
.reservas-photo img {
	position: absolute; inset: 0;
	width: 100%; height: 100%; object-fit: cover; object-position: center top;
}
.reservas-photo::after {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(12,12,12,.14) 0%, transparent 30%, transparent 55%, var(--negro) 100%);
}
.reservas-body {
	padding: 40px 24px 64px;
	max-width: 620px; margin-inline: auto; width: 100%;
	min-width: 0; /* deja que el carrusel de fechas encoja en vez de inflar la columna */
	display: flex; flex-direction: column; justify-content: center;
}
.reserva-form, .field { min-width: 0; }
.reservas-title {
	margin-top: 14px;
	font-family: var(--serif); font-weight: 500;
	font-size: clamp(2.4rem, 8vw, 3.8rem);
	line-height: 1.06;
}
.reservas-title em { font-style: italic; }
.reservas-lede { margin-top: 14px; color: var(--marfil-60); font-weight: 300; max-width: 42ch; }
.reserva-form { margin-top: 40px; }

.field { margin-bottom: 22px; }
.field-label {
	display: block;
	font-size: .66rem; letter-spacing: .26em; text-transform: uppercase;
	color: var(--marfil-60); font-weight: 400;
	margin-bottom: 12px;
}
.field-underline {
	width: 100%;
	background: transparent;
	border: 0; border-bottom: 1px solid var(--linea);
	border-radius: 0;
	color: var(--marfil);
	padding: 8px 0 12px;
	font-size: 1.15rem; font-weight: 300; letter-spacing: .02em;
	outline: none;
	transition: border-color .2s ease;
	caret-color: var(--rojo);
}
.field-underline:focus { border-bottom-color: var(--rojo); }
.field-underline::placeholder { color: var(--marfil-40); }

.pick-row { display: flex; flex-wrap: wrap; gap: 9px; }
.pick-chip {
	min-width: 52px;
	padding: 10px 15px;
	background: transparent;
	border: 1px solid var(--linea);
	color: var(--marfil-60);
	font-family: var(--sans); font-size: .9rem; font-weight: 400; letter-spacing: .05em;
	cursor: pointer;
	transition: border-color .18s ease, color .18s ease, background .18s ease, transform .1s ease;
}
.pick-chip:hover { border-color: var(--marfil-60); color: var(--marfil); }
.pick-chip:active { transform: scale(.95); }
.pick-chip.is-selected {
	background: var(--rojo); border-color: var(--rojo); color: #fff;
}

.pick-rail {
	display: flex; gap: 9px;
	overflow-x: auto; -webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding-bottom: 4px;
	scroll-snap-type: x proximity;
	min-width: 0; max-width: 100%;
}
.pick-rail::-webkit-scrollbar { display: none; }
.date-card {
	flex: 0 0 auto;
	scroll-snap-align: start;
	display: flex; flex-direction: column; align-items: center; gap: 2px;
	min-width: 68px;
	padding: 12px 10px 10px;
	background: transparent;
	border: 1px solid var(--linea);
	color: var(--marfil-60);
	cursor: pointer;
	transition: border-color .18s ease, color .18s ease, background .18s ease, transform .1s ease;
}
.date-card:hover { border-color: var(--marfil-60); color: var(--marfil); }
.date-card:active { transform: scale(.96); }
.date-top {
	font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 400;
}
.date-num {
	font-family: var(--serif); font-size: 1.7rem; font-weight: 500; line-height: 1.1;
	color: var(--marfil);
}
.date-mes { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; }
.date-card.is-selected {
	background: var(--rojo); border-color: var(--rojo); color: rgba(255,255,255,.85);
}
.date-card.is-selected .date-num { color: #fff; }

.svc-tabs {
	display: flex; gap: 24px;
	margin-bottom: 14px;
}
.svc-tab {
	background: transparent; border: 0; padding: 0 0 6px; cursor: pointer;
	font-family: var(--sans); font-size: .8rem; font-weight: 400;
	letter-spacing: .16em; text-transform: uppercase;
	color: var(--marfil-40);
	border-bottom: 1px solid transparent;
	transition: color .18s ease, border-color .18s ease;
}
.svc-tab:hover { color: var(--marfil); }
.svc-tab.is-selected { color: var(--marfil); border-bottom-color: var(--rojo); }

.reserva-resumen {
	min-height: 1.6em;
	margin: 4px 0 18px;
	font-family: var(--serif); font-style: italic; font-weight: 500;
	font-size: 1.3rem; color: var(--marfil);
}

@keyframes atencion {
	0%, 100% { transform: translateX(0); }
	20% { transform: translateX(-5px); }
	40% { transform: translateX(5px); }
	60% { transform: translateX(-3px); }
	80% { transform: translateX(3px); }
}
.needs-attention { animation: atencion .4s ease; }
input.needs-attention, .needs-attention { border-color: var(--rojo) !important; }

.reserva-form .btn { margin-top: 4px; padding-block: 17px; }
.reserva-alt {
	margin-top: 18px; text-align: center;
	color: var(--marfil-60); font-size: .95rem;
}
.reserva-alt a { color: var(--rojo); text-decoration: none; font-weight: 400; }
.reserva-info {
	margin-top: 34px; padding-top: 24px;
	border-top: 1px solid var(--linea-suave);
	display: grid; gap: 20px;
}
.reserva-info h4 {
	font-size: .66rem; letter-spacing: .26em; text-transform: uppercase;
	color: var(--rojo); font-weight: 500; margin-bottom: 7px;
}
.reserva-info p {
	font-size: .9rem; font-weight: 300; color: var(--marfil-60); line-height: 1.6;
}
@media (min-width: 520px) {
	.reserva-info { grid-template-columns: 1fr 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
	border-top: 1px solid var(--linea-suave);
	padding: 54px 0 28px;
	color: var(--marfil-60);
}
.footer-grid { display: grid; gap: 32px; }
.footer-logo { width: 170px; height: auto; }
.footer-tag {
	font-family: var(--serif); font-style: italic; font-size: 1.1rem;
	color: var(--marfil-60); margin-top: 12px;
}
.footer-col h4 {
	font-size: .68rem; letter-spacing: .26em; text-transform: uppercase;
	color: var(--rojo); margin-bottom: 12px; font-weight: 500;
}
.footer-col p { margin-bottom: 7px; font-weight: 300; font-size: .93rem; }
.footer-col a { color: inherit; text-decoration: none; }
.footer-col a:hover { color: var(--marfil); }
.footer-legal {
	margin-top: 40px; padding-top: 20px;
	border-top: 1px solid var(--linea-suave);
	font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
	color: var(--marfil-40);
}

/* ---------- WhatsApp flotante ---------- */
.wa-fab {
	position: fixed; right: 18px; bottom: 18px; z-index: 60;
	width: 54px; height: 54px;
	display: flex; align-items: center; justify-content: center;
	background: #25D366; color: #fff;
	border-radius: 50%;
	box-shadow: 0 10px 26px rgba(0,0,0,.45);
	transition: transform .15s ease;
}
.wa-fab:hover { transform: scale(1.07); }

/* ---------- Tablet / Desktop ---------- */
@media (min-width: 700px) {
	:root { --topbar-h: 68px; }
	.dish-grid { grid-template-columns: 1fr 1fr; }
	.menu-wrap { padding-block: 90px 90px; }
	.footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
	.reservas-grid { grid-template-columns: .92fr 1.08fr; grid-template-rows: 1fr; }
	.reservas-body { padding: 80px 64px; margin-inline: 0; justify-self: center; }
	.reservas-photo::after {
		background: linear-gradient(90deg, rgba(12,12,12,.1) 0%, transparent 30%, transparent 55%, var(--negro) 100%);
	}
}

@media (min-width: 1100px) {
	.hero-in { grid-template-columns: 1fr auto 1fr; gap: 40px; }
	.hero-aside { display: block; }
	.hero-aside--left { justify-self: start; text-align: left; }
	.hero-aside--right { justify-self: end; text-align: right; }
	.hero-logo { width: 360px; }
	.brand-logo { height: 44px; }
}

/* ---------- Móvil: tipografía de carta más cómoda ---------- */
@media (max-width: 480px) {
	.dish-name { font-size: .92rem; letter-spacing: .03em; }
	.dish-price { font-size: .92rem; }
	.dish-dots { min-width: 12px; }
	.dish-desc { font-size: .87rem; }
	.cat-note { font-size: .8rem; }
	.catbar-scroll { padding: 11px 16px; }
	.chip { padding: 7px 14px; font-size: .74rem; }
	.wrap { padding-inline: 18px; }
}

/* ---------- Accesibilidad / preferencias ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.dish, .btn, .chip, .wa-fab, .topbar { transition: none; }
}
