/*
 * Sumbahills — estilos del theme. Maquetado sección a sección contra Figma.
 */

/* Reset mínimo ------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-weight: 400;
	line-height: var(--leading-normal);
	color: var(--color-text);
	background: var(--color-bg);
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: inherit;
}

h1,
h2,
h3 {
	font-family: var(--font-display);
	font-weight: 400;
	margin: 0;
}

/* Contenedor ---------------------------------------------- */
.container {
	max-width: calc(var(--container-max) + 2 * var(--container-pad));
	margin-inline: auto;
	padding-inline: var(--container-pad);
}

/* Header ---------------------------------------------------
 * Transparente, superpuesto al hero. Dos mitades de nav con
 * línea inferior y logo colgante en el centro.
 */
.site-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 10;
}

.header-inner {
	display: flex;
	align-items: flex-start;
	padding-top: 9px;
}

.header-side {
	flex: 1;
	display: flex;
	align-items: center;
	height: 51px;
	border-bottom: 1.5px solid var(--color-brown);
}

.header-side--left {
	justify-content: flex-end;
}

.header-side--right {
	justify-content: space-between;
}

.header-link {
	font-size: var(--text-sm);
	font-weight: 500;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
}

.header-logo {
	flex: 0 0 auto;
	width: clamp(120px, 10vw, 192px);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 18px;
}

.header-social img {
	width: 39px;
	height: 40px;
}

.btn-whatsapp {
	display: flex;
	align-items: center;
	gap: 11px;
	width: 273px;
	height: 41px;
	padding-left: 20px;
	background: url('../img/btn-organic-header.svg') center / contain no-repeat;
	text-decoration: none;
	color: #72A6CE;
	font-size: 24px;
	font-weight: 500;
	white-space: nowrap;
}

.header-lang {
	font-size: 25px;
	font-weight: 700;
}

/* Hero ------------------------------------------------------ */
.hero {
	position: relative;
	aspect-ratio: 1920 / 1936;
	min-height: 640px;
	background: url('../img/hero-beach.jpg') top center / cover no-repeat;
	border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.hero-claim {
	position: absolute;
	top: 33.4%;
	left: 50%;
	transform: translateX(-50%);
	width: min(92%, 1312px);
	text-align: center;
	color: var(--color-cream);
}

.hero-claim h1 {
	font-size: var(--text-hero);
	line-height: var(--leading-tight);
}

.hero-claim p {
	margin: 14px 0 0;
	font-size: var(--text-h4);
	line-height: var(--leading-tight);
}

/* Intro (círculos de datos + claim + mapa, sobre el fondo del hero) */
.intro-datos {
	position: absolute;
	top: 54.7%;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	gap: 3.65vw;
	padding-inline: var(--container-pad);
}

.dato {
	flex: 0 0 auto;
	width: clamp(170px, 14.7vw, 282px);
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--color-cream);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.dato p {
	margin: 0;
	padding-inline: 8%;
	color: var(--color-navy);
	text-transform: uppercase;
	font-size: clamp(0.9375rem, 1.3vw, 1.5625rem);
	line-height: 1.08;
	font-weight: 400;
}

.dato strong {
	font-weight: 700;
}

.intro-claim {
	position: absolute;
	top: 72.3%;
	left: 50%;
	transform: translateX(-50%);
	width: min(92%, 860px);
	text-align: center;
	color: var(--color-cream);
	font-size: var(--text-h2);
	line-height: var(--leading-tight);
}

.intro-map {
	position: absolute;
	top: 81.1%;
	left: 50%;
	transform: translateX(-50%);
	width: min(99%, 1905px);
	height: auto;
}

/* Botón orgánico (forma SVG de fondo) ------------------------ */
.btn-organic {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	text-decoration: none;
	background: center / contain no-repeat;
}

.btn-organic--wide {
	background-image: url('../img/btn-organic-wide.svg');
	width: min(454px, 100%);
	height: 55px;
	color: var(--color-brown);
	font-size: clamp(1rem, 1.05vw, 1.25rem);
}

/* Sección "Descubre la isla de Sumba" ------------------------ */
.hero {
	z-index: 2;
}

.section-sumba {
	position: relative;
	z-index: 1;
	margin-top: calc(-1 * var(--radius-lg));
	background: var(--color-brown);
	border-radius: 0 0 var(--radius-lg) var(--radius-lg);
	padding-top: clamp(5rem, 8.6vw, 165px);
	padding-bottom: clamp(3rem, 4vw, 77px);
	color: var(--color-beige);
}

.sumba-grid {
	display: grid;
	grid-template-columns: minmax(340px, 445px) 1fr;
	gap: clamp(2rem, 5.4vw, 104px);
	align-items: start;
}

.sumba-texto h2 {
	color: var(--color-cream);
	font-size: var(--text-h3);
	line-height: var(--leading-tight);
	margin-bottom: 10px;
}

.sumba-texto p {
	margin: 0 0 22px;
	font-size: clamp(1rem, 1.05vw, 1.25rem);
	line-height: 1.14;
	font-weight: 300;
}

.sumba-texto strong {
	font-weight: 500;
}

.sumba-texto .btn-organic {
	margin-top: 14px;
}

.sumba-pics {
	display: grid;
	grid-template-columns: 1fr clamp(220px, 22.7vw, 436px);
	gap: 19px;
}

.sumba-pics img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--radius-md);
}

