/*
Theme Name: Romaliv
Description: A child theme of twentytwentyfive, scaffolded by Studio Code.
Template: twentytwentyfive
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: romaliv
Tags: full-site-editing, block-patterns, block-styles, wide-blocks, accessibility-ready, style-variations
*/

/* ---------------------------------------------
   Roma Liv – Plaza Compostela
   Base del tema hijo
--------------------------------------------- */

:root {
	--padding-container-x: 120px;
	--padding-container-y: 120px;
	--max-width-container: 2250px;
	--max-width-container-semi-narrow: 1600px;
	--transition-duration: 300ms;
	--font-primary: "Pochaevsk", Arial, Helvetica, sans-serif;
	--font-secondary: "Monterchi Serif", Arial, Helvetica, sans-serif;
	--primary: #a59462;
	--primary-dark: #554b2e;
	--primary-light: #ccbf98;
	--secondary: #f2eee8;
	--secondary-dark: #cfc5b8;
	--text: #6F6862;
}

/* Selección de texto */
::selection {
	background: #ccbf98; /* --primary-light */
	color: #554b2e;      /* --primary-dark */
}

html {
	scroll-behavior: smooth;
}

body {
	background-color: #ffffff;
	color: var(--text, #6F6862);
	font-family: var(--font-primary);
	margin: 0;
	-webkit-font-smoothing: antialiased;
}

/* Reset del gap entre bloques raíz y padding del main (las secciones controlan su propio ritmo). */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}
.wp-site-blocks main,
.romaliv-landing {
	margin: 0;
	padding: 0;
}

/* Enlace de accesibilidad: saltar al contenido principal */
.skip-link {
	position: absolute;
	top: -40px;
	left: 0;
	background: #000;
	color: #fff;
	font-size: 16px;
	padding: 8px;
	z-index: 100;
	text-decoration: none;
}
.skip-link:focus {
	top: 0;
}

/* Título de sección: Monterchi Serif. El párrafo que le sigue lleva margin-top 20px. */
h2 + p,
h2 + p:first-of-type {
	margin-top: 20px;
}

/* Sin margen inferior en encabezados por defecto (refuerzo, también en theme.json) */
h1, h2, h3, h4, h5, h6 {
	margin-bottom: 0;
}

/* ---------------------------------------------
   Ancho máximo de las secciones
--------------------------------------------- */
.site-container,
.wp-site-blocks > *,
.entry-content > * {
	max-width: var(--max-width-container);
}

/* ---------------------------------------------
   Padding horizontal / vertical responsive
--------------------------------------------- */
@media (max-width: 1200px) {
	:root {
		--padding-container-x: 80px;
		--padding-container-y: 80px;
	}
}

@media (max-width: 992px) {
	:root {
		--padding-container-x: 40px;
		--padding-container-y: 80px;
	}
}

@media (max-width: 420px) {
	:root {
		--padding-container-x: 30px;
		--padding-container-y: 60px;
	}
}

