/*
Theme Name: Casa Concha
Description: Tema a medida para Restaurante Casa Concha. Reproduce el diseño que tenía la web con Astra + Elementor, sin depender de constructores ni addons.
Version: 1.4.0
Author: Reddots
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: casaconcha
*/

/* ===== Tipografía propia ===== */
@font-face {
	font-family: "Strawford";
	src: url("assets/fonts/strawford-regular-webfont.ttf") format("truetype");
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
}
@font-face {
	font-family: "Strawford";
	src: url("assets/fonts/strawford-regularitalic-webfont.ttf") format("truetype");
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
}

/* ===== Variables (colores globales del kit de Elementor) ===== */
:root {
	--azul: #21537E;
	--crema: #EFE4C4;
	--crema-87: #EFE4C487;
	--crema-b3: #EFE4C4B3;
	--blanco: #FFFFFF;
	--negro: #000000;
	--linea: #7A7A7A17;
	--lateral: 6.667%;
	--titulo: "Strawford", sans-serif;
	--texto: "Montserrat", sans-serif;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
	margin: 0;
	background: var(--blanco);
	color: var(--negro);
	font-family: var(--texto);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.65;
}
body.sin-scroll { overflow: hidden; }
img, svg, video { max-width: 100%; height: auto; display: block; }
.icono { display: block; width: 1em; height: 1em; flex-shrink: 0; }
.lottie { display: block; }
a { color: inherit; text-decoration: none; transition: color .3s, opacity .3s; }
h1, h2, h3, h4 { margin: 0; font-family: var(--titulo); font-weight: 400; line-height: 1.2; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.screen-reader-text, .oculto {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.saltar:focus {
	position: fixed; top: 10px; left: 10px; z-index: 9999;
	width: auto; height: auto; clip: auto;
	padding: 10px 16px; background: var(--azul); color: var(--blanco);
}

/* ===== Retícula: columna lateral · centro · columna lateral ===== */
.marco {
	display: grid;
	grid-template-columns: var(--lateral) 1fr var(--lateral);
}
.marco__centro {
	grid-column: 2;
	border-left: 1px solid var(--linea);
	border-right: 1px solid var(--linea);
	min-width: 0;
}
.solo-movil { display: none !important; }

/* ===== Cabecera ===== */
.cabecera {
	position: absolute;
	top: 0; left: 0; right: 0;
	z-index: 50;
	border-bottom: 1px solid var(--linea);
	background: transparent;
}
.cabecera .marco { min-height: 39px; }
.cabecera__logo { display: flex; align-items: center; justify-content: center; padding: 10px; }
.cabecera__logo a { display: flex; justify-content: center; width: 100%; }
.cabecera__logo img, .cabecera__logo .custom-logo { width: 42%; height: auto; }
.cabecera__accion {
	grid-column: 3;
	display: flex; align-items: center; justify-content: center;
	background: none; border: 0; padding: 0; cursor: pointer;
}
.cabecera__accion .lottie { width: 74%; }
.cabecera__menu { display: none; }

/* ===== Botón con línea inferior (ElementsKit) ===== */
.boton {
	display: inline-block;
	padding: 12px 0 6px;
	background: transparent;
	border: 0;
	border-bottom: 1px solid currentColor;
	color: var(--azul);
	font-family: var(--titulo);
	font-size: 20px;
	font-weight: 400;
	cursor: pointer;
	transition: color .3s, border-color .3s;
}
.boton:hover, .boton:focus-visible { color: var(--negro); }
.alinear-dcha { text-align: right; }
.centrado { text-align: center; }

/* ===== Portada ===== */
.hero {
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
	overflow: hidden;
	border-left: 1px solid var(--linea);
	border-right: 1px solid var(--linea);
}
.hero__fondo {
	position: absolute;
	inset: -15% 0 0 0;
	will-change: transform;
}
.hero__img {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	object-position: 50% 45%; /* la foto es vertical: centra el plato */
}
.hero__fondo::after {
	content: "";
	position: absolute; inset: 0;
	background: var(--blanco);
	opacity: .17;
}
.hero .marco { position: relative; z-index: 2; min-height: 100vh; min-height: 100svh; }
.hero .marco__centro { display: flex; align-items: flex-end; justify-content: center; padding-bottom: 40px; }
.hero__scroll { width: 8%; min-width: 46px; filter: brightness(194%) contrast(200%) saturate(87%); }

.inicio {
	position: relative;
	isolation: isolate;
}
.inicio::before {
	content: "";
	position: absolute; inset: 0;
	z-index: -1;
	background-attachment: fixed;
	background-image: var(--fondo-cangrejo);
	background-size: cover;
	background-position: -736px 0;
	background-repeat: no-repeat;
	opacity: .06;
}
.inicio .marco__centro { padding: 0 10px; }

.titulo-doble {
	padding-top: 60px;
	text-align: center;
	font-family: var(--titulo);
	font-size: 36px;
	font-weight: 600;
	letter-spacing: .02em;
	color: #000000C4;
}
.titulo-doble span { color: var(--crema); }

.bloque {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: start;
}
.bloque > * { min-width: 0; padding: 10px; }
.bloque--margen { margin-top: 100px; }
.bloque--margen-30 { margin-top: 30px; }
.bloque__texto { padding-left: 70px; }
.bloque h2 { font-size: 30px; color: var(--azul); margin-bottom: 20px; }
.bloque h2.cursiva { font-style: italic; }
.bloque__texto .texto { font-family: var(--texto); color: var(--negro); }
.bloque__texto .texto + img, .bloque__texto .texto + .boton { margin-top: 20px; }
.bloque img { width: 100%; }

.decorado { display: grid; grid-template-columns: 1fr 1fr; }
.decorado > div { padding: 10px; }
.decorado span { display: block; background: var(--crema-87); }
.decorado > div:first-child span { height: 161px; }
.decorado > div:last-child span { height: 122px; }

.scroll-mini { display: block; width: 8%; min-width: 46px; margin: 30px auto 0; }

.horarios {
	margin-top: 70px;
	text-align: center;
	color: var(--azul);
}
.horarios__icono { width: 36px; height: 36px; margin: 0 auto 6px; }
.horarios h2 { font-size: 30px; color: var(--azul); }
.horarios__linea { width: 1px; height: 100px; margin: 4px auto 14px; background: var(--azul); }
.horarios p {
	margin: 0 0 4px;
	font-family: var(--texto);
	font-weight: 200;
	color: var(--negro);
	line-height: 1.4;
}
.horarios .boton { margin-top: 20px; }

.sellos {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	align-items: center;
	margin: 150px 0;
	border-top: 1px solid var(--linea);
	border-bottom: 1px solid var(--linea);
}
.sellos > div { padding: 30px 10px; display: flex; justify-content: center; }
.sellos a { display: flex; justify-content: center; width: 100%; }
.sellos img { height: auto; transition: filter .3s; }
.sellos > div:nth-child(1) img { width: 46%; filter: brightness(0%) contrast(100%) saturate(93%); }
.sellos > div:nth-child(2) img { width: 25%; filter: brightness(0%) contrast(100%) saturate(100%); }
.sellos > div:nth-child(3) img { width: 32%; filter: brightness(0%) contrast(100%) saturate(1%); }
.sellos > div:nth-child(1):hover img { filter: brightness(35%) contrast(100%) saturate(167%); }
.sellos > div:nth-child(2):hover img { filter: brightness(100%) contrast(100%) saturate(151%); }
.sellos > div:nth-child(3):hover img { filter: brightness(100%) contrast(100%) saturate(135%); }

/* ===== Páginas interiores (Galería / Contacto) ===== */
.interior {
	position: relative;
	isolation: isolate;
	padding-top: 120px;
	background-size: cover;
	background-position: -157px 0;
	background-repeat: no-repeat;
}
.interior--velo::before {
	content: "";
	position: absolute; inset: 0;
	z-index: -1;
	background: var(--blanco);
	opacity: .39;
}
.interior .marco__centro { padding-top: 150px; }
.interior h1.titulo-pagina { margin: 50px 0; text-align: center; font-size: 30px; color: var(--azul); }

.galeria {
	columns: 3;
	column-gap: 10px;
	padding: 0 10px 200px;
}
.galeria__item {
	position: relative;
	display: block;
	margin-bottom: 10px;
	break-inside: avoid;
	overflow: hidden;
	cursor: zoom-in;
}
.galeria__item img { width: 100%; transition: transform .8s; }
.galeria__item::after {
	content: "";
	position: absolute; inset: 0;
	background: rgba(0, 0, 0, .5);
	opacity: 0;
	transition: opacity .8s;
}
.galeria__item:hover::after, .galeria__item:focus-visible::after { opacity: 1; }

.contacto { padding-top: 103px; }
.contacto__fila {
	display: grid;
	grid-template-columns: 11.725% 1fr;
	align-items: start;
	margin-bottom: 20px;
}
.contacto__fila > * { padding: 10px; }
.contacto__icono { display: flex; justify-content: flex-end; font-size: 39px; line-height: 1; color: var(--azul); transition: color .3s; }
.contacto__fila:hover .contacto__icono { color: var(--crema); }
.contacto h2 { font-size: 26px; color: var(--azul); }
.contacto__dato { margin: 4px 0 0; font-family: var(--texto); font-weight: 300; color: var(--azul); }
.contacto__mapa { margin: 100px 10px 50px; padding-bottom: 200px; }
.contacto__mapa iframe {
	display: block;
	width: 100%;
	height: 300px;
	border: 0;
	filter: brightness(103%) contrast(101%) saturate(0);
	transition: filter .3s;
}
.contacto__mapa iframe:hover { filter: brightness(103%) contrast(101%) saturate(77%); }

/* ===== Páginas legales y genéricas ===== */
.legal { padding: 150px 0 120px; }
.legal .marco__centro { padding: 0 6%; }
.legal h1 { font-size: 30px; color: var(--azul); margin-bottom: 30px; }
.legal .contenido { font-weight: 300; }
.legal .contenido h2, .legal .contenido h3 { margin: 1.6em 0 .6em; color: var(--azul); }
.legal .contenido a { color: var(--azul); text-decoration: underline; }
.legal .contenido ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1.1em; }

/* ===== Pie ===== */
.pie { background: var(--azul); color: var(--crema); }
.pie .marco { border-right: 1px solid var(--crema); }
.pie .marco__centro { border-color: var(--crema); }
.pie__fila1 .marco { border-bottom: 1px solid var(--crema); }
.pie__fila1 .marco > div { display: flex; align-items: center; justify-content: center; padding: 10px 0; }
.pie__logo a { display: flex; justify-content: center; width: 100%; }
.pie__logo img { width: 74%; }
.pie__fila1 .marco__centro { flex-direction: column; }
.pie__logo-tableta { display: none; }
.pie__fila2 .marco__centro { padding: 10px; text-align: center; font-weight: 300; }
.menu-legal { display: flex; flex-wrap: wrap; justify-content: center; }
.menu-legal a {
	position: relative;
	display: block;
	padding: 13px 20px;
	font-size: 16px;
	font-weight: 300;
}
.menu-legal a::after {
	content: "";
	position: absolute; left: 20px; right: 20px; bottom: 8px;
	height: 1px;
	background: var(--crema);
	opacity: 0;
	transition: opacity .3s;
}
.menu-legal a:hover::after, .menu-legal .current-menu-item a::after { opacity: 1; }
.pie__copy { margin: 0; font-size: 16px; }
.pie__firma { margin: 0 0 10px; font-size: 14px; }

/* Iconos sociales (círculos con borde crema) */
.redes { display: flex; justify-content: center; gap: 5px; margin-top: 5px; }
.redes a {
	display: flex; align-items: center; justify-content: center;
	width: 2.4em; height: 2.4em;
	font-size: 19px;
	border: 2px solid var(--crema);
	border-radius: 45px;
	color: var(--crema);
	transition: transform .3s;
}
.redes a:hover, .redes a:focus-visible { transform: scale(1.1); }
.redes .icono { width: 1.05em; height: 1.05em; }

/* ===== Ventanas emergentes ===== */
.ventana {
	position: fixed; inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, .8);
	opacity: 0;
	visibility: hidden;
	transition: opacity .6s, visibility .6s;
}
.ventana.abierta { opacity: 1; visibility: visible; }
.ventana__caja { position: relative; background: var(--azul); color: var(--blanco); }
.ventana__cerrar {
	position: absolute;
	top: 3.1%; right: 4.7%;
	z-index: 2;
	width: 40px; height: 40px;
	display: flex; align-items: center; justify-content: center;
	background: none; border: 0; padding: 0;
	font-size: 22px;
	color: var(--crema);
	cursor: pointer;
}

/* Panel lateral de contacto (escritorio) */
.ventana--contacto { background: rgba(0, 0, 0, .7); justify-content: flex-end; }
.ventana--contacto .ventana__caja {
	width: 489px; max-width: 100%;
	height: 100vh;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	padding: 20px;
	text-align: center;
	transform: translateX(100%);
	transition: transform 1.2s cubic-bezier(.2, .7, .2, 1);
	box-shadow: 2px 8px 23px 3px rgba(0, 0, 0, .2);
}
.ventana--contacto.abierta .ventana__caja { transform: none; }
.ventana--contacto .logo-panel { width: 26%; margin: 0 auto 13%; }
.ventana--contacto .dato { margin: 0 0 10px; font-family: var(--titulo); font-size: 20px; font-weight: 100; line-height: 1.4; color: var(--blanco); }
.ventana--contacto .redes { margin-top: 50px; }

/* Menú a pantalla completa (móvil y tableta) */
.ventana--menu .ventana__caja {
	width: 640px; max-width: 100%;
	height: 100vh;
	padding: 5px 10px;
	opacity: 0;
	transition: opacity 1.2s;
	box-shadow: 2px 8px 23px 3px rgba(0, 0, 0, .2);
}
.ventana--menu.abierta .ventana__caja { opacity: 1; }
.ventana--menu .logo-menu { width: 19%; margin-left: 10px; }
.menu-principal {
	display: flex; flex-direction: column; align-items: center;
	margin-top: 26vh;
}
.menu-principal a {
	position: relative;
	display: block;
	padding: 13px 20px;
	font-family: var(--titulo);
	font-size: 31px;
	font-weight: 300;
	color: var(--blanco);
}
.menu-principal a::after {
	content: "";
	position: absolute; left: 20px; right: 20px; bottom: 8px;
	height: 1px;
	background: var(--crema);
	transform: scaleX(0);
	transition: transform .3s;
}
.menu-principal a:hover, .menu-principal a:focus-visible { color: var(--crema); }
.menu-principal a:hover::after, .menu-principal .current-menu-item a::after { transform: scaleX(1); }

/* Reservar mesa */
.ventana--reservar .ventana__caja {
	width: 502px; max-width: calc(100% - 32px);
	min-height: 270px;
	display: flex; align-items: center;
	padding: 40px 20px;
	background: var(--crema);
	color: var(--azul);
	transform: scale(.6);
	transition: transform .6s;
}
.ventana--reservar.abierta .ventana__caja { transform: none; }
.ventana--reservar .ventana__cerrar { top: 2.6%; right: 1.5%; font-size: 17px; color: var(--azul); }
.reservar {
	width: 100%;
	padding: 10px;
	border-top: 1px solid var(--azul);
	border-bottom: 1px solid var(--azul);
	text-align: center;
}
.reservar__icono { width: 50px; height: 50px; margin: 0 auto; }
.reservar .dato { margin: 10px 0 0; font-family: var(--titulo); font-size: 26px; font-weight: 300; }
.reservar .dato--direccion { margin: 6px 0 4px; font-family: var(--texto); font-size: 15px; line-height: 1.4; }
.reservar .dato--direccion a { text-decoration: underline; text-underline-offset: 3px; }
.reservar .lottie { width: 20%; margin: 6px auto 0; }

/* Visor de la galería */
.visor { background: rgba(0, 0, 0, .9); }
.visor img { max-width: 90vw; max-height: 86vh; width: auto; height: auto; }
.visor button {
	position: absolute;
	background: none; border: 0;
	color: var(--blanco);
	font-size: 28px;
	cursor: pointer;
	padding: 16px;
}
.visor__cerrar { top: 10px; right: 10px; }
.visor__ant { left: 10px; top: 50%; transform: translateY(-50%); }
.visor__sig { right: 10px; top: 50%; transform: translateY(-50%); }

/* ===== Aviso de cookies (Adapta RGPD) ===== */
#cookies-eu-banner { background-color: #ffffff8a; font-family: "Strawford", sans-serif; font-size: 13px; }
#cookies-eu-banner #cookies-eu-accept, #cookies-eu-accept, .cookies-eu-accept { padding: 10px 20px; background-color: var(--azul); border-color: var(--azul); }
#cookies-eu-banner #cookies-eu-more, #cookies-eu-more { color: var(--azul); }
.custom-cookies-option input[type="radio"]:checked + label { background-color: var(--azul); }

/* ===== Animación de entrada (fadeInDown) ===== */
.anim { opacity: 0; transform: translateY(-40px); transition: opacity 2s, transform 2s; }
.anim.visible { opacity: 1; transform: none; }
.anim--d2 { transition-delay: .2s; }
.anim--d4 { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.anim { opacity: 1; transform: none; transition: none; }
	.hero__fondo { transform: none !important; }
	.ventana, .ventana__caja { transition: none !important; }
}

/* ===== Tableta ===== */
@media (max-width: 1024px) {
	.cabecera { position: absolute; }
	.cabecera .marco { display: flex; justify-content: space-between; align-items: center; padding-top: 5px; }
	.cabecera .marco__centro, .cabecera__accion--escritorio { display: none; }
	.cabecera__logo { justify-content: flex-start; padding: 0 0 0 20px; }
	.cabecera__logo img, .cabecera__logo .custom-logo { width: 80px; }
	.cabecera__menu {
		display: flex;
		margin-right: 20px;
		background: none; border: 0; padding: 0; cursor: pointer;
		color: var(--azul);
	}
	.cabecera__menu svg { width: 29px; height: 29px; transform: rotate(90deg); }
	.ventana--menu .ventana__caja { width: 812px; }
	.ventana--menu .ventana__cerrar { top: 3.1%; right: 4.7%; }
	.menu-principal { margin-top: 26%; }
	.ventana--contacto .redes { margin: 20px 0; }

	.hero { margin-top: 0; }
	.bloque--margen { margin-top: 50px; }
	.bloque__texto { padding-left: 30px; }

	.interior { padding-top: 100px; }
	.interior .marco__centro { padding-top: 50px; }
	.interior h1.titulo-pagina { margin: 0; padding: 50px 0 20px; }
	.pie .marco { border-right: 0; }
	.pie__fila2 .marco { border-top: 1px solid var(--crema); }
	.pie__logo { display: none !important; }
	.pie__fila1 .marco__centro .pie__logo-tableta { display: block; width: 7%; min-width: 50px; margin: 10px auto 0; }
	.menu-legal a { padding: 13px 8px; }
	.sellos > div:nth-child(1) img { width: 63%; }
	.sellos > div:nth-child(2) img { width: 28%; }
	.sellos > div:nth-child(3) img { width: 38%; }
}