.sumba-pic-big {
	aspect-ratio: 753 / 769;
}

.sumba-pics-col {
	display: grid;
	grid-template-rows: repeat(3, 1fr);
	gap: 17px;
}

/* Sección villas ("Elige tu sueño") --------------------------- */
.section-villas {
	padding-top: clamp(3rem, 4.7vw, 90px);
	padding-bottom: clamp(3rem, 5vw, 96px);
}

.section-heading {
	display: flex;
	align-items: center;
	gap: 40px;
	color: var(--color-brown);
	font-size: var(--text-h3);
	line-height: var(--leading-tight);
	text-align: center;
	white-space: nowrap;
}

.section-heading::before,
.section-heading::after {
	content: '';
	flex: 1;
	border-top: 1.5px solid var(--color-brown);
}

.villa-row {
	display: grid;
	grid-template-columns: minmax(300px, 420px) 1fr;
	gap: clamp(2rem, 3vw, 58px);
	align-items: start;
	padding-block: clamp(3rem, 4.8vw, 92px);
}

.villa-row + .villa-row {
	border-top: 1.5px solid var(--color-brown);
}

.villa-row--reverse .villa-info {
	order: 2;
}

.villa-row--green {
	color: var(--color-green);
}

.villa-row--brown {
	color: var(--color-brown);
}

.villa-title {
	font-size: var(--text-h2);
	line-height: 0.9;
}

.villa-tagline {
	margin: 10px 0 0;
	font-size: var(--text-base);
	font-weight: 500;
	letter-spacing: 0.32em;
	text-transform: lowercase;
}

.villa-desc {
	margin-top: 12px;
	max-width: 330px;
}

.villa-desc p {
	margin: 0 0 10px;
	font-size: var(--text-base);
	font-weight: 300;
	line-height: 1.18;
}

.villa-price {
	margin: 26px 0 0;
	font-family: var(--font-display);
	line-height: 1;
}

.villa-price-prefix {
	display: block;
	font-size: var(--text-h4);
	line-height: 1.3;
}

.villa-price-amount {
	display: block;
	font-size: var(--text-price);
}

.villa-nota {
	margin: 12px 0 0;
	font-size: var(--text-base);
	font-weight: 600;
}

.villa-cta {
	margin-top: 24px;
	width: min(326px, 100%);
	height: 55px;
	color: var(--color-beige);
	font-size: clamp(1rem, 1.05vw, 1.25rem);
}

.villa-row--brown .villa-cta {
	background-image: url('../img/villas/btn-organic-brown.svg');
}

.villa-row--green .villa-cta {
	background-image: url('../img/villas/btn-organic-green.svg');
}

/* Slider horizontal con scroll nativo */
.villa-slider {
	display: flex;
	gap: 23px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 18px;
	scrollbar-color: currentColor transparent;
	scrollbar-width: thin;
}

.villa-slide {
	position: relative;
	flex: 0 0 auto;
	width: clamp(260px, 19.2vw, 368px);
	aspect-ratio: 368 / 356;
	margin: 0;
	scroll-snap-align: start;
}

.villa-slide img:first-child,
.villa-slide .attachment-large {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--radius-md);
}

.villa-zoom {
	position: absolute;
	right: -4px;
	bottom: -6px;
	width: 48px;
	height: 49px;
}

