/*
Theme Name: Doña Rosa
Theme URI: https://drosapozuelo.com
Author: Leonardo Network S.r.l.
Description: Tema a medida para Café Bar Doña Rosa, Pozuelo de Alarcón. Portada de una sola página, carta gestionada desde el panel.
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 8.0
License: Propietaria
Text Domain: donarosa
*/

/* Fuentes (self-hosted, OFL) ------------------------------------------- */
@font-face {
	font-family: "Fraunces";
	src: url("assets/fonts/fraunces-soft-normal.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Fraunces";
	src: url("assets/fonts/fraunces-soft-italic.woff2") format("woff2");
	font-weight: 100 900;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "Figtree";
	src: url("assets/fonts/figtree-normal.woff2") format("woff2");
	font-weight: 300 900;
	font-style: normal;
	font-display: swap;
}

/* Tokens ---------------------------------------------------------------- */
:root {
	--paper: #FCF1EF;      /* fondo: papel rosado */
	--blush: #F6DEDC;      /* superficies */
	--rose: #E9AEB4;       /* líneas, puntos guía */
	--raspberry: #C93A5E;  /* acento: corazón, estado, chip activo */
	--wine: #74142F;       /* titulares, botones */
	--cocoa: #3A2327;      /* texto */
	--cream: #FFFAF8;      /* tarjetas, barra */
	--open: #2F7A4F;

	--serif: "Fraunces", Georgia, "Times New Roman", serif;
	--sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--gutter: clamp(1.25rem, 5vw, 3rem);
	--max: 76rem;
	--header-h: 3.75rem;
	--bar-h: 4rem;
	--radius: 1.25rem;
}

/* Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--cocoa);
	font-family: var(--sans);
	font-size: 1.0625rem;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
}

img, svg { display: block; max-width: 100%; height: auto; }

a { color: var(--wine); text-underline-offset: .18em; text-decoration-thickness: 1px; }

h1, h2, h3 {
	font-family: var(--serif);
	font-variation-settings: "SOFT" 100;
	font-weight: 560;
	color: var(--wine);
	margin: 0;
	text-wrap: balance;
}

p { margin: 0; }

:focus-visible {
	outline: 3px solid var(--raspberry);
	outline-offset: 3px;
	border-radius: 4px;
}

.skip-link {
	position: absolute;
	left: 1rem;
	top: -4rem;
	z-index: 100;
	background: var(--wine);
	color: var(--cream);
	padding: .75rem 1rem;
	border-radius: .5rem;
}
.skip-link:focus { top: 1rem; }

.section-title {
	font-size: clamp(2rem, 7.5vw, 3rem);
	line-height: 1.05;
	letter-spacing: -.01em;
}

/* Botones --------------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3.125rem;
	padding: .8rem 1.4rem;
	border-radius: 999px;
	font-weight: 650;
	font-size: 1rem;
	text-decoration: none;
	border: 1.5px solid var(--wine);
	transition: background-color .2s, color .2s;
}
.btn--primary { background: var(--wine); color: var(--cream); }
.btn--primary:hover { background: #5C0F25; }
.btn--ghost { background: transparent; color: var(--wine); }
.btn--ghost:hover { background: var(--blush); }

/* Arco: la forma de la campana del logo --------------------------------- */
.arch {
	position: relative;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	/* semicírculo arriba: radio horizontal 50%, vertical 40% (= ancho/2 en 4:5) */
	border-radius: 50% 50% var(--radius) var(--radius) / 40% 40% var(--radius) var(--radius);
	background: var(--blush);
}
.arch img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.arch--empty {
	display: grid;
	place-items: center;
	color: var(--rose);
}
.arch--empty .cloche { width: 42%; }

/* Header ---------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--paper) 88%, transparent);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}
.site-header__inner {
	max-width: var(--max);
	margin: 0 auto;
	height: var(--header-h);
	padding: 0 var(--gutter);
	display: flex;
	align-items: center;
	gap: 1.5rem;
}
.brand { display: flex; align-items: center; text-decoration: none; margin-right: auto; }
.brand__logo { height: 2.75rem; width: auto; }
.brand__text {
	font-family: var(--serif);
	font-variation-settings: "SOFT" 100;
	font-style: italic;
	font-weight: 600;
	font-size: 1.25rem;
	white-space: nowrap;
	color: var(--wine);
}

.site-nav { display: none; }
.site-nav a {
	font-weight: 600;
	font-size: .95rem;
	text-decoration: none;
	color: var(--cocoa);
}
.site-nav a:hover { color: var(--wine); text-decoration: underline; }

.estado {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	padding: .35rem .8rem;
	border-radius: 999px;
	background: var(--cream);
	font-size: .85rem;
	font-weight: 650;
	white-space: nowrap;
}
.estado[hidden] { display: none; }
.estado__punto {
	width: .5rem;
	height: .5rem;
	border-radius: 50%;
	background: #9A8B8D;
}
.is-open .estado__punto { background: var(--open); box-shadow: 0 0 0 3px color-mix(in srgb, var(--open) 22%, transparent); }
.is-open { color: var(--open); }

/* Hero ------------------------------------------------------------------ */
.hero {
	max-width: var(--max);
	margin: 0 auto;
	padding: .75rem var(--gutter) 3.5rem;
	display: grid;
	gap: 1.75rem;
}
.hero__frame {
	/* En móvil el arco es cuadrado para que el titular entre en la primera pantalla. */
	width: min(100%, 44svh);
	aspect-ratio: 1 / 1;
	border-radius: 50% 50% var(--radius) var(--radius) / 50% 50% var(--radius) var(--radius);
	justify-self: center;
}
.hero__title {
	font-size: clamp(2.5rem, 10.5vw, 4.75rem);
	line-height: .98;
	letter-spacing: -.02em;
	font-weight: 540;
}
.hero__lead {
	margin-top: 1rem;
	max-width: 32ch;
	font-size: 1.125rem;
}
.hero__actions {
	margin-top: 1.75rem;
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
}
/* En móvil WhatsApp ya está en la barra inferior. */
.hero__actions .btn--ghost { display: none; }
@media (min-width: 900px) { .hero__actions .btn--ghost { display: inline-flex; } }

@media (min-width: 900px) {
	.hero {
		grid-template-columns: 1.1fr .9fr;
		align-items: center;
		gap: 4rem;
		min-height: calc(100svh - var(--header-h));
		padding-top: 1rem;
		padding-bottom: 4rem;
	}
	.hero__frame {
		order: 2;
		width: min(100%, calc(78svh * .8));
		aspect-ratio: 4 / 5;
		border-radius: 50% 50% var(--radius) var(--radius) / 40% 40% var(--radius) var(--radius);
	}
	.hero__text { order: 1; }
}

/* Nuestros platos (carrusel) ------------------------------------------- */
.platos { padding: 1rem 0 4rem; }

.section-head {
	max-width: var(--max);
	margin: 0 auto 1.5rem;
	padding: 0 var(--gutter);
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 1rem;
}

.track-nav { display: none; gap: .5rem; }
@media (hover: hover) and (min-width: 700px) {
	.track-nav { display: flex; }
}
.track-nav__btn {
	width: 2.75rem;
	height: 2.75rem;
	display: grid;
	place-items: center;
	border-radius: 50%;
	border: 1.5px solid var(--wine);
	background: transparent;
	color: var(--wine);
	cursor: pointer;
}
.track-nav__btn:hover { background: var(--blush); }
.track-nav__btn .icon { width: 1.25rem; height: 1.25rem; }

.track {
	list-style: none;
	margin: 0;
	padding: 0 var(--gutter) .5rem;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 78%;
	gap: 1rem;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--gutter);
	scrollbar-width: none;
}
.track::-webkit-scrollbar { display: none; }
@media (min-width: 700px) { .track { grid-auto-columns: 44%; gap: 1.5rem; } }
@media (min-width: 1100px) {
	.track {
		grid-auto-columns: calc((min(100vw, var(--max)) - 2 * var(--gutter) - 3rem) / 3);
		padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
		scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
	}
}

