/*
Theme Name: La Puttanesca
Theme URI: https://laputtanesca.mx
Author: La Puttanesca
Description: Tema a la medida para La Puttanesca, Pizzas & Pastas (León, Gto.). Portada con menú, galería, promociones y horario editables desde WordPress sin desacomodar el diseño.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: la-puttanesca
*/

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
:where(section, .lp-section)[id] { scroll-margin-top: 90px; }
img { max-width: 100%; height: auto; }

.lp-eyebrow {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

/* ---------- Header ---------- */
.lp-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(253, 251, 247, 0.92);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(42, 27, 20, 0.06);
}
.admin-bar .lp-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .lp-header { top: 0; position: relative; } }
.lp-header__logo img { height: 42px; width: auto; display: block; }
.lp-nav { display: flex; gap: 2rem; }
.lp-nav a {
	color: inherit;
	text-decoration: none;
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	transition: color 0.2s;
}
.lp-nav a:hover { color: var(--wp--preset--color--rojo); }
@media (max-width: 700px) {
	.lp-nav { gap: 1rem; }
	.lp-nav a { font-size: 0.7rem; letter-spacing: 0.1em; }
	.lp-header__logo img { height: 34px; }
}

/* ---------- Hero ---------- */
.lp-hero {
	position: relative;
	min-height: 80vh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--wp--preset--color--madera);
	color: var(--wp--preset--color--papel);
}
.lp-hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.6;
}
.lp-hero__inner {
	position: relative;
	flex: 1;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 72rem;
	margin: 0 auto;
	padding: 3rem 1.5rem 2rem;
	box-sizing: border-box;
}
.lp-hero__logo {
	display: inline-block;
	background: var(--wp--preset--color--papel);
	border-radius: 1rem;
	padding: 0.9rem 1.4rem;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
	align-self: flex-start;
}
.lp-hero__logo img { display: block; height: 110px; width: auto; }
.lp-hero__cta { margin-top: 1rem; align-self: flex-start; }
.lp-hero__bottom { margin-top: auto; text-align: center; padding-top: 3rem; }
.lp-hero__bottom p { max-width: 36rem; margin: 0 auto; font-size: 1.25rem; line-height: 1.6; color: rgba(253, 251, 247, 0.92); }
.lp-divider { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-bottom: 1.25rem; }
.lp-divider::before, .lp-divider::after { content: ""; width: 2rem; height: 1px; background: var(--wp--preset--color--verde); }
.lp-divider::after { background: var(--wp--preset--color--rojo); }
.lp-divider span { color: var(--wp--preset--color--verde); }
@media (max-width: 700px) {
	.lp-hero__logo img { height: 64px; }
	.lp-hero__logo { padding: 0.7rem 1rem; }
	.lp-hero__bottom p { font-size: 1.05rem; }
}

