/* ==========================================================================
   ODEA — estilos que theme.json no cubre.
   Tokens (colores, tipos, espaciado) en theme.json. Medidas de referencia:
   Figma "ODEA V3 – Font Revisions" (1551:75), escritorio 1899 px.
   ========================================================================== */

/* ---------- Base ---------- */
/* Cinzel para cifras y símbolos en todo el sitio (indicación de diseño). La fuente "ODEA Cinzel" solo
   cubre esos caracteres (unicode-range en theme.json): el resto de cada texto sigue con su fuente.
   Se antepone aquí y no en theme.json porque WordPress nombra cada @font-face con la primera fuente
   de la lista de su familia. */
body {
	--wp--preset--font-family--display: "ODEA Cinzel", "CS Bisera", "Arial Narrow", sans-serif;
	--wp--preset--font-family--body: "ODEA Cinzel", "Sweet Gothic", "Gill Sans", sans-serif;
	--wp--preset--font-family--label: "ODEA Cinzel", "Mono45 Headline", "DM Mono", ui-monospace, monospace;
	--wp--preset--font-family--small: "ODEA Cinzel", "Avenir Next", Avenir, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.wp-site-blocks > * + * { margin-block-start: 0; }
.od-sections > * { margin-block: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 4rem; }

:where(a, button, input, select, textarea, summary, .wp-element-button):focus-visible {
	outline: 2px solid var(--wp--preset--color--sand);
	outline-offset: 3px;
}

:where(h1, h2, h3, h4, h5, h6) { text-wrap: balance; }

/* ---------- Estilos de bloque registrados ---------- */
/* Kicker: "THE BEACH CLUB", "EAT & DRINK" (Mono45 Headline Light 24) */
.is-style-od-kicker {
	font-family: var(--wp--preset--font-family--label);
	font-weight: 300;
	font-size: var(--wp--preset--font-size--medium);
	letter-spacing: var(--wp--custom--tracking--label);
	text-transform: uppercase;
	line-height: 1;
	margin-block-end: 0.35em !important;
}

/* Item: "BEACH BEDS" (Figma: Sweet Gothic Medium 40, tracking 2 px; solo hay Light) */
.is-style-od-item {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 300;
	font-size: var(--wp--preset--font-size--x-large);
	letter-spacing: var(--wp--custom--tracking--item);
	line-height: 1.3;
}

/* Botón con borde claro sobre fondo oscuro */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	border: 1px solid var(--wp--preset--color--sand);
	color: var(--wp--preset--color--snow);
	padding-block: calc(0.75rem - 1px);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--sand);
	color: var(--wp--preset--color--plum);
}

/* Botón con borde oscuro sobre fondo claro (franja del hotel) */
.wp-block-button.is-style-od-dark > .wp-block-button__link {
	background: transparent;
	border: 1px solid var(--wp--preset--color--plum);
	color: var(--wp--preset--color--plum);
	padding-block: calc(0.75rem - 1px);
}
.wp-block-button.is-style-od-dark > .wp-block-button__link:hover {
	background: var(--wp--preset--color--plum);
	color: var(--wp--preset--color--sand);
}

.wp-element-button { white-space: nowrap; }

/* Emblema (caballito de mar) */
.od-emblem { margin: 0; }
.od-emblem img { display: block; height: auto; }

/* ---------- Cabecera ---------- */
.od-header {
	background: var(--wp--preset--color--plum);
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 50;
}
.od-header__row {
	display: grid !important;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: var(--wp--preset--spacing--30);
	min-height: 45px;
	padding-inline: clamp(1.25rem, 2.5vw, 3rem);
}
.od-header__brand { margin: 0; }
.od-header__brand img { display: block; width: 109px; height: auto; }

.od-nav { gap: clamp(1rem, 1.6vw, 2rem); }
.od-nav a { color: var(--wp--preset--color--sand); text-decoration: none; }
.od-nav a:hover { color: var(--wp--preset--color--snow); }

.od-nav .od-nav__cta > a.wp-block-navigation-item__content {
	background: var(--wp--preset--color--sand);
	color: var(--wp--preset--color--plum);
	padding: 0.6rem 0.5rem;
	border-radius: 2px;
	letter-spacing: 1px;
}
.od-nav .od-nav__cta > a.wp-block-navigation-item__content:hover { background: var(--wp--preset--color--snow); color: var(--wp--preset--color--plum); }

@media (max-width: 1180px) {
	.od-header__row { grid-template-columns: auto 1fr; }
	.od-nav { justify-content: flex-end; }
}