.plato-card { scroll-snap-align: start; }
.plato-card__body {
	display: grid;
	grid-template-columns: 1fr auto;
	column-gap: 1rem;
	padding: 1rem .25rem 0;
}
.plato-card__nombre {
	font-size: 1.5rem;
	line-height: 1.1;
}
.plato-card__precio {
	font-family: var(--serif);
	font-variation-settings: "SOFT" 100;
	font-style: italic;
	font-weight: 500;
	font-size: 1.35rem;
	color: var(--raspberry);
	white-space: nowrap;
}
.plato-card__desc {
	grid-column: 1 / -1;
	margin-top: .4rem;
	font-size: .95rem;
	color: color-mix(in srgb, var(--cocoa) 80%, var(--paper));
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* La carta -------------------------------------------------------------- */
.carta {
	background: var(--cream);
	border-radius: 2rem 2rem 0 0;
	padding: 3.5rem 0 4rem;
}
.carta__inner {
	max-width: 42rem;
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.chips {
	position: sticky;
	top: var(--header-h);
	z-index: 10;
	display: flex;
	gap: .5rem;
	margin: 1.25rem calc(-1 * var(--gutter)) 0;
	padding: .75rem var(--gutter);
	overflow-x: auto;
	scrollbar-width: none;
	background: var(--cream);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
	flex: none;
	padding: .5rem 1rem;
	border-radius: 999px;
	border: 1.5px solid var(--rose);
	font-size: .95rem;
	font-weight: 600;
	color: var(--cocoa);
	text-decoration: none;
	transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--wine); }
.chip[aria-current="true"] {
	background: var(--wine);
	border-color: var(--wine);
	color: var(--cream);
}

.carta__seccion {
	padding-top: 2.5rem;
	scroll-margin-top: calc(var(--header-h) + 4rem);
}
.carta__titulo {
	font-size: 1.75rem;
	line-height: 1.1;
}
.carta__nota {
	margin-top: .35rem;
	font-size: .95rem;
	color: color-mix(in srgb, var(--cocoa) 75%, var(--cream));
}

.menu-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.menu-item { padding: .65rem 0; }
.menu-item__row {
	display: flex;
	align-items: baseline;
	gap: .5rem;
}
.menu-item__nombre { font-weight: 650; font-size: 1.0625rem; }
.menu-item__leader {
	flex: 1;
	min-width: 1.5rem;
	border-bottom: 2px dotted var(--rose);
	transform: translateY(-.28em);
}
.menu-item__precio {
	font-family: var(--serif);
	font-variation-settings: "SOFT" 100;
	font-style: italic;
	font-weight: 500;
	font-size: 1.2rem;
	color: var(--wine);
	white-space: nowrap;
}
.menu-item__desc {
	margin-top: .2rem;
	font-size: .95rem;
	max-width: 36ch;
	color: color-mix(in srgb, var(--cocoa) 78%, var(--cream));
}

/* Horario y ubicación --------------------------------------------------- */
.visit {
	max-width: var(--max);
	margin: 0 auto;
	padding: 4rem var(--gutter);
	display: grid;
	gap: 3.5rem;
}
@media (min-width: 900px) {
	.visit { grid-template-columns: 1fr 1fr; gap: 5rem; }
}

.visit__estado {
	margin-top: .75rem;
	font-weight: 600;
}
.visit__estado.is-open { color: var(--open); }

.horario { margin: 1.5rem 0 0; }
.horario__row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	padding: 1rem 1.1rem;
	border-radius: .9rem;
}
.horario__row + .horario__row { margin-top: .25rem; }
.horario__row dt { font-weight: 650; }
.horario__row dd {
	margin: 0;
	font-family: var(--serif);
	font-variation-settings: "SOFT" 100;
	font-size: 1.15rem;
	color: var(--wine);
	text-align: right;
}
.horario__row--off dd { font-style: italic; color: color-mix(in srgb, var(--cocoa) 70%, var(--paper)); }
.horario__row.is-today { background: var(--cream); box-shadow: inset 3px 0 0 var(--raspberry); }
.horario__row.is-today dt::after {
	content: "hoy";
	margin-left: .5rem;
	font-size: .8rem;
	font-weight: 600;
	color: var(--raspberry);
}