/* Respeto prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* ---------------------------------------------
   Footer (romaliv) – parte de plantilla
--------------------------------------------- */
.footer { display: flex; justify-content: center; background: #554b2e; }
.footer.section .container {
	display: flex; flex-direction: row; flex-wrap: wrap;
	justify-content: space-between; align-items: center;
	width: 100%; max-width: var(--max-width-container);
	padding: 20px var(--padding-container-x); margin: 0; text-align: center;
}
.footer .container > div {
	display: flex; align-items: center; gap: 20px; width: auto;
}
.footer,
.footer * {
	font-family: var(--font-primary); font-size: 18px; color: #ffffff;
}
.footer a,
.footer .wp-block-button__link {
	color: #ffffff; text-decoration: none; cursor: pointer;
}
.footer a:hover,
.footer .wp-block-button__link:hover {
	color: #ffffff; text-decoration: underline;
}
.footer .wp-block-button,
.footer .wp-block-buttons {
	margin: 0;
}
.footer .wp-block-button__link {
	background: transparent; border: 0; padding: 0; font-weight: 400;
}
.footer .footer-button-link {
	background: none; border: 0; padding: 0; cursor: pointer;
}
@media (max-width: 992px) {
	.footer.section .container { flex-direction: column; gap: 30px; }
	.footer.section .container > div { flex-direction: column; justify-content: center; align-items: center; }
	.footer .footer-links .wp-block-buttons { flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 460px) {
	.footer.section .container > div { align-items: center; gap: 10px; }
}

/* ---------------------------------------------
   Gestor de cookies (modal)
--------------------------------------------- */
.cm-backdrop {
	position: fixed; inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 9998;
	display: flex; align-items: center; justify-content: center;
	padding: 16px;
}
.cm-box {
	background: #ffffff; padding: 30px; border-radius: 6px;
	max-width: 500px; width: calc(100% - 32px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.cm-box,
.cm-box * {
	font-family: var(--font-primary); font-size: 14px; color: #000000;
}
.cm-box .cm-title {
	font-size: 20px; margin: 0 0 20px;
}
.cm-box p { margin: 0 0 12px; }
.cm-box a,
.cm-box .link { color: #a59462; cursor: pointer; }
.cm-box .cm-buttons {
	display: flex; flex-direction: column-reverse; gap: 10px; margin-top: 20px;
}
.cm-box .cm-buttons button {
	width: 100%; background: #f0f0f0; border: 0; border-radius: 4px;
	padding: 10px; text-transform: uppercase; font-size: 14px; cursor: pointer;
}
.cm-box .cm-buttons button:hover { background: #e4e4e4; }
.cm-box label {
	display: flex; align-items: center; margin-top: 8px;
}
.cm-box label strong { font-size: 16px; }
.cm-box label input[type="checkbox"] {
	width: 16px; height: 16px; accent-color: #a59462; margin-right: 8px; flex: none;
}
.cm-box small {
	display: block; color: #666666; font-size: 14px; margin-left: 26px; margin-bottom: 10px;
}

/* ---------------------------------------------
   Páginas legales (política-legal)
--------------------------------------------- */
.container.narrow { max-width: 1350px; }
.politica-legal .container.narrow {
	padding: var(--padding-container-y) var(--padding-container-x);
}
.politica-legal .section-header { text-align: left; margin-bottom: 40px; }
.politica-legal .section-header h2 {
	font-family: var(--font-secondary); font-size: 24px; color: #a59462;
}
.politica-legal p,
.politica-legal span,
.politica-legal a,
.politica-legal li,
.politica-legal td,
.politica-legal th {
	font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.4;
}
.politica-legal a { color: #a59462; }
.politica-legal .back-link {
	display: inline-block; font-family: var(--font-primary); font-size: 16px;
	color: #a59462; text-decoration: none; margin-bottom: 24px;
}
.politica-legal .back-link a {
	font-family: var(--font-primary); color: #a59462; text-decoration: none;
}
.politica-legal .back-link:hover { text-decoration: underline; }
.politica-legal .back-link a:hover { text-decoration: underline; }
.politica-legal ul { margin: 0 0 16px; padding-left: 24px; }
.politica-legal table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.politica-legal table td,
.politica-legal table th {
	border: 1px solid #d9d2c5; padding: 8px 10px; text-align: left; vertical-align: top;
}
@media (max-width: 992px) {
	.politica-legal .container.narrow { padding: var(--padding-container-y) var(--padding-container-x); }
	.politica-legal table { font-size: 14px; }
}

/* ---------------------------------------------
   Página de gracias
--------------------------------------------- */
.comprobante.section {
	background: #fafafa;
	min-height: calc(100vh - 80px);
	display: flex; align-items: center;
	box-sizing: border-box;
}
.comprobante.section .container.super-narrow {
	background: #fff; border-radius: 20px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .08);
	max-width: 720px; padding: 60px 60px 72px;
	text-align: center; margin: 0 auto;
	box-sizing: border-box; width: 100%;
}
.comprobante .section-header { display: flex; flex-direction: column; align-items: center; }
.comprobante .section-header > * { margin-block-start: 0; }
.comprobante .check-image { margin: 0 0 28px; }
.comprobante .check-image svg { width: 120px; height: 120px; display: block; margin: 0 auto; }
.comprobante .check-image svg rect { fill: #7ccf29; }
.comprobante .check-image svg circle { fill: #7ccf29; }
.comprobante .check-image svg polyline { stroke: #fff; stroke-width: 3.2; }
.comprobante .section-title {
	font-family: var(--font-secondary); font-size: 28px; line-height: 1.2; color: #000;
	margin: 0 0 16px;
}
.comprobante .section-text {
	font-family: var(--font-primary); font-size: 22px; line-height: 1.5; color: #6F6862;
	margin: 0 auto 36px; max-width: 560px;
}
.comprobante .wp-block-buttons { margin: 0; }
.comprobante .wp-block-button__link {
	font-family: var(--font-primary); font-size: 16px; padding: 14px 44px;
	border-radius: 999px; border: 1px solid #a59462;
	color: #111; background: transparent; text-decoration: none;
}
.comprobante .wp-block-button__link:hover { background: #a59462; color: #fff; }
@media (max-width: 992px) {
	.comprobante.section .container.super-narrow { padding: 44px 28px 56px; box-shadow: none; }
	.comprobante .section-text { font-size: 19px; }
}