/* ---------- Hero ---------- */
.od-hero { min-height: clamp(640px, 52.7vw, 1000px) !important; }
.od-hero .wp-block-cover__image-background { object-position: 30% 35%; }
/* Degradado del diseño (oscurece la derecha, donde va el texto) y sombra interior */
.od-hero .wp-block-cover__background {
	opacity: 1 !important;
	background: linear-gradient(72.47deg, rgba(0, 0, 0, 0) 43.4%, rgba(11, 12, 11, 0.56) 66.9%) !important;
	box-shadow: inset 5px 5px 4px #000;
}
.od-hero .wp-block-cover__inner-container { width: 100%; align-self: stretch; display: flex; }
.od-hero__cols { flex: 1; margin: 0; align-items: stretch !important; }
.od-hero__mark { display: flex; align-items: flex-end; }
.od-hero__mark .od-emblem img {
	width: clamp(140px, 19.6vw, 373px);
	filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.25));
}
.od-hero__text { padding-top: clamp(1rem, 7vw, 8rem); }
.od-hero__text > * { max-width: 34rem; margin-inline-start: auto; margin-inline-end: 0; }
.od-hero h1 {
	max-width: none;
	margin-block: 0 var(--wp--preset--spacing--40);
	text-shadow: 0 4px 4px rgba(0, 0, 0, 0.4);
}
.od-hero p { text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25); }
.od-hero .wp-block-buttons { margin-top: var(--wp--preset--spacing--40); max-width: none; gap: 2rem; }

@media (min-width: 782px) {
	/* Columna de texto donde está en el diseño: empieza al 64,8 % del ancho */
	.od-hero__mark { flex-basis: 58% !important; }
	.od-hero__text { flex-basis: 42% !important; }
	.od-hero__text > * { margin-inline-start: 0; }
}
@media (max-width: 781px) {
	.od-hero .wp-block-cover__background { background: rgba(11, 12, 11, 0.5) !important; }
	.od-hero__cols { flex-direction: column-reverse; flex-wrap: nowrap !important; justify-content: flex-end; gap: var(--wp--preset--spacing--50); }
	.od-hero__mark .od-emblem img { width: 120px; }
	.od-hero__text { padding-top: 0; }
}

/* ---------- Banda ---------- */
.od-band {
	padding-block: clamp(0.5rem, 0.8vw, 0.9rem);
	border-block: 1px solid rgba(215, 205, 192, 0.18);
}
.od-band p {
	text-wrap: balance;
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	word-spacing: 0.35em;
	line-height: 1.4;
}
.od-band span { margin-inline: 0.35em; }

/* ---------- A house of culture ---------- */
.od-culture { min-height: clamp(560px, 59.2vw, 1124px) !important; }
.od-culture .wp-block-cover__image-background { object-position: center top; }
.od-culture .wp-block-cover__inner-container {
	width: min(100%, 37.4vw) !important;
	min-width: 22rem;
	margin-top: clamp(1.5rem, 4.9vw, 5.8rem);
	margin-right: clamp(0rem, 5.9vw - 2rem, 7rem);
}
.od-culture h2 { margin-block: 0 var(--wp--preset--spacing--30); }
.od-culture p:not([class*="is-style"]) { max-width: 28em; }

@media (max-width: 781px) {
	.od-culture .wp-block-cover__background { opacity: 0.55 !important; background: var(--wp--preset--color--plum); }
	.od-culture .wp-block-cover__inner-container { width: 100% !important; min-width: 0; margin: 0; }
}

/* ---------- Imagen + texto a sangre (Find your place / Eat & drink) ---------- */
.od-feature { gap: 0; }
.od-feature .wp-block-media-text__media { align-self: stretch; margin: 0; }
.od-feature .wp-block-media-text__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.od-feature .wp-block-media-text__content > * { margin-block: 0; }

/* Find your place: texto a la izquierda, foto 1080 × 1182 */
.od-places .wp-block-media-text__media img { min-height: clamp(480px, 62.2vw, 1182px); }
.od-places .wp-block-media-text__content {
	padding: clamp(3rem, 9.4vw, 11.2rem) var(--wp--preset--spacing--50) var(--wp--preset--spacing--70) clamp(1.25rem, 6.1vw, 7.25rem);
}
.od-places h2 { max-width: 6.5em; margin-bottom: clamp(1.25rem, 2.4vw, 2.6rem) !important; }
.od-places .wp-block-media-text__content > p { max-width: 23.4em; } /* 562 px a 24 px */
.od-items { margin-top: clamp(1.5rem, 1.8vw, 2.1rem) !important; }
.od-items > * { margin-block: 0; max-width: 20.2em; } /* 484 px a 24 px */
.od-items h3 { margin-top: clamp(1.25rem, 2.4vw, 2.9rem); }
.od-items h3:first-child { margin-top: 0; }