.visit__dir {
	margin-top: 1.25rem;
	font-style: normal;
	font-family: var(--serif);
	font-variation-settings: "SOFT" 100;
	font-size: 1.5rem;
	line-height: 1.3;
}

.mapa {
	margin-top: 1.5rem;
	aspect-ratio: 16 / 10;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--blush);
}
.mapa__btn {
	width: 100%;
	height: 100%;
	display: grid;
	place-content: center;
	justify-items: center;
	gap: .35rem;
	border: 0;
	background: transparent;
	color: var(--wine);
	font: 650 1rem var(--sans);
	cursor: pointer;
}
.mapa__btn small { font-weight: 400; font-size: .8rem; color: var(--cocoa); }
.mapa__btn .icon { width: 2rem; height: 2rem; }
.mapa iframe { width: 100%; height: 100%; border: 0; display: block; }

.visit__actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.visit__resenas { margin-top: 1.25rem; }

/* Footer ---------------------------------------------------------------- */
.site-footer {
	background: var(--wine);
	color: var(--cream);
	padding: 3rem var(--gutter) 3.5rem;
	text-align: center;
	font-size: .95rem;
}
.site-footer a { color: var(--cream); }
.site-footer__inner { display: grid; gap: .4rem; justify-items: center; }
.site-footer__name {
	font-family: var(--serif);
	font-variation-settings: "SOFT" 100;
	font-style: italic;
	font-size: 1.6rem;
	margin-bottom: .4rem;
}
.site-footer__social { display: inline-flex; align-items: center; gap: .4rem; }
.site-footer__social .icon { width: 1.2rem; height: 1.2rem; }
.legal-menu {
	list-style: none;
	margin: .75rem 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .25rem 1.25rem;
	font-size: .85rem;
}
.site-footer__copy { margin-top: .75rem; font-size: .8rem; opacity: .75; }

