/* Box-sizing global dentro del contenido de la landing */
#contenido *, #contenido *::before, #contenido *::after { box-sizing: border-box; }

/* =============================================
   Roma Liv – Landing (solo portada)
   Cabecera a pantalla completa
============================================= */

/* Contenedor con el fondo a pantalla completa */
.main-header {
	position: relative;
	height: max(100dvh, 900px);
	overflow: hidden;
	background-image: url('/wp-content/uploads/2026/09/header.webp');
	background-size: 130%;
	background-position: bottom left;
	background-repeat: no-repeat;
}
.main-header::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.5) 100%);
	z-index: 1;
}

/* Mosca (texto arriba a la derecha) */
.main-header .mosca-container {
	position: absolute;
	top: 0; left: 0;
	display: flex;
	justify-content: flex-end;
	width: 100%;
	padding: calc(var(--padding-container-y) / 2) var(--padding-container-x) var(--padding-container-y);
	z-index: 2;
}
.main-header .mosca {
	font-family: var(--font-secondary);
	font-size: 28px;
	color: #ffffff;
	line-height: 1.3;
	width: max-content;
	margin: 0;
	text-align: right;
}

/* Bloque central inferior */
.main-header .header-info {
	position: absolute;
	bottom: 10%;
	left: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 80px;
	width: 100%;
	padding: 0 var(--padding-container-x);
	text-align: center;
	z-index: 2;
}
.main-header .title {
	font-family: var(--font-primary);
	font-size: 48px;
	font-weight: 400;
	color: #ffffff;
	margin: 0;
	line-height: 1.2;
}
.main-header .filigrana {
	width: 100%;
	max-width: 140px;
	height: auto;
}
.main-header .subtitle {
	font-family: var(--font-primary);
	font-size: 38px;
	color: #ffffff;
	margin: 0;
	line-height: 1.3;
}

/* Botón con forma de solapa (SVG inline superpuesto a un bloque de botón editable) */
.main-header .header-button,
.outro .header-button {
	position: relative;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	width: 360px;
	height: 88px;
	font-family: var(--font-primary);
}
.main-header .header-button .wp-block-buttons,
.main-header .header-button .wp-block-button,
.outro .header-button .wp-block-buttons,
.outro .header-button .wp-block-button {
	margin: 0;
	width: 100%;
}
.main-header .header-button .wp-block-button__link,
.outro .header-button .wp-block-button__link {
	display: block;
	width: 100%;
	padding: 15px 0 0;
	background: transparent;
	border: none;
	color: #ffffff;
	font-family: var(--font-primary);
	font-size: 22px;
	line-height: 1;
	text-decoration: none;
	text-align: center;
}
.main-header .header-button .header-button-shape,
.outro .header-button .header-button-shape {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
	pointer-events: none;
}
.main-header .header-button .header-button-shape path,
.outro .header-button .header-button-shape path {
	vector-effect: non-scaling-stroke;
}

/* Responsive */
@media (max-width: 1200px) {
	.main-header { height: auto; min-height: 700px; height: 100dvh; background-size: cover; }
}
@media (max-width: 992px) {
	.main-header { min-height: 700px; display: flex; flex-direction: column; }
	.main-header .mosca-container { position: static; }
	.main-header .header-info { position: static; margin-top: auto; gap: 30px; }
	.main-header .mosca { font-size: 22px; width: 100%; }
	.main-header .title { font-size: 28px; }
	.main-header .subtitle { font-size: 22px; line-height: 1.2; }
	.main-header .header-button,
	.outro .header-button { width: 210px; height: 51px; }
	.main-header .header-button .wp-block-button__link,
	.outro .header-button .wp-block-button__link { font-size: 14px; padding-top: 10px; }
}

/* =============================================
   Roma Liv – Formulario por pasos
============================================= */