/* Eat & drink: foto 878 × 943 a la izquierda */
.od-food .wp-block-media-text__media img { min-height: clamp(420px, 49.7vw, 943px); }
.od-food .wp-block-media-text__content { padding: var(--wp--preset--spacing--60) clamp(1.25rem, 10.4vw, 12.4rem); }
.od-food h2 { margin-bottom: var(--wp--preset--spacing--30) !important; }
.od-food .wp-block-media-text__content > p:not([class*="is-style"]) { max-width: 24em; }
.od-food .wp-block-buttons { margin-top: clamp(1.5rem, 4.8vw, 5.75rem) !important; gap: 1rem; }

@media (max-width: 600px) {
	.od-feature.is-stacked-on-mobile .wp-block-media-text__media img { min-height: 0; aspect-ratio: 4 / 3; }
	.od-places.is-stacked-on-mobile .wp-block-media-text__content { padding-top: var(--wp--preset--spacing--60); }
	/* En móvil la foto va arriba también en "Find your place" */
	.od-places.is-stacked-on-mobile .wp-block-media-text__media { grid-row: 1; }
	.od-places.is-stacked-on-mobile .wp-block-media-text__content { grid-row: 2; }
}

/* ---------- After the sun goes down ---------- */
.od-night { padding-block: clamp(2.5rem, 3.4vw, 4rem) clamp(2.5rem, 4.1vw, 4.9rem); }
.od-night h2 { margin-block: 0 var(--wp--preset--spacing--40); }
.od-night__intro { max-width: 50rem; margin-inline: auto !important; }
.od-night__img { margin-block: var(--wp--preset--spacing--50) 0 !important; }
.od-night__img img { width: 100%; height: auto; aspect-ratio: 1899 / 1068; object-fit: cover; display: block; }
.od-night__cols { margin-top: clamp(2rem, 2.5vw, 3rem) !important; gap: var(--wp--preset--spacing--50); }
.od-night__cols h3 { margin-block: 0 0.5rem; line-height: 0.8; }
.od-night__cols p { margin: 0; }

/* ---------- Stay a little longer ---------- */
.od-hotel { padding-block: clamp(2rem, 3.3vw, 4rem); }
.od-hotel__row { gap: var(--wp--preset--spacing--40) var(--wp--preset--spacing--60); }
.od-hotel__row > * { margin: 0; }
.od-hotel h2 { line-height: 1.12; flex: 0 1 auto; }
.od-hotel__text { flex: 1 1 22rem; max-width: 30em; }

/* ---------- Your day by the sea ---------- */
.od-cta {
	background: radial-gradient(ellipse 55% 55% at 50% 71.5%, #431c23 9.5%, #2a181d 100%);
	color: var(--wp--preset--color--sand);
	padding-block: clamp(3.5rem, 7.1vw, 8.4rem);
	border-bottom: 14px solid var(--wp--preset--color--sand);
}
.od-cta .od-emblem { margin-bottom: clamp(1.5rem, 2.6vw, 3.1rem) !important; }
.od-cta .od-emblem img { width: clamp(96px, 7.8vw, 148px) !important; }
.od-cta h2 { margin-block: 0 var(--wp--preset--spacing--40); line-height: 0.86; }
.od-cta p { max-width: 54rem; margin-inline: auto !important; }
.od-cta .wp-block-buttons { margin-top: var(--wp--preset--spacing--40); gap: 1.4rem; }

/* ---------- Pie ---------- */
.od-footer { padding-block: clamp(2.5rem, 2.8vw, 3.3rem) clamp(2.5rem, 3.3vw, 3.9rem); }
.od-footer__cols { gap: var(--wp--preset--spacing--50); }
.od-footer__brand > * { margin-block: 0; }
.od-footer__brand .od-emblem { margin-bottom: 1rem !important; }
.od-footer__brand .wp-block-image:not(.od-emblem) img { width: 184px; height: auto; }
.od-footer__tagline {
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.25;
	max-width: 24em;
	margin-top: 1.4rem !important;
}
.od-footer__brand .wp-block-buttons { margin-top: 1.25rem !important; }

.od-footer__title {
	font-family: var(--wp--preset--font-family--label);
	font-weight: 400;
	font-size: var(--wp--preset--font-size--label);
	letter-spacing: var(--wp--custom--tracking--label);
	line-height: 1.2;
	margin-block: 0 1.25rem;
}
.od-footer__small {
	font-family: var(--wp--preset--font-family--small);
	font-weight: 500;
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: 0;
	line-height: 1.25;
	margin-block: 0 0.75rem;
	max-width: 14em;
}
.od-footer__links {
	list-style: none;
	padding: 0;
	margin: 0;
	font-family: var(--wp--preset--font-family--label);
	font-weight: 300;
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: var(--wp--custom--tracking--label);
	text-transform: uppercase;
}
.od-footer__links li { margin-block: 0 0.9rem; }
.od-footer__links a { text-decoration: none; }
.od-footer__links a:hover { text-decoration: underline; }
.od-footer__links--underline a {
	display: inline-block;
	border-top: 1px solid var(--wp--preset--color--sand);
	padding-top: 0.6rem;
}

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