/* plazaping.com · hoja de estilos única, escrita a mano. Sin dependencias ni peticiones a terceros. */

@font-face {
	font-family: "Bricolage Grotesque";
	src: url("/assets/fonts/bricolage-grotesque.woff2") format("woff2");
	font-weight: 200 800;
	font-display: swap;
}

@font-face {
	font-family: "Instrument Sans";
	src: url("/assets/fonts/instrument-sans.woff2") format("woff2");
	font-weight: 400 700;
	font-display: swap;
}

:root {
	/* Los verdes y los grises son los del plugin, para que la web y el formulario se reconozcan. */
	--pino: #0a4f47;
	--verde: #0f6e63;
	--niebla: #e8f3f0;
	--papel: #ffffff;
	--arena: #f6f5f1;
	--tinta: #1c1c1a;
	--piedra: #5b5b57;
	--linea: #dddbd3;
	--senal: #f4c430; /* el aviso: solo para lo que se acaba de liberar y la oferta */
	--titulos: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
	--texto: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
	--ancho: 70rem;
	--hueco: clamp(1.25rem, 4vw, 2.5rem);
	--seccion: clamp(4rem, 9vw, 7rem);
}

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

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--papel);
	color: var(--tinta);
	font-family: var(--texto);
	font-size: 1.125rem;
	line-height: 1.55;
}

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

a {
	color: var(--verde);
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--pino);
}

:focus-visible {
	outline: 3px solid var(--senal);
	outline-offset: 3px;
}