/* Honeypot oculto */
.h-form input[name='website'] {
	position: absolute;
	left: -9999px;
	opacity: 0;
	height: 0;
	width: 0;
}
/* Legend ocultos */
.h-form legend.hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Sección */
.h-form { background: #ffffff; display: flex; justify-content: center; }
.h-form .form { width: 100%; }
.h-form .form.form-steps { transition: height var(--transition-duration) ease-in-out; }
.h-form .form.form-steps.is-animating { overflow: hidden; }

/* Pasos: solo el activo se ve, con entrada animada */
.h-form .form-fieldset { display: none; border: 0; padding: 0; margin: 0; }
.h-form .form-fieldset.active { display: block; animation: form-step-in var(--transition-duration) ease-in-out both; }
@keyframes form-step-in { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: none; } }

/* Cada paso: dos columnas, pregunta izquierda / respuestas derecha, 50/50, con el padding de sección en cada mitad */
.h-form .form-fieldset > .container {
  display: flex; flex-direction: row; align-items: stretch;
  width: 100%; max-width: var(--max-width-container); margin-inline: auto; padding: 0;
}
.h-form .form-fieldset > .container > * { width: 50%; padding: var(--padding-container-y) var(--padding-container-x); }

/* Cabecera del paso */
.h-form .fieldset-header { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; text-align: center; }
.h-form .fieldset-title { font-family: var(--font-secondary); font-size: 32px; color: #6F6862; margin: 0; line-height: 1.3; }
.h-form .fieldset-text { font-size: 18px; color: #6F6862; margin: 0; }
.h-form .fieldset-header .filigrana { display: block; width: 100%; max-width: 150px; height: auto; }

/* Respuestas tipo píldora */
.h-form .fieldset-answers, .h-form .fieldset-form { display: flex; flex-direction: column; justify-content: center; }
.h-form .form-fieldset-questions input[type='radio'] { display: none; }
.h-form .form-fieldset-questions label {
  display: block; width: 100%; text-align: center; cursor: pointer;
  background: transparent; color: #6F6862; border: 2px solid var(--wp--preset--color--primary, #a59462);
  border-radius: 30px; padding: 14px 20px; margin-bottom: 15px; font-size: 20px;
  transition: all var(--transition-duration) ease-in-out;
}
.h-form .form-fieldset-questions label:hover { background: #a59462; color: #ffffff; }
.h-form .form-fieldset-questions input[type='radio']:checked + label { background: #a59462; color: #ffffff; }

/* Campos del paso final */
.h-form .form-inputs { display: grid; gap: 20px; margin-bottom: 20px; border: 0; padding: 0; min-width: 0; }
@media (min-width: 992px) { .h-form .form-inputs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: 'nombre telefono' 'email email' 'mensaje mensaje'; } }
@media (max-width: 992px) { .h-form .form-inputs { grid-template-areas: 'nombre' 'telefono' 'email' 'mensaje'; } }
.h-form .box-nombre { grid-area: nombre; } .h-form .box-telefono { grid-area: telefono; } .h-form .box-email { grid-area: email; } .h-form .box-mensaje { grid-area: mensaje; }

.h-form .input-box { position: relative; display: flex; flex-direction: column; margin-bottom: 10px; }
.h-form .input-box input, .h-form .input-box textarea {
  width: 100%; min-width: 0; background: transparent; color: #6F6862; font-size: 16px; font-family: var(--font-primary);
  border: 1px solid #a59462; border-radius: 30px; padding: 10px 18px; outline: none;
}
.h-form .input-box textarea { border-radius: 20px; min-height: 120px; resize: none; }
.h-form .input-box .iti { width: 100%; }
.h-form .box-telefono .iti input#telefono-1 { padding-left: 100px; }
.h-form .box-telefono .iti .iti__flag-container { padding-left: 18px; }
.h-form .input-box .iti__selected-dial-code { color: #6F6862; font-size: 20px; }

/* Etiquetas flotantes */
.h-form .input-box label {
  position: absolute; left: 18px; top: 10px; font-size: 20px; color: #6F6862; margin: 0; pointer-events: none;
  transition: font-size var(--transition-duration) ease-in-out, top var(--transition-duration) ease-in-out, left var(--transition-duration) ease-in-out, color var(--transition-duration) ease-in-out;
}
.h-form .input-box.box-telefono label { left: 100px; }
.h-form .input-box:focus-within label { top: -22px; left: 17px; font-size: 12px; color: #6F6862; }
.h-form .input-box input:not(:placeholder-shown) + label,
.h-form .input-box textarea:not(:placeholder-shown) + label,
.h-form .input-box:has(input:not(:placeholder-shown)) > label { top: -14px; left: 17px; font-size: 12px; color: #6F6862; }

/* Checkboxes redondos y botón */
.h-form .submits { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.h-form .form-policies { width: 100%; margin: 0; border: 0; padding: 0; }
.h-form .form-policies .checkbox { display: flex; align-items: flex-start; margin-bottom: 8px; }
.h-form .form-policies .checkbox input[type='checkbox'] {
  appearance: none; -webkit-appearance: none; background: transparent; border: 1px solid #a59462; border-radius: 50%;
  width: 1em; height: 1em; aspect-ratio: 1/1; margin: 6px 8px 0 0; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.h-form .form-policies .checkbox input[type='checkbox']::before { content: ''; display: block; width: 8px; height: 8px; border-radius: 50%; background: #a59462; transform: scale(0); transition: 120ms transform ease-in-out; }
.h-form .form-policies .checkbox input[type='checkbox']:checked::before { transform: scale(1); }
.h-form .form-policies .checkbox label { color: #6F6862; font-size: 14px; }
.h-form .form-policies .checkbox label a { color: inherit; text-decoration: underline; }
.h-form .button-submit {
  display: inline-block; cursor: pointer; background: transparent; color: #6F6862; font-family: var(--font-primary); font-size: 22px;
  border: 1px solid #a59462; border-radius: 30px; letter-spacing: 2px; padding: 12px 60px; transition: all var(--transition-duration) ease-in-out;
}
.h-form .button-submit:hover:not(:disabled) { background: #a59462; color: #ffffff; }
.h-form .button-submit:disabled { opacity: .6; cursor: default; }

/* Móvil */
@media (max-width: 992px) {
  .h-form .form-fieldset > .container { flex-direction: column; }
  .h-form .form-fieldset > .container > * { width: 100%; }
  .h-form .fieldset-answers, .h-form .fieldset-form { padding-left: 15px; padding-right: 15px; }
  .h-form .fieldset-title { font-size: 24px; line-height: 1.2; }
  .h-form .fieldset-header .filigrana { max-width: 100px; }
  .h-form .form-fieldset-questions label { font-size: 18px; padding: 10px 20px; }
  .h-form .button-submit { font-size: 16px; }
}

/* =============================================
   Roma Liv – Secciones (intro, iconos, info, mapa)
============================================= */

/* Sin separación entre bloques hermanos en la raíz de la landing */
#contenido > * + *,
.wp-block-post-content > * + * { margin-block-start: 0; }

/* Oculto accesible (solo lectores de pantalla) */
.hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Base de secciones */
.section { display: flex; justify-content: center; }
.section .container { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: var(--max-width-container); padding: var(--padding-container-y) var(--padding-container-x); margin: 0; z-index: 1; }
.section .container > * { width: 100%; margin-block-start: 0; }
.section .container > * + * { margin-block-start: 0; }
.section .container.semi-narrow { max-width: var(--max-width-container-semi-narrow); }
.section.light { background: #ffffff; }
.section.dark { background: #a59462; }
.section.semi-dark { background: #f2eee8; }
.section .section-header { text-align: center; }
.section .section-title { font-family: var(--font-secondary); font-size: 56px; font-weight: 400; line-height: 1.15; margin: 0; }
.section .section-title:has(+ p) { margin-bottom: 20px; }
.section .section-text { font-size: 22px; line-height: 1.6; text-align: justify; margin: 0; color: #6F6862; }
.section .section-text strong { font-family: var(--font-primary); font-weight: 600; }
.section .section-text span { font-size: inherit; font-family: inherit; color: inherit; }
.section.light .section-title, .section.semi-dark .section-title { color: #a59462; }
.section.dark .section-title { color: #ffffff; }
.section.dark .section-text { color: #ffffff; }

/* Secciones en dos columnas (texto + imagen) */
.section.vertical .container { flex-direction: row; align-items: stretch; padding: 0; }
.section.vertical .container > * { padding: var(--padding-container-y) var(--padding-container-x); }
.section.vertical .section-header { text-align: left; margin: 0; }
.section.vertical .section-image { background-position: center center; background-size: cover; background-repeat: no-repeat; border-radius: 40px; }
.section.vertical .section-image.intro-img { background-image: url('/wp-content/uploads/2026/09/intro.webp'); }
.section.vertical .section-image.info-img { background-image: url('/wp-content/uploads/2026/09/info.webp'); }
@media (min-width: 992px) {
  .section.vertical .container > * { width: 50%; }
  .section.vertical.flip .container { flex-direction: row-reverse; }
  .section.padding-y { padding-top: var(--padding-container-y); padding-bottom: var(--padding-container-y); }
}
@media (max-width: 992px) {
  .section.vertical .container, .section.vertical.flip .container { flex-direction: column; }
  .section.vertical .container > * { width: 100%; }
  .section.vertical .container .section-header { padding-top: var(--padding-container-y); }
  .section.vertical .section-image { aspect-ratio: 1 / 1; border-radius: 0; }
  .section .section-title { font-size: 26px; }
  .section .section-text { font-size: 16px; }
}

/* Intro */
.intro { padding-bottom: var(--padding-container-y); }
@media (max-width: 992px) { .intro { padding-bottom: 0; } }

/* Iconos */
.icons .container { padding-top: calc(var(--padding-container-y) / 2); padding-bottom: calc(var(--padding-container-y) / 2); }
.icons .section-icons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin: 0; width: 100%; }
.icons .icon-box { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.icons .icon-box img { width: 100%; max-width: 100px; height: auto; }
.icons .icon-box figure { margin: 0; }
.icons .icon-box h3 { font-family: var(--font-primary); font-size: 18px; font-weight: 400; color: #ffffff; margin: 0; }
@media (max-width: 768px) {
  .icons .icon-box img { max-width: 64px; }
  .icons .icon-box h3 { font-size: 16px; }
}

/* Mapa */
.mapa img { width: 100%; height: auto; display: block; }
.mapa figure { width: 100%; margin: 0; }
@media (min-width: 992px) { .mapa .map-mobile { display: none; } }
@media (max-width: 992px) { .mapa .map-desktop { display: none; } }

/* =============================================
   Roma Liv – Outro (sección de cierre)
============================================= */
.outro { position: relative; height: max(100dvh, 900px); width: 100%; }
.outro .outro-bg {
	position: absolute; inset: 0; overflow: hidden;
	background-size: 130%; background-position: bottom left; background-repeat: no-repeat;
}
.outro .outro-img { background-image: url('/wp-content/uploads/2026/09/outro.webp'); }
.outro .outro-bg::before {
	content: ''; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.5) 100%);
}
.outro .outro-info {
	position: absolute; bottom: 10%; left: 0; z-index: 1;
	display: flex; flex-direction: column; align-items: center; gap: 80px;
	width: 100%; padding: 0 var(--padding-container-x); text-align: center;
}
.outro .outro-info .title { font-family: var(--font-primary); font-size: 56px; font-weight: 400; color: #ffffff; margin: 0; line-height: 1.2; }
.outro .outro-info .subtitle { font-family: var(--font-primary); font-size: 38px; color: #ffffff; margin: 0; line-height: 1.3; }
.outro .outro-info .text { font-family: var(--font-primary); font-size: 28px; color: #ffffff; margin: 0; line-height: 1.3; }
.outro .outro-info > div { display: flex; flex-direction: column; align-items: center; gap: 30px; }
.outro .outro-info > * + *,
.outro .outro-cta > * + * { margin-block-start: 0; }
@media (max-width: 1200px) {
	.outro .outro-bg { background-size: cover; }
}
@media (max-width: 992px) {
	.outro .outro-info { height: 100%; bottom: 0; justify-content: center; gap: 30px; }
	.outro .outro-info .title { font-size: 22px; }
	.outro .outro-info .subtitle { font-size: 30px; }
	.outro .outro-info .text { font-size: 18px; }
}

