/*
 * KZ Noyol — Domenca. Crema, naranja y café; serif Instrument Serif para los
 * títulos y Stage Grotesk en versalitas para los textos.
 * Colores (desde includes/desarrollos/domenca.php):
 *   --dz-primario naranja · --dz-arena crema · --dz-acento café · --dz-texto naranja hondo
 */

@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

.kzn-desarrollo--domenca {
	--dm-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
	background: var(--dz-arena);
	color: var(--dz-texto);
}
.dm-contenedor { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 24px; }

.dm-titulo-serif { color: var(--dz-primario); font-family: var(--dm-serif); font-size: clamp(28px, 2.6vw, 38px); font-weight: 400; line-height: 1.15; }
.dm-titulo-serif--grande { font-size: clamp(42px, 5vw, 64px); }
.dm-titulo-serif em, .dm-frase-serif em { font-style: italic; }
.dm-versalitas { font-size: 12.5px; font-weight: 500; letter-spacing: .22em; line-height: 1.8; text-transform: uppercase; }
.dm-boton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 30px;
	border-radius: 999px;
	background: var(--dz-acento);
	box-shadow: 0 8px 18px rgba(0, 0, 0, .08);
	color: #fff;
	font-size: 12.5px;
	font-weight: 500;
	letter-spacing: .18em;
	text-decoration: none;
	text-transform: uppercase;
	transition: transform .2s, box-shadow .2s;
}
.dm-boton:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(0, 0, 0, .12); }

/* ---------- Portada ---------- */

.dm-portada__arriba { position: relative; display: flex; min-height: 92vh; overflow: hidden; background: #2b3a2c; color: #fff; }
.dm-portada__video { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; object-position: center bottom; }
.dm-portada__arriba::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0, 0, 0, .4) 0%, rgba(0, 0, 0, .1) 38%, rgba(0, 0, 0, .55) 100%); }
.dm-portada__dentro { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 48px; width: 100%; max-width: 1120px; margin: 0 auto; padding: calc(var(--kzn-cabecera-alto) + 30px) 32px 90px; }
.dm-portada__franja { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 20px; font-size: clamp(10px, .8vw, 12.5px); letter-spacing: .16em; line-height: 1.5; text-transform: uppercase; }
.dm-portada__lado--der { text-align: right; }
.dm-portada__lado em { font-style: normal; font-weight: 700; }
.dm-portada__logo { width: clamp(170px, 18vw, 250px); }
.dm-portada__centro { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 20px; text-align: center; }
.dm-portada__titulo { display: flex; flex-direction: column; gap: .25em; font-family: var(--dm-serif); font-size: clamp(34px, 3.6vw, 52px); font-weight: 400; line-height: 1.05; letter-spacing: .01em; }
.dm-portada__subtitulo { font-size: .9em; }
.dm-portada__titulo em { font-style: italic; }
.dm-portada__descripcion { max-width: 30em; font-size: clamp(11px, .85vw, 13px); letter-spacing: .24em; line-height: 1.9; text-transform: uppercase; }
.dm-portada__boton { margin-top: 10px; color: #fff; font-size: 12px; letter-spacing: .25em; text-decoration: none; text-transform: uppercase; }
.dm-portada__boton:hover { text-decoration: underline; text-underline-offset: 6px; }
.dm-portada__bajar { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .85); border-radius: 50%; color: #fff; transition: background-color .2s, transform .2s; }
.dm-portada__bajar:hover { background: rgba(255, 255, 255, .12); transform: translateY(2px); }
.dm-portada__bajar svg { width: 12px; height: 16px; fill: currentColor; }

/* Entrada escalonada del texto de la portada. */
.kzn-js .dm-entra { opacity: 0; animation: dm-sube .9s ease-out forwards; }
.kzn-js .dm-entra:nth-child(1) { animation-delay: .1s; }
.kzn-js .dm-portada__titulo .dm-entra:nth-child(2) { animation-delay: .3s; }
.kzn-js .dm-portada__descripcion { animation-delay: .5s; }
.kzn-js .dm-portada__boton { animation-delay: .7s; }
.kzn-js .dm-portada__bajar { animation-delay: .85s; }
@keyframes dm-sube { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.dm-portada__sello { position: relative; z-index: 3; display: flex; justify-content: center; margin-top: -65px; }
/* Sello: círculo y sol quietos; solo gira el anillo de texto. */
.dm-sello { position: relative; display: grid; place-items: center; width: 130px; aspect-ratio: 1; border-radius: 50%; background: #F83D21; color: #7B1F00; }
.dm-sello__texto { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dm-sello__texto text { fill: currentColor; font-family: var(--dm-serif); font-size: 21px; letter-spacing: .02em; }
.dm-sello__sol { width: 35%; fill: currentColor; transform: translateY(-26%); }
.dm-gira { animation: dm-gira 30s linear infinite; }
@keyframes dm-gira { to { transform: rotate(360deg); } }
.dm-portada__abajo { padding: 70px 24px 40px; text-align: center; }
.dm-frase-serif { color: var(--dz-primario); font-family: var(--dm-serif); font-size: clamp(26px, 2.6vw, 36px); line-height: 1.3; }

@media (max-width: 1023px) { .dm-portada__lado--izq { visibility: hidden; } }
@media (max-width: 767px) {
	.dm-portada__dentro { padding-inline: 20px; gap: 36px; }
	.dm-portada__franja { grid-template-columns: 1fr auto; }
	.dm-portada__lado--izq { display: none; }
	.dm-portada__sello { margin-top: -45px; }
	.dm-sello { width: 90px; }
}
@media (prefers-reduced-motion: reduce) {
	.kzn-js .dm-entra { opacity: 1; animation: none; }
	.dm-gira { animation: none; }
}

/* ---------- Entorno ---------- */

.dm-entorno { padding: 30px 0 70px; text-align: center; }
.dm-entorno__video { max-width: 1000px; margin: 0 auto 30px; overflow: hidden; aspect-ratio: 16 / 9; }
.dm-entorno__video video { width: 100%; height: 100% !important; object-fit: cover; }
.dm-entorno .dm-titulo-serif { color: #222; }
.dm-entorno .dm-versalitas { max-width: 640px; margin: 14px auto 0; }

/* ---------- A solo 400 metros del mar ---------- */

.dm-mar { padding: 40px 24px 80px; overflow: hidden; }
.dm-mar__rejilla { display: grid; grid-template-columns: 28% 34% 32%; grid-template-rows: auto auto; gap: 32px; max-width: 1280px; margin: 0 auto; }
.dm-mar__foto { overflow: hidden; }
.dm-mar__foto img { width: 100%; height: 100% !important; object-fit: cover; }
.dm-mar__foto--1 { grid-column: 1; grid-row: 1 / 3; min-height: 520px; }
.dm-mar__foto--2 { grid-column: 2; grid-row: 1; align-self: end; aspect-ratio: 4 / 3; }
.dm-mar__foto--3 { grid-column: 3; grid-row: 2; align-self: end; aspect-ratio: 16 / 9; }
.dm-mar__foto--3 img { object-position: center 60%; }
.dm-mar__cifra { grid-column: 3; grid-row: 1; align-self: center; display: flex; align-items: center; justify-content: flex-end; gap: 18px; color: var(--dz-primario); font-family: var(--dm-serif); font-weight: 400; }
.dm-mar__palabras { display: flex; flex-direction: column; gap: 4px; font-size: clamp(22px, 2.2vw, 34px); font-style: italic; line-height: 1.1; }
.dm-mar__numero { font-size: clamp(74px, 9.5vw, 150px); line-height: .85; font-variant-numeric: tabular-nums; }
.dm-mar__info { grid-column: 2; grid-row: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding-top: 26px; }
.dm-mar__info .dm-versalitas { max-width: 320px; }
@media (max-width: 1199px) {
	.dm-mar__rejilla { grid-template-columns: minmax(0, 52%) minmax(0, 48%); grid-template-rows: auto; gap: 24px 32px; }
	.dm-mar__foto--1 { grid-column: 1; grid-row: 1 / 4; }
	.dm-mar__cifra { grid-column: 2; grid-row: 1; justify-content: flex-start; }
	.dm-mar__foto--2 { grid-column: 2; grid-row: 2; max-width: 280px; justify-self: center; }
	.dm-mar__info { grid-column: 2; grid-row: 3; }
	.dm-mar__foto--3 { grid-column: 1 / 3; grid-row: 4; aspect-ratio: 16 / 6; }
}
@media (max-width: 767px) {
	.dm-mar__rejilla { display: flex; flex-direction: column; gap: 22px; }
	/* align-self: stretch anula el «end» de escritorio, que en columna encogía la foto. */
	.dm-mar__foto--1, .dm-mar__foto--2, .dm-mar__foto--3 { align-self: stretch; min-height: 0; height: 320px; max-width: none; aspect-ratio: auto; }
	.dm-mar__cifra { order: 2; justify-content: center; }
	.dm-mar__foto--2 { order: 3; }
	.dm-mar__info { order: 4; align-items: center; text-align: center; }
	.dm-mar__foto--3 { order: 5; }
}

/* ---------- Los cinco lotes ---------- */

.dm-lotes { padding: 60px 0 90px; overflow: hidden; }
.dm-lotes__dentro { display: grid; grid-template-columns: 40% 55%; justify-content: space-between; align-items: center; gap: 5%; }
.dm-lotes__izq { display: flex; flex-direction: column; }
.dm-letras { position: relative; width: 100%; max-width: 450px; aspect-ratio: 427 / 483; }
.dm-letras__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dm-letras__base path { fill: transparent; stroke: var(--dz-primario); stroke-width: 1.2; opacity: .3; }
.dm-letras__capa { fill: var(--dz-primario); }
.dm-letras__capa--1 { clip-path: circle(0% at 20% 20%); }
.dm-letras__capa--2 { clip-path: circle(0% at 85% 85%); }
.dm-letras__capa--3 { clip-path: circle(0% at 50% 50%); }
.dm-letras.es-visible .dm-letras__capa--1 { animation: dm-revela-1 2.5s ease-out forwards; }
.dm-letras.es-visible .dm-letras__capa--2 { animation: dm-revela-2 3s ease-out .3s forwards; }
.dm-letras.es-visible .dm-letras__capa--3 { animation: dm-revela-3 2.5s ease-out .5s forwards; }
@keyframes dm-revela-1 { to { clip-path: circle(150% at 20% 20%); } }
@keyframes dm-revela-2 { to { clip-path: circle(150% at 85% 85%); } }
@keyframes dm-revela-3 { to { clip-path: circle(150% at 50% 50%); } }
.dm-lotes__texto { align-self: flex-end; width: 32%; margin: -25% 5% 0 0; color: var(--dz-texto); font-size: 13px; font-weight: 500; letter-spacing: .05em; line-height: 1.45; text-align: right; text-transform: uppercase; }
.dm-lotes__der { display: flex; flex-direction: column; gap: 30px; }

/* Nube de etiquetas: sin JS es una fila; con JS (.es-esfera) gira en 3D. */
.dm-nube { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--dz-primario); font-family: var(--dm-serif); font-size: clamp(22px, 2.4vw, 36px); line-height: 1.1; }
.dm-nube.es-esfera { position: relative; display: block; width: 100%; max-width: 450px; height: 220px; margin-inline: auto; }
.dm-nube.es-esfera li { position: absolute; top: 50%; left: 50%; white-space: nowrap; will-change: transform, opacity; }
.dm-lotes__video { overflow: hidden; aspect-ratio: 16 / 9; border-radius: 4px; }
.dm-lotes__video video { width: 100%; height: 100% !important; object-fit: cover; transition: transform 1.5s ease; }
.dm-lotes__video:hover video { transform: scale(1.05); }
@media (max-width: 1024px) {
	.dm-lotes__dentro { grid-template-columns: 45% 50%; }
	.dm-lotes__texto { width: 40%; margin-top: -15%; }
}
@media (max-width: 767px) {
	.dm-lotes__dentro { display: flex; flex-direction: column; gap: 40px; }
	.dm-lotes__izq { align-items: center; }
	.dm-letras { max-width: 300px; }
	.dm-lotes__texto { align-self: center; width: 90%; margin: 30px 0 0; text-align: center; }
	.dm-nube.es-esfera { height: 190px; max-width: 320px; }
}
@media (prefers-reduced-motion: reduce) {
	.dm-letras__capa { clip-path: none !important; animation: none !important; }
}

/* ---------- Tranquilidad y respaldo ---------- */

.dm-respaldo { padding: 70px 0 90px; overflow: hidden; }
.dm-respaldo__dentro { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; }
.dm-polaroids { position: relative; height: 450px; max-width: 500px; width: 100%; margin: 0 auto; }
.dm-polaroid {
	position: absolute;
	display: block;
	padding: 12px 12px 22px;
	border: 0;
	background: #fff;
	box-shadow: 0 15px 35px rgba(0, 0, 0, .15), 0 5px 15px rgba(0, 0, 0, .05);
	cursor: pointer;
	text-align: left;
	transition: transform .5s ease, box-shadow .3s;
}
.dm-polaroid--1 { top: 20px; left: 50%; z-index: 1; width: 260px; transform: translateX(-90%) rotate(-15deg); }
.dm-polaroid--2 { top: 60px; left: 50%; z-index: 1; width: 280px; transform: translateX(-10%) rotate(8deg); }
.dm-polaroid.es-arriba { z-index: 2; }
.dm-polaroid:hover { box-shadow: 0 22px 45px rgba(0, 0, 0, .2); }
@media (hover: hover) { .dm-polaroid:hover { z-index: 3; } }
.dm-polaroid__foto { display: block; aspect-ratio: 1; overflow: hidden; background: #eee; }
.dm-polaroid__foto img { width: 100%; height: 100% !important; object-fit: cover; }
.dm-polaroid__pie { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 14px; padding: 0 4px; color: var(--dz-texto); }
.dm-polaroid__texto { font-size: 10.5px; font-weight: 500; letter-spacing: .15em; line-height: 1.4; text-transform: uppercase; }
.dm-polaroid__numero { font-family: var(--dm-serif); font-size: 18px; font-style: italic; }
.dm-respaldo__texto { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.dm-respaldo__texto .dm-versalitas { max-width: 600px; }
.dm-garantias { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 560px; margin-top: 10px; }
.dm-garantias li {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 13px 24px;
	border-radius: 999px;
	background: var(--dz-primario);
	box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
	color: #fff;
	font-size: 11.5px;
	font-weight: 500;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.dm-garantias img { width: 20px; filter: brightness(0) invert(1); }
@media (max-width: 1023px) {
	.dm-respaldo__dentro { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 600px) {
	.dm-polaroids { height: 400px; }
	.dm-polaroid--1 { width: 210px; left: 45%; transform: translateX(-50%) rotate(-10deg); }
	.dm-polaroid--2 { width: 220px; left: 55%; transform: translateX(-50%) rotate(5deg); }
	.dm-garantias li { justify-content: center; width: 100%; }
}

/* ---------- Puntos estratégicos ---------- */

.dm-puntos { padding: 60px 0 90px; }
.dm-puntos__titulo { max-width: 760px; margin: 0 auto 46px; color: var(--dz-primario); font-size: clamp(24px, 3vw, 40px); line-height: 1.35; text-align: center; }
.dm-puntos__rejilla { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; height: min(75vh, 720px); min-height: 500px; }
.dm-punto { position: relative; margin: 0; overflow: hidden; }
.dm-punto img { width: 100%; height: 100% !important; object-fit: cover; transition: transform 1.2s cubic-bezier(.19, 1, .22, 1); }
.dm-punto:hover img { transform: scale(1.05); }
.dm-punto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .15) 0%, transparent 30%, rgba(0, 0, 0, .5) 100%); pointer-events: none; }
.dm-punto figcaption { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 30px 16px 28px; color: #fff; text-align: center; }
.dm-punto__ante { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-shadow: 0 2px 4px rgba(0, 0, 0, .3); text-transform: uppercase; }
.dm-punto__nombre { font-family: var(--dm-serif); font-size: clamp(26px, 3vw, 42px); text-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.dm-puntos__mapa {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 5;
	display: grid;
	place-items: center;
	width: 130px;
	height: 130px;
	padding: 22px;
	border-radius: 50%;
	background: var(--dz-primario);
	box-shadow: 0 10px 30px rgba(229, 65, 42, .4);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .12em;
	line-height: 1.35;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	transform: translate(-50%, -50%);
	transition: background-color .3s, box-shadow .3s;
}
.dm-puntos__mapa:hover { background: #cf3420; box-shadow: 0 14px 36px rgba(229, 65, 42, .5); }
@media (max-width: 768px) {
	.dm-puntos__rejilla { grid-template-columns: 1fr; height: auto; min-height: 0; gap: 90px; }
	.dm-punto { aspect-ratio: 4 / 3; }
	.dm-puntos__mapa { width: 104px; height: 104px; font-size: 8.5px; }
}

/* ---------- Firma con nubes ---------- */

.dm-firma { position: relative; padding: clamp(48px, 7vh, 84px) 24px 60px; overflow: hidden; background: linear-gradient(180deg, var(--dz-arena) 0%, #fff 100%); text-align: center; }
.dm-nube-cielo { position: absolute; z-index: 0; width: 40vw; max-width: 360px; filter: drop-shadow(0 12px 30px rgba(0, 0, 0, .16)); pointer-events: none; }
.dm-nube-cielo--1 { top: 18%; left: -35vw; animation: dm-cruza-1 85s linear infinite; }
.dm-nube-cielo--2 { top: 42%; right: -38vw; animation: dm-cruza-2 95s linear infinite; }
@keyframes dm-cruza-1 { to { transform: translateX(130vw); } }
@keyframes dm-cruza-2 { to { transform: translateX(-140vw); } }
.dm-firma__dentro { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.dm-firma__logo { position: relative; display: inline-block; }
.dm-firma__marca { width: clamp(220px, 34vw, 360px); }
.dm-firma__sello { position: absolute; top: 32%; right: -26%; width: clamp(80px, 9vw, 120px); filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .2)); transform: translateY(-50%) rotate(-3deg); }
.dm-firma__frase { margin-top: 6px; color: var(--dz-primario); font-family: var(--dm-serif); font-size: clamp(22px, 2.4vw, 34px); }
@media (max-width: 767px) {
	.dm-nube-cielo { width: 60vw; max-width: none; }
	.dm-nube-cielo--1 { left: -60vw; }
	.dm-nube-cielo--2 { right: -60vw; }
	.dm-firma__logo { display: flex; flex-direction: column; align-items: center; }
	.dm-firma__sello { position: static; margin-top: 10px; transform: rotate(-3deg); }
}
@media (prefers-reduced-motion: reduce) { .dm-nube-cielo { animation: none; } }

/* ---------- Contacto en Domenca ---------- */

.kzn-desarrollo--domenca .kzn-contacto--desarrollo { background: #fff; }
.kzn-desarrollo--domenca .kzn-contacto--desarrollo .kzn-titulo { color: var(--dz-primario); font-family: var(--dm-serif); font-weight: 400; letter-spacing: 0; }
.kzn-desarrollo--domenca .kzn-contacto--desarrollo .kzn-boton { background: var(--dz-acento); }