.villa-zoom img {
	width: 100%;
	height: 100%;
}

/* Sección planos ("Donde nace SumbaHills") -------------------- */
.section-planos {
	position: relative;
	z-index: 2;
	background: var(--color-cream);
	border-top: 1.5px solid var(--color-brown);
	border-radius: 0 0 var(--radius-lg) var(--radius-lg);
	padding-block: clamp(3rem, 3vw, 56px);
	color: var(--color-brown);
}

.planos-head {
	text-align: center;
	margin-bottom: clamp(2rem, 2.5vw, 49px);
}

.planos-head p {
	margin: 0 0 10px;
	font-size: var(--text-h4);
	line-height: 1;
}

.planos-head h2 {
	font-size: var(--text-hero);
	line-height: 0.9;
}

.planos-grid {
	display: grid;
	grid-template-columns: 62fr 38fr;
	gap: 25px;
}

.plano {
	position: relative;
	margin: 0;
	aspect-ratio: auto;
}

.plano > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--radius-md);
	aspect-ratio: 1083 / 615;
}

.planos-grid .plano:last-child > img {
	aspect-ratio: 664 / 615;
}

/* Sección contacto -------------------------------------------- */
.section-contacto {
	position: relative;
	z-index: 1;
	margin-top: calc(-1 * var(--radius-lg));
	background: var(--color-green);
	border-radius: 0 0 var(--radius-lg) var(--radius-lg);
	padding-top: clamp(5rem, 8.1vw, 156px);
	padding-bottom: clamp(5rem, 8.2vw, 158px);
}

.contacto-card {
	background: var(--color-cream);
	border-radius: var(--radius-md);
	display: grid;
	grid-template-columns: minmax(300px, 1fr) minmax(0, 1042px);
	gap: clamp(2rem, 4.4vw, 84px);
	padding: 36px 32px 38px clamp(1.5rem, 3.5vw, 67px);
}

.contacto-info {
	padding-top: 57px;
	color: var(--color-green);
}

.contacto-info h2 {
	font-size: var(--text-h2);
	line-height: var(--leading-tight);
	color: var(--color-green);
}

.contacto-mail {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 54px 0 0;
	font-size: var(--text-md);
	font-weight: 500;
}

.contacto-mail a {
	text-decoration: none;
}

.contacto-tel {
	display: inline-flex;
	align-items: center;
	gap: 15px;
	margin-top: 23px;
	padding: 7px 24px 7px 15px;
	border: 1.5px solid var(--color-green);
	border-radius: 20px;
	text-decoration: none;
	font-size: var(--text-md);
	font-weight: 500;
}

.contacto-socials {
	display: block;
	margin-top: clamp(3rem, 6vw, 126px);
}

.contacto-form {
	background: var(--color-green);
	border-radius: var(--radius-md);
	padding: clamp(2rem, 3vw, 57px) clamp(1.5rem, 2.8vw, 53px) clamp(2rem, 2.4vw, 46px);
	color: var(--color-cream);
}

.contacto-form h3 {
	font-size: var(--text-h4);
	line-height: 1.15;
	color: var(--color-cream);
}

.form-aviso {
	margin: 20px 0 0;
	padding: 12px 16px;
	border-radius: var(--radius-sm);
	font-size: 1rem;
}

.form-aviso--ok {
	background: var(--color-cream);
	color: var(--color-green);
}

.form-aviso--error {
	background: #f3d1c4;
	color: var(--color-brown);
}

.sh-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.form-opciones {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin: clamp(2rem, 3.3vw, 64px) 0 0;
	padding: 0;
	border: 0;
}

.form-opcion input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.form-opcion span {
	display: inline-block;
	padding: 14px 24px;
	border: 1.5px solid var(--color-beige);
	border-radius: var(--radius-sm);
	color: var(--color-beige);
	font-size: var(--text-md);
	font-weight: 300;
	cursor: pointer;
	transition: background var(--transition), color var(--transition);
}

.form-opcion input:checked + span {
	background: var(--color-cream);
	border-color: var(--color-cream);
	color: var(--color-green);
	font-weight: 400;
}

.form-opcion input:focus-visible + span {
	outline: 2px solid var(--color-beige);
	outline-offset: 2px;
}

.form-campo {
	margin: clamp(2.5rem, 3.3vw, 64px) 0 0;
	max-width: 910px;
}