/* Barra de acciones (móvil) --------------------------------------------- */
.action-bar {
	position: fixed;
	inset: auto 0 0 0;
	z-index: 60;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 1fr;
	gap: .5rem;
	padding: .5rem .75rem calc(.5rem + env(safe-area-inset-bottom));
	background: color-mix(in srgb, var(--cream) 94%, transparent);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-top: 1px solid color-mix(in srgb, var(--rose) 60%, transparent);
}
.action-bar__item {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .4rem;
	min-height: 3rem;
	border-radius: 999px;
	font-size: .9rem;
	font-weight: 650;
	color: var(--wine);
	text-decoration: none;
}
.action-bar__item .icon { width: 1.25rem; height: 1.25rem; flex: none; }
.action-bar__item--main { background: var(--wine); color: var(--cream); }

@media (min-width: 900px) {
	body { padding-bottom: 0; }
	.action-bar { display: none; }
	.site-nav { display: flex; gap: 1.75rem; }
}

/* Páginas genéricas ----------------------------------------------------- */
.page-wrap {
	max-width: 42rem;
	margin: 0 auto;
	padding: 2.5rem var(--gutter) 5rem;
}
.page-wrap--center { text-align: center; display: grid; justify-items: center; gap: 1rem; }
.empty-cloche { width: 8rem; color: var(--rose); }
.entry__title { font-size: clamp(2rem, 7vw, 2.75rem); line-height: 1.1; }
.entry__content { margin-top: 1.5rem; }
.entry__content > * + * { margin-top: 1em; }
.entry__content h2 { font-size: 1.5rem; margin-top: 2rem; }
.entry__content h3 { font-size: 1.25rem; margin-top: 1.5rem; }