/* ===== Móvil ===== */
@media (max-width: 767px) {
	.solo-movil { display: block !important; }
	.solo-escritorio { display: none !important; }
	.marco { grid-template-columns: 0 1fr 0; }
	.marco__centro { border: 0; }

	.cabecera__logo { padding: 6px 0 0 10px; }
	.cabecera__logo img, .cabecera__logo .custom-logo { width: 19vw; max-width: 80px; }
	.cabecera__menu { margin: 13px 20px 0 0; }
	.cabecera__menu svg { width: 23px; height: 23px; }

	.ventana--menu .ventana__caja { width: 100%; }
	.ventana--menu .ventana__cerrar { top: 4.7%; right: 8.6%; font-size: 21px; }
	.ventana--menu .logo-menu { width: 19%; }
	.menu-principal { margin-top: 43%; }
	.menu-principal a { font-size: 24px; }

	.ventana--reservar .ventana__caja { width: 300px; min-height: 187px; padding: 36px 14px 24px; }
	.ventana--reservar .ventana__cerrar { top: 3.5%; right: 3%; font-size: 14px; }
	.reservar__icono { width: 38px; height: 38px; }
	.reservar .dato { font-size: 20px; }
	.reservar .dato--direccion { font-size: 13px; }
	.reservar .lottie { width: 22%; }

	.hero__scroll { width: 18%; }
	.titulo-doble { padding: 40px 16px 10px; font-size: 28px; }
	.bloque { grid-template-columns: 1fr; }
	.bloque > * { padding: 10px 16px; }
	.bloque--margen, .bloque--margen-30 { margin-top: 10px; }
	.bloque__texto { padding-left: 16px; }
	.bloque h2 { font-size: 26px; margin-bottom: 14px; }
	.bloque--invertido .bloque__media { order: 2; }
	.decorado { display: none; }
	.decorado-movil { display: block; height: 132px; margin: 10px 16px; background: var(--crema-b3); position: relative; }
	.decorado-movil .lottie { position: absolute; left: 50%; bottom: 10px; width: 46px; transform: translateX(-50%); }
	.foto-movil { padding: 10px 16px; }
	.foto-movil img { width: 100%; }

	.horarios { margin-top: 60px; padding: 60px 16px 40px; position: relative; isolation: isolate; }
	.horarios::before {
		content: "";
		position: absolute; inset: 0; z-index: -1;
		background-image: var(--fondo-cangrejo);
		background-size: cover;
		opacity: .12;
	}
	.sellos { margin: 60px 0; }
	.sellos > div:nth-child(1) img { width: 100%; }
	.sellos > div:nth-child(2) img { width: 61%; }
	.sellos > div:nth-child(3) img { width: 83%; }
	.inicio .marco__centro { padding: 0; }
	.inicio::before { background-attachment: scroll; }

	.interior { padding-top: 50px; background-position: center top; }
	.interior .marco__centro { padding-top: 0; }
	.interior h1.titulo-pagina { padding: 50px 0 10px; font-size: 23px; }
	.galeria { columns: 2; padding-bottom: 10px; }

	.contacto { padding: 30px 16px 0; }
	.contacto__fila { grid-template-columns: 50px 1fr; }
	.contacto__icono { justify-content: center; }
	.contacto__icono { font-size: 27px; }
	.contacto h2 { font-size: 22px; }
	.contacto__dato { font-size: 15px; }
	.contacto__mapa { margin: 60px 0 0; padding-bottom: 60px; }

	.legal { padding: 110px 0 80px; }
	.legal .marco__centro { padding: 0 16px; }

	.pie__fila1 .marco__centro .pie__logo-tableta { display: none; }
	.pie__fila1 .marco > div { padding: 20px 0; }
	.redes a { font-size: 22px; }
	.menu-legal a { padding: 8px 9px; min-height: 24px; font-size: 13px; }
	.menu-legal a::after { display: none; }
	.pie__copy { font-size: 13px; margin-top: 8px; }
	.pie__firma { font-size: 12px; }
}