.form-campo label {
	display: block;
	font-size: var(--text-md);
	font-weight: 300;
}

.form-campo input {
	display: block;
	width: 100%;
	margin-top: 2px;
	padding: 4px 0 10px;
	background: transparent;
	border: 0;
	border-bottom: 1.5px solid var(--color-cream);
	color: var(--color-cream);
	font-family: var(--font-body);
	font-size: var(--text-md);
}

.form-campo input:focus {
	outline: none;
	border-bottom-width: 2.5px;
}

.form-enviar {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	margin-top: clamp(2.5rem, 3vw, 58px);
	padding: 15px 32px 15px 17px;
	background: var(--color-cream);
	border: 0;
	border-radius: 31px;
	color: var(--color-green);
	font-family: var(--font-body);
	font-size: var(--text-md);
	font-weight: 500;
	cursor: pointer;
}

/* Pill de garantía (a caballo entre contacto y footer) -------- */
.garantia {
	position: relative;
	z-index: 3;
	margin: -36px 0;
	display: flex;
	justify-content: center;
	padding-inline: var(--container-pad);
}

.garantia p {
	margin: 0;
	min-height: 72px;
	width: min(942px, 100%);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.45em;
	padding: 10px 32px;
	background: var(--color-terracotta);
	border-radius: var(--radius-pill);
	color: var(--color-beige);
	font-size: clamp(1rem, 1.56vw, 1.875rem);
	text-align: center;
}

.garantia-light {
	font-weight: 300;
}

.garantia p strong {
	font-weight: 600;
}

.garantia-brand {
	font-family: var(--font-garamond);
	font-weight: 700;
}

/* Footer ------------------------------------------------------- */
.site-footer {
	background: var(--color-cream);
	color: var(--color-brown);
}

.footer-inner {
	display: flex;
	gap: clamp(3rem, 8vw, 150px);
	padding-block: 60px 19px;
}

.footer-logo {
	flex: 0 0 auto;
}

.footer-logo img {
	width: clamp(220px, 19.2vw, 368px);
}

.footer-main {
	flex: 1;
	max-width: 827px;
	display: flex;
	flex-direction: column;
}

.footer-cols {
	display: flex;
	justify-content: space-between;
	gap: var(--space-8);
}

.footer-col h4 {
	margin: 0 0 10px;
	font-size: 1.125rem;
	font-weight: 500;
}

.footer-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-col li {
	margin-bottom: 5px;
}

.footer-col a {
	text-decoration: none;
	font-size: var(--text-xs);
	line-height: 1.45;
	opacity: 0.75;
}

.footer-col a:hover {
	opacity: 1;
}

.footer-bottom {
	margin-top: auto;
	padding-top: var(--space-12);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-6);
}

.footer-bottom p {
	margin: 0;
	font-size: var(--text-2xs);
}

/* Ficha individual de villa ------------------------------------ */
/* En páginas sin hero el header absoluto necesita aire debajo. */
.single-villa .site-main,
.page .site-main,
.error404 .site-main {
	padding-top: 150px;
}

.single-villa-wrap {
	padding-bottom: var(--space-16);
}

.single-villa-volver {
	margin: 0 0 var(--space-4);
}