/* ---------- Botones ---------- */
.lp-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	border-radius: 999px;
	padding: 0.9rem 1.8rem;
	font-weight: 700;
	font-size: 0.95rem;
	text-decoration: none;
	transition: transform 0.2s, background 0.2s, color 0.2s;
}
.lp-btn svg { width: 1.2em; height: 1.2em; flex: none; }
.lp-btn--light { background: var(--wp--preset--color--papel); color: var(--wp--preset--color--madera); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); }
.lp-btn--light:hover { background: var(--wp--preset--color--verde); color: var(--wp--preset--color--papel); transform: translateY(-3px); }
.lp-btn--outline { border: 1px solid rgba(253, 251, 247, 0.25); color: var(--wp--preset--color--papel); font-weight: 500; }
.lp-btn--outline:hover { background: var(--wp--preset--color--papel); color: var(--wp--preset--color--madera); }
.lp-btn--green { background: var(--wp--preset--color--verde); color: #fff; }
.lp-btn--green:hover { background: var(--wp--preset--color--madera); color: #fff; }

/* ---------- Tarjetas (Nosotros y Promociones) ---------- */
.lp-cards img,
.lp-cards .wp-block-post-featured-image img {
	aspect-ratio: 1 / 1;
	width: 100%;
	object-fit: cover;
	border-radius: 1rem;
}
.lp-card p { color: rgba(42, 27, 20, 0.65); font-size: 0.925rem; line-height: 1.65; }

.lp-promos { background: var(--wp--preset--color--crema); padding-top: 5rem; padding-bottom: 5rem; }
.lp-promos .wp-block-post-template { gap: 2.5rem; }
.lp-promos .wp-block-post-featured-image img { aspect-ratio: 4 / 5; }
.lp-promos .wp-block-post-title { font-size: 1.5rem; margin-top: 1rem; }
.lp-promos .wp-block-post-excerpt__more-link { display: none; }

/* ---------- Menú ---------- */
.lp-menu { color: var(--wp--preset--color--papel); }
.lp-menu h2 { color: var(--wp--preset--color--papel); }
.lp-dots { display: flex; justify-content: center; gap: 0.5rem; }
.lp-dots::before, .lp-dots::after, .lp-dots span {
	content: "";
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: var(--wp--preset--color--verde);
}
.lp-dots span { background: rgba(253, 251, 247, 0.2); }
.lp-dots::after { background: var(--wp--preset--color--rojo); }

.lp-menu .lp-cat {
	font-family: var(--wp--preset--font-family--inter);
	font-size: 0.75rem !important;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	border-bottom: 1px solid rgba(253, 251, 247, 0.12);
	padding-bottom: 0.5rem;
	margin: 0 0 1.25rem;
}
.lp-menu .lp-cat { color: var(--wp--preset--color--verde); }
.lp-menu .lp-cat.is-red { color: var(--wp--preset--color--rojo); }
.lp-menu .lp-block { margin-bottom: 3rem; }
.lp-menu .lp-item { margin: 0 0 1.25rem; }
.lp-menu .lp-item > * { margin: 0; }
.lp-menu .lp-item__row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
}
.lp-menu .lp-item__name {
	font-family: var(--wp--preset--font-family--playfair);
	font-size: 1.125rem;
	font-weight: 700;
	margin: 0;
	transition: color 0.2s;
}
.lp-menu .lp-item:hover .lp-item__name { color: var(--wp--preset--color--rojo); }
.lp-menu .lp-item__price { font-weight: 500; white-space: nowrap; margin: 0; }
.lp-menu .lp-item__desc { font-size: 0.875rem; color: rgba(253, 251, 247, 0.55); margin: 0.15rem 0 0; }
.lp-menu .lp-note { font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; font-style: italic; color: rgba(253, 251, 247, 0.45); }
.lp-menu .wp-block-columns { gap: 4rem; }

/* ---------- Galería ---------- */
/* Rejilla fija: 3 columnas en computadora, 2 en celular. Todas las fotos cuadradas. */
.lp-gallery.wp-block-gallery.has-nested-images {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}
.lp-gallery.wp-block-gallery.has-nested-images figure.wp-block-image,
.lp-gallery.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
	width: 100% !important;
	margin: 0 !important;
	aspect-ratio: 1 / 1;
	border-radius: 1rem;
	overflow: hidden;
	background: var(--wp--preset--color--crema);
}
.lp-gallery.wp-block-gallery.has-nested-images figure.wp-block-image img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	border-radius: 1rem;
}
.lp-gallery.wp-block-gallery.has-nested-images figure.wp-block-image figcaption { display: none; }
@media (max-width: 700px) {
	.lp-gallery.wp-block-gallery.has-nested-images { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
}

/* ---------- Visítanos / contacto ---------- */
.lp-contact .lp-label {
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	margin-bottom: 0.75rem;
}
.lp-contact p, .lp-contact li { color: rgba(42, 27, 20, 0.7); font-size: 0.925rem; }
.lp-contact ul { list-style: none; padding: 0; margin: 0; }
.lp-contact li { margin-bottom: 0.3rem; }
.lp-contact a { color: inherit; }
.lp-contact a:hover { color: var(--wp--preset--color--rojo); }

/* ---------- Footer ---------- */
.lp-footer { border-top: 1px solid rgba(42, 27, 20, 0.06); }
.lp-footer__logo img { height: 64px; width: auto; }
.lp-footer p { color: rgba(42, 27, 20, 0.6); }
.lp-footer a { color: inherit; }
.lp-social { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.lp-social svg { width: 1.1rem; height: 1.1rem; }

/* ---------- WhatsApp flotante ---------- */
.lp-wa-float {
	position: fixed;
	right: 1.5rem;
	bottom: 1.5rem;
	z-index: 100;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	background: var(--wp--preset--color--whatsapp);
	color: #fff;
	border-radius: 999px;
	padding: 0.9rem;
	box-shadow: 0 0 0 8px rgba(0, 140, 69, 0.15), 0 25px 50px -12px rgba(0, 0, 0, 0.35);
	text-decoration: none;
	font-weight: 500;
	transition: transform 0.2s;
}
.lp-wa-float:hover { transform: scale(1.05); color: #fff; }
.lp-wa-float svg { width: 2rem; height: 2rem; }
.lp-wa-float span { padding-left: 0.5rem; }
@media (max-width: 700px) { .lp-wa-float span { display: none; } }

/* ---------- Páginas internas / promociones ---------- */
.lp-single .wp-block-post-featured-image img { border-radius: 1rem; }

/* ---------- Secciones de la página Inicio ---------- */
.lp-menu { background: var(--wp--preset--color--madera); padding-top: 6rem; padding-bottom: 6rem; }
.lp-gallery-section { padding-top: 6rem; padding-bottom: 6rem; }
.lp-contact { padding-top: 5rem; padding-bottom: 5rem; background: var(--wp--preset--color--crema); }
.lp-contact .wp-block-columns { gap: 3rem; }
.lp-main { padding-top: 0; }
.lp-main > .wp-block-post-content { margin-top: 0; }
.lp-main > * + * { margin-block-start: 0; }
.lp-header-wrap { padding-top: 0; padding-bottom: 0; }

/* ---------- Títulos de sección editables ---------- */
p.lp-divider { color: var(--wp--preset--color--verde); margin-bottom: 0.75rem; }
h2.lp-title { margin-top: 0; margin-bottom: 3rem; }
h2.lp-title--dots { margin-bottom: 4rem; }
h2.lp-title--dots::after {
	content: "";
	display: block;
	width: 2.5rem;
	height: 0.5rem;
	margin: 1rem auto 0;
	background:
		radial-gradient(circle, var(--wp--preset--color--verde) 0.25rem, transparent 0.26rem) 0 0 / 0.5rem 0.5rem no-repeat,
		radial-gradient(circle, rgba(253, 251, 247, 0.2) 0.25rem, transparent 0.26rem) 1rem 0 / 0.5rem 0.5rem no-repeat,
		radial-gradient(circle, var(--wp--preset--color--rojo) 0.25rem, transparent 0.26rem) 2rem 0 / 0.5rem 0.5rem no-repeat;
}
.lp-menu p.lp-note { margin-top: 3rem; margin-bottom: 2rem; }
.lp-btn-outline .wp-block-button__link {
	background: transparent;
	border: 1px solid rgba(253, 251, 247, 0.25);
	color: var(--wp--preset--color--papel);
	font-weight: 500;
}
.lp-btn-outline .wp-block-button__link:hover { background: var(--wp--preset--color--papel); color: var(--wp--preset--color--madera); }