h1,
h2,
h3 {
	margin: 0;
	font-family: var(--titulos);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

h1 {
	font-size: clamp(2.6rem, 7vw, 4.75rem);
	line-height: 0.98;
	letter-spacing: -0.03em;
}

h2 {
	font-size: clamp(1.9rem, 4.2vw, 3rem);
	max-width: 22ch;
}

h3 {
	font-size: 1.3rem;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

p {
	margin: 0;
	max-width: 62ch;
}

.dentro {
	width: 100%;
	max-width: var(--ancho);
	margin-inline: auto;
	padding-inline: var(--hueco);
}

.seccion {
	padding-block: var(--seccion);
}

.seccion > .dentro > h2 + p {
	margin-top: 1.25rem;
	font-size: 1.25rem;
	color: var(--piedra);
}

.saltar {
	position: absolute;
	left: -999rem;
}

.saltar:focus {
	left: 1rem;
	top: 1rem;
	z-index: 10;
	padding: 0.5rem 1rem;
	background: var(--papel);
}

/* --- Botones --- */

.boton {
	display: inline-block;
	padding: 0.85rem 1.4rem;
	border: 2px solid transparent;
	border-radius: 0.6rem;
	font-family: var(--texto);
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	text-align: center;
}

.boton-senal {
	background: var(--senal);
	color: var(--tinta);
}

.boton-senal:hover {
	background: #ffd95a;
	color: var(--tinta);
}

.boton-verde {
	background: var(--verde);
	color: var(--papel);
}

.boton-verde:hover {
	background: var(--pino);
	color: var(--papel);
}

.boton-linea {
	border-color: currentColor;
	color: inherit;
}

.boton-linea:hover {
	background: rgba(255, 255, 255, 0.12);
	color: inherit;
}

.boton-espera {
	border: 2px dashed currentColor;
	opacity: 0.85;
	cursor: default;
}

/* --- Cabecera --- */

.cabecera {
	background: var(--pino);
	color: var(--papel);
}

.cabecera .dentro {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	padding-block: 1.1rem;
}

.marca {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	margin-right: auto;
	color: inherit;
	font-family: var(--titulos);
	font-size: 1.45rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	text-decoration: none;
}

.marca:hover {
	color: inherit;
}

.marca svg {
	width: 1.5rem;
	height: 1.5rem;
}

.menu {
	display: flex;
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 1rem;
}

.menu a,
.idiomas a {
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
}

.menu a:hover,
.idiomas a:hover {
	text-decoration: underline;
}

.idiomas {
	display: flex;
	gap: 0.15rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.95rem;
}

.idiomas a {
	display: block;
	padding: 0.3rem 0.55rem;
	border-radius: 0.4rem;
}

.idiomas [aria-current="true"] {
	background: rgba(255, 255, 255, 0.16);
	font-weight: 600;
}

.cabecera .boton {
	padding: 0.55rem 1rem;
	font-size: 0.95rem;
	white-space: nowrap;
}

/* --- Portada --- */

.portada {
	background: var(--pino);
	color: var(--papel);
	padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 7vw, 5.5rem);
	overflow: hidden;
}

.portada .dentro {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: clamp(2rem, 6vw, 5rem);
	align-items: center;
}

.portada-para {
	margin-bottom: 1.25rem;
	color: #b9d9d2;
	font-size: 1.05rem;
}

.portada h1 {
	max-width: 12ch;
}

.portada-texto {
	margin-top: 1.5rem;
	max-width: 34ch;
	font-size: clamp(1.2rem, 2.2vw, 1.45rem);
	line-height: 1.4;
}

.portada-botones {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 2rem;
}

.portada-nota {
	margin-top: 1rem;
	color: #b9d9d2;
	font-size: 1rem;
}

.movil {
	width: min(20rem, 72vw);
	border: 0.6rem solid var(--tinta);
	border-radius: 2.4rem;
	background: var(--papel);
	overflow: hidden;
	box-shadow: 0 2rem 4rem -1.5rem rgba(0, 0, 0, 0.55);
	transform: rotate(2deg);
}

.movil img {
	width: 100%;
	aspect-ratio: 362 / 600;
	object-fit: cover;
	object-position: top;
}

/* Las noches: lo único que se mueve en toda la página, y una sola vez. */

.noches {
	grid-column: 1 / -1;
	margin: clamp(1rem, 3vw, 2rem) 0 0;
}

.noches ol {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.noche {
	position: relative;
	padding: 0.7rem 0.8rem 0.8rem;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 0.6rem;
	font-size: 0.95rem;
	line-height: 1.25;
}

.noche b {
	display: block;
	font-family: var(--titulos);
	font-size: 1.15rem;
	font-weight: 600;
}

.noche span {
	color: #b9d9d2;
}

.noche-libre {
	border-color: var(--senal);
	background: var(--senal);
	color: var(--tinta);
	animation: liberar 0.5s 1.1s ease-out backwards;
}

.noche-libre span {
	color: var(--tinta);
	font-weight: 600;
}

.noche-libre::after {
	content: "";
	position: absolute;
	inset: -1px;
	border: 2px solid var(--senal);
	border-radius: inherit;
	opacity: 0;
	animation: onda 1.4s 1.2s ease-out 2;
}

.noche-libre + .noche-libre {
	animation-delay: 1.3s;
}

.noche-libre + .noche-libre::after {
	animation-delay: 1.4s;
}

@keyframes liberar {
	from {
		border-color: rgba(255, 255, 255, 0.28);
		background: transparent;
		color: var(--papel);
	}
}

@keyframes onda {
	from {
		opacity: 0.9;
		transform: scale(1);
	}

	to {
		opacity: 0;
		transform: scale(1.35);
	}
}

.noches figcaption {
	margin-top: 0.9rem;
	max-width: 60ch;
	color: #b9d9d2;
	font-size: 1rem;
}

/* --- El problema --- */

.ideas {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.5rem, 4vw, 3rem);
	margin: 3rem 0 0;
	padding: 0;
	list-style: none;
}

.ideas li {
	padding-top: 1.25rem;
	border-top: 2px solid var(--tinta);
}

.ideas svg {
	width: 2.25rem;
	height: 2.25rem;
	margin-bottom: 0.9rem;
	color: var(--verde);
}

.ideas h3 + p {
	margin-top: 0.5rem;
	color: var(--piedra);
}

.ejemplo {
	margin-top: 3rem;
	padding: 1.25rem 1.5rem;
	border-left: 0.4rem solid var(--senal);
	background: var(--arena);
	max-width: 46rem;
}

/* --- Cómo funciona --- */

.fondo-arena {
	background: var(--arena);
}

.pasos {
	margin: 3.5rem 0 0;
	padding: 0;
	list-style: none;
	counter-reset: paso;
}

.paso {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(1.5rem, 5vw, 4rem);
	align-items: center;
	counter-increment: paso;
}

.paso + .paso {
	margin-top: clamp(3rem, 7vw, 5rem);
}

.paso-texto::before {
	content: counter(paso);
	display: block;
	margin-bottom: 0.5rem;
	color: var(--verde);
	font-family: var(--titulos);
	font-size: clamp(3.5rem, 8vw, 5.5rem);
	font-weight: 700;
	line-height: 0.9;
}

.paso-texto h3 {
	font-size: clamp(1.4rem, 2.6vw, 1.8rem);
}

.paso-texto p {
	margin-top: 0.75rem;
	color: var(--piedra);
}

.captura {
	margin: 0;
	border: 1px solid var(--linea);
	border-radius: 0.8rem;
	background: #f0f0f1;
	overflow: hidden;
	box-shadow: 0 1.5rem 3rem -2rem rgba(10, 79, 71, 0.45);
}

.captura-estrecha {
	max-width: 22rem;
	margin-inline: auto;
}

.captura-correo {
	max-width: 30rem;
	margin-inline: auto;
}

.capturas-dos {
	display: grid;
	gap: 1rem;
}

.nota {
	margin-top: clamp(3rem, 6vw, 4.5rem);
	padding-top: 1.25rem;
	border-top: 1px solid var(--linea);
	color: var(--piedra);
}

/* --- Con tu sistema de reservas --- */

.fondo-niebla {
	background: var(--niebla);
}

.fondo-niebla .ideas li {
	border-top-color: var(--pino);
}

/* --- Gratis y Pro --- */

.planes {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 1.5rem;
	margin-top: 3.5rem;
	align-items: start;
}

.plan {
	padding: clamp(1.5rem, 3vw, 2.25rem);
	border: 2px solid var(--tinta);
	border-radius: 1rem;
}

.plan h3 {
	font-size: 1.6rem;
}

.plan-precio {
	margin-top: 0.4rem;
	font-family: var(--titulos);
	font-size: clamp(1.9rem, 3.5vw, 2.5rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.plan-precio small {
	display: block;
	margin-top: 0.3rem;
	font-family: var(--texto);
	font-size: 1rem;
	font-weight: 400;
	letter-spacing: 0;
}

.plan ul {
	margin: 1.5rem 0 0;
	padding: 0;
	list-style: none;
}

.plan li {
	padding: 0.7rem 0;
	border-top: 1px solid var(--linea);
}

.plan-pro {
	border-color: var(--pino);
	background: var(--pino);
	color: var(--papel);
}

.plan-pro li {
	border-top-color: rgba(255, 255, 255, 0.2);
}

.plan-oferta {
	display: inline-block;
	margin-top: 1rem;
	padding: 0.35rem 0.75rem;
	border-radius: 0.4rem;
	background: var(--senal);
	color: var(--tinta);
	font-weight: 600;
}

.plan-prueba {
	margin-top: 0.75rem;
	font-weight: 600;
}

.plan-entrada {
	margin-top: 1.5rem;
	color: #b9d9d2;
}

.plan-entrada + ul {
	margin-top: 0.5rem;
}

.plan .boton {
	margin-top: 1.5rem;
}

.plan-pie {
	margin-top: 1.5rem;
	color: var(--piedra);
}

/* Lo que más convence de la Pro: con los calendarios, todo el recorrido va solo. */
.pro-auto {
	margin-top: clamp(2rem, 4vw, 3rem);
	padding: 1.4rem 1.6rem;
	border-left: 0.4rem solid var(--senal);
	background: var(--arena);
	max-width: 52rem;
	font-size: 1.2rem;
}

.pro-auto strong {
	display: block;
	margin-bottom: 0.4rem;
	font-family: var(--titulos);
	font-size: 1.5rem;
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.pro-fotos {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: 2rem 1.5rem;
	margin-top: clamp(2.5rem, 5vw, 4rem);
	align-items: start;
}

/* Las dos capturas, grandes y una sobre otra; el mensaje de WhatsApp, a su lado. */
.pro-fotos figure:nth-child(2) {
	grid-column: 2;
	grid-row: 1 / span 2;
}

.pro-fotos figure:nth-child(3) {
	grid-column: 1;
}

.pro-fotos figure {
	margin: 0;
}

.pro-fotos figcaption {
	margin-top: 0.75rem;
	font-weight: 600;
}

/* El mensaje de WhatsApp, dibujado: no es una captura de la app. */

.chat {
	padding: 1.25rem;
	border: 1px solid var(--linea);
	border-radius: 0.8rem;
	background: var(--arena);
}

.chat-globo {
	padding: 0.9rem 1rem;
	border-radius: 0.9rem 0.9rem 0.2rem 0.9rem;
	background: var(--niebla);
	border: 1px solid #9fcfc6;
	font-size: 0.92rem;
	line-height: 1.45;
	overflow-wrap: anywhere;
}

.chat-globo p + p {
	margin-top: 0.7rem;
}

.chat-globo span {
	color: var(--verde);
	text-decoration: underline;
}

.chat-enviar {
	display: flex;
	justify-content: flex-end;
	margin-top: 0.75rem;
}

.chat-enviar svg {
	width: 2.5rem;
	height: 2.5rem;
	padding: 0.6rem;
	border-radius: 50%;
	background: var(--verde);
	color: var(--papel);
}

/* --- Instalarlo --- */

.instalar {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(2rem, 5vw, 4rem);
	margin-top: 3rem;
	align-items: start;
}

.aviso-revision {
	margin-top: 1.25rem;
	padding: 0.9rem 1.1rem;
	border-left: 0.4rem solid var(--senal);
	background: var(--papel);
	max-width: 46rem;
}

.lista-pasos {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: instalar;
}

.lista-pasos li {
	position: relative;
	padding: 1.1rem 0 1.1rem 3.25rem;
	border-top: 1px solid var(--linea);
	counter-increment: instalar;
}

.lista-pasos li::before {
	content: counter(instalar);
	position: absolute;
	left: 0;
	top: 0.85rem;
	color: var(--verde);
	font-family: var(--titulos);
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.1;
}

code {
	padding: 0.1em 0.35em;
	border-radius: 0.3em;
	background: var(--niebla);
	font-size: 0.9em;
}

/* --- Preguntas --- */

.preguntas {
	margin-top: 2.5rem;
	max-width: 48rem;
}

.preguntas details {
	border-top: 1px solid var(--linea);
}

.preguntas details:last-child {
	border-bottom: 1px solid var(--linea);
}

.preguntas summary {
	padding: 1.1rem 2.5rem 1.1rem 0;
	position: relative;
	font-family: var(--titulos);
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.25;
	cursor: pointer;
	list-style: none;
}

.preguntas summary::-webkit-details-marker {
	display: none;
}

.preguntas summary::after {
	content: "+";
	position: absolute;
	right: 0.25rem;
	top: 0.9rem;
	color: var(--verde);
	font-size: 1.6rem;
	font-weight: 400;
}

.preguntas details[open] summary::after {
	content: "−";
}

.preguntas details p {
	padding-bottom: 1.25rem;
	color: var(--piedra);
}

/* --- Contacto y pie --- */

.contacto {
	background: var(--pino);
	color: var(--papel);
}

.contacto a {
	display: inline-block;
	margin-top: 1rem;
	color: var(--senal);
	font-family: var(--titulos);
	font-size: clamp(1.6rem, 5vw, 3rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	overflow-wrap: anywhere;
}

.pie {
	background: var(--tinta);
	color: #c9c7bf;
	padding-block: 2.5rem;
	font-size: 0.95rem;
}

.pie ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	margin: 0 0 1.25rem;
	padding: 0;
	list-style: none;
}

.pie a {
	color: var(--papel);
}

.pie p {
	max-width: none;
}

.pie p + p {
	margin-top: 0.35rem;
}

/* --- Páginas legales --- */

.legal {
	padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.legal .dentro {
	max-width: 52rem;
}

.legal h1 {
	font-size: clamp(2.2rem, 5vw, 3.25rem);
}

.legal h2 {
	margin-top: 2.75rem;
	max-width: none;
	font-size: 1.6rem;
}

.legal p,
.legal ul {
	margin-top: 1rem;
	max-width: none;
}

.legal li + li {
	margin-top: 0.4rem;
}

.legal-aviso {
	padding: 0.9rem 1.1rem;
	border-left: 0.4rem solid var(--senal);
	background: var(--arena);
}

.legal address {
	margin-top: 1rem;
	font-style: normal;
}

.tabla {
	margin-top: 1.25rem;
	overflow-x: auto;
}

.legal table {
	width: 100%;
	min-width: 44rem;
	border-collapse: collapse;
	font-size: 0.95rem;
	line-height: 1.45;
}

.legal th,
.legal td {
	padding: 0.7rem 0.8rem 0.7rem 0;
	border-top: 1px solid var(--linea);
	text-align: left;
	vertical-align: top;
}

.legal th {
	border-top: 2px solid var(--tinta);
	font-weight: 600;
}

/* --- Pantallas estrechas --- */

@media (max-width: 62rem) {
	.menu {
		display: none;
	}
}

@media (max-width: 52rem) {
	.portada .dentro,
	.paso,
	.planes,
	.instalar {
		grid-template-columns: minmax(0, 1fr);
	}

	.movil {
		margin-inline: auto;
	}

	.ideas,
	.pro-fotos {
		grid-template-columns: minmax(0, 1fr);
	}

	.pro-fotos figure:nth-child(n) {
		grid-column: 1;
		grid-row: auto;
	}

	.cabecera .dentro {
		flex-wrap: wrap;
		gap: 0.6rem 1rem;
	}

	.noches ol {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	/* En el móvil sobran las tres primeras noches: se ven las cuatro que cuentan la historia. */
	.noche:nth-child(-n + 3) {
		display: none;
	}
}

@media (max-width: 30rem) {
	.cabecera .boton {
		display: none;
	}

	.noche {
		padding: 0.5rem;
		font-size: 0.8rem;
	}

	.noche b {
		font-size: 0.95rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.noche-libre,
	.noche-libre::after {
		animation: none;
	}
}