.single-villa-volver a {
	color: var(--color-brown);
	font-size: var(--text-sm);
	font-weight: 500;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.single-villa .villa-row {
	padding-block: var(--space-8);
}

/* Lightbox ----------------------------------------------------- */
.lb[hidden] {
	display: none;
}

.lb {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(0.5rem, 2vw, 2rem);
	background: rgba(14, 35, 49, 0.93);
	padding: clamp(0.75rem, 3vw, 3rem);
}

.lb-open,
.lb-open body {
	overflow: hidden;
}

.lb-stage {
	margin: 0;
	max-width: min(1200px, 84vw);
	text-align: center;
}

.lb-stage img {
	max-width: 100%;
	max-height: 84vh;
	width: auto;
	height: auto;
	margin-inline: auto;
	border-radius: var(--radius-md);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.lb-count {
	margin-top: 14px;
	color: var(--color-cream);
	font-family: var(--font-body);
	font-size: 0.9375rem;
	letter-spacing: 0.1em;
}

.lb-close,
.lb-arrow {
	background: none;
	border: 0;
	color: var(--color-cream);
	cursor: pointer;
	line-height: 1;
	padding: 8px;
	transition: opacity var(--transition);
}

.lb-close:hover,
.lb-arrow:hover {
	opacity: 0.7;
}

.lb-close {
	position: absolute;
	top: 18px;
	right: 24px;
	font-size: 3rem;
	font-family: var(--font-body);
	font-weight: 300;
}

.lb-arrow {
	font-size: clamp(3rem, 5vw, 4.5rem);
	font-family: var(--font-body);
	font-weight: 300;
	flex: 0 0 auto;
}

@media (max-width: 700px) {
	.lb-arrow {
		position: absolute;
		bottom: 12px;
	}

	.lb-prev {
		left: 18%;
	}

	.lb-next {
		right: 18%;
	}

	.lb-stage {
		max-width: 94vw;
	}

	.lb-stage img {
		max-height: 74vh;
	}
}

/* Móvil (sin diseño móvil en Figma: adaptación provisional) --- */
@media (max-width: 1700px) {
	.btn-whatsapp {
		width: 210px;
		height: 32px;
		font-size: 17px;
		padding-left: 15px;
		gap: 8px;
	}

	.btn-whatsapp img {
		width: 18px;
		height: 18px;
	}

	.header-social img {
		width: 30px;
		height: 31px;
	}

	.header-actions {
		gap: 12px;
	}

	.header-lang {
		font-size: 19px;
	}

	.header-link {
		font-size: 13px;
	}

	.header-side--right .header-link {
		margin-right: 12px;
	}
}

@media (max-width: 900px) {
	.header-inner {
		flex-direction: column;
		align-items: center;
		row-gap: 12px;
	}

	.header-logo {
		order: -1;
		width: 110px;
	}

	.header-side {
		width: 100%;
		height: auto;
		border-bottom: none;
		justify-content: center;
		gap: 24px;
	}

	.header-side--right {
		flex-wrap: wrap;
		row-gap: 12px;
	}

	.header-side--right .header-link {
		margin-right: 0;
	}

	.header-lang {
		display: none;
	}

	.header-link {
		color: var(--color-cream);
	}

	/* Hero + intro pasan a flujo normal en móvil */
	.hero {
		aspect-ratio: auto;
		min-height: 100svh;
		padding: 42svh var(--container-pad) var(--space-12);
	}

	.hero-claim,
	.intro-datos,
	.intro-claim,
	.intro-map {
		position: static;
		transform: none;
		width: 100%;
	}

	.intro-datos {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
		justify-items: center;
		padding-inline: 0;
		margin-top: var(--space-16);
	}

	.dato {
		width: min(100%, 175px);
	}

	.dato p {
		font-size: 0.9375rem;
	}

	.intro-claim {
		margin-top: var(--space-16);
	}

	.intro-map {
		margin-top: var(--space-12);
	}

	/* Sección Sumba en una columna */
	.sumba-grid {
		grid-template-columns: 1fr;
	}

	.sumba-pics {
		grid-template-columns: 1fr;
	}

	.sumba-pics-col {
		grid-template-rows: none;
		grid-template-columns: 1fr;
	}

	.sumba-pics-col img {
		aspect-ratio: 436 / 245;
	}

	/* Villas en una columna, slider a lo ancho */
	.villa-row {
		grid-template-columns: 1fr;
	}

	.villa-row--reverse .villa-info {
		order: 0;
	}

	.villa-slide {
		width: min(75vw, 320px);
	}

	.villa-desc {
		max-width: none;
	}

	.section-heading {
		white-space: normal;
		gap: 16px;
	}

	/* Planos, contacto y footer en una columna */
	.planos-grid {
		grid-template-columns: 1fr;
	}

	.contacto-card {
		grid-template-columns: 1fr;
		padding: 24px 20px 28px;
	}

	.contacto-info {
		padding-top: 12px;
	}

	.contacto-socials {
		margin-top: var(--space-8);
	}

	.form-opciones {
		gap: 10px;
	}

	.form-opcion span {
		padding: 10px 16px;
		font-size: 1rem;
	}

	.garantia {
		margin: -28px 0;
	}

	.footer-inner {
		flex-direction: column;
		align-items: center;
		gap: var(--space-8);
		text-align: center;
	}

	.footer-cols {
		flex-wrap: wrap;
		justify-content: center;
		gap: var(--space-8);
	}

	.footer-bottom {
		flex-direction: column;
		padding-top: var(--space-8);
	}
}
