/*
Theme Name: Eli-Mar Hotel
Theme URI: https://www.eli-marhotel.com
Author: Daniel Díaz
Description: Tema minimalista, moderno y totalmente responsivo para el Hotel Eli-Mar (A Guarda). Preparado para WPML, WooCommerce y Hotel Booking Lite (MotoPress). Comentarios desactivados y endurecimiento de seguridad incluido.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: elimar
Tags: hotel, minimalista, responsive, woocommerce, translation-ready
*/

/* ==========================================================
   1. Variables y reset
   ========================================================== */
:root {
  --navy: #0d2c4b;
  --navy-dark: #081e34;
  --navy-light: #16467a;
  --accent: #2d7dd2;
  --sea: #eaf2f9;
  --white: #ffffff;
  --text: #26313c;
  --text-light: #5f6b78;
  --border: #e3e9ef;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(13, 44, 75, .08);
  --font: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --max-w: 1180px;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}

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

a { color: var(--accent); text-decoration: none; transition: color .2s ease; }
a:hover, a:focus { color: var(--navy); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 .6em;
  letter-spacing: .005em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute !important; word-wrap: normal !important;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy); color: #fff; padding: .6em 1em;
}
.skip-link:focus { left: 0; color: #fff; }

/* ==========================================================
   2. Botones
   ========================================================== */
.btn, .button, button, input[type="submit"],
.woocommerce a.button, .woocommerce button.button,
.mphb-button, .mphb_sc_search-submit-button-wrapper button {
  display: inline-block;
  background: var(--navy);
  color: #fff !important;
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  padding: .75em 1.7em;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  transition: background .2s ease, border-color .2s ease, transform .15s ease;
}
.btn:hover, .button:hover, button:hover, input[type="submit"]:hover,
.woocommerce a.button:hover, .mphb-button:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--navy) !important;
}
.btn--ghost:hover { background: var(--navy); color: #fff !important; }

/* ==========================================================
   3. Cabecera
   ========================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 72px;
}
.site-branding { display: flex; align-items: center; gap: 12px; }
.site-branding img.custom-logo { max-height: 76px; width: auto; }
.site-title { font-size: 1.3rem; margin: 0; }
.site-title a { color: var(--navy); }
.site-description { margin: 0; font-size: .8rem; color: var(--text-light); }

.site-logo { display: block; line-height: 0; }
.site-logo img { height: 82px; width: auto; max-width: none; }

/* Navegación principal */
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.main-nav a {
  display: block; padding: .55em .7em; white-space: nowrap;
  color: var(--text); font-weight: 500; border-radius: 8px;
  font-size: .95rem;
}
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
  color: var(--navy); background: var(--sea);
}

/* Submenús */
.main-nav li { position: relative; }
.main-nav ul ul {
  position: absolute; top: 100%; left: 0; min-width: 210px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 6px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .2s ease; flex-direction: column;
}
.main-nav li:hover > ul, .main-nav li:focus-within > ul {
  opacity: 1; visibility: visible; transform: translateY(0);
}

/* Zona de utilidades: idiomas + reservar */
.header-utils { display: flex; align-items: center; gap: 14px; }
.header-utils .btn { padding: .55em 1.2em; font-size: .92rem; }

/* Selector de idiomas GTranslate (modo "Desplegable con banderas"):
   .gt_selected es el botón cerrado (bandera + nombre del idioma actual)
   y .gt_option es la lista, que el propio script de GTranslate abre y
   cierra alternando "display:block/none" por JS (no hay clase ".open"
   a la que engancharse, así que solo se le da estilo a como se ve
   colapsada y abierta, sin tocar el toggle). Se oculta el nombre del
   idioma con font-size:0 y se deja solo la bandera, como pidió el
   cliente. */
.gtranslate-slot { display: flex; align-items: center; }
.gtranslate_wrapper { position: relative; }
/* GTranslate también fuerza un ancho fijo en .gtranslate_wrapper y
   .gt_switcher (el mismo problema que .gt_selected de abajo); sin esto
   queda una franja de espacio fantasma a la derecha de la bandera. */
.gtranslate-slot .gtranslate_wrapper,
.gtranslate-slot .gt_switcher { width: fit-content !important; }
.gtranslate_wrapper #google_translate_element2 { display: none; }

/* GTranslate imprime un <style> propio por instancia, con un ID de
   contenedor aleatorio que va DENTRO de sus selectores
   (".gt_container-xxxxx .gt_switcher a"); al tener una clase más que
   los de aquí, ganan por especificidad aunque este bloque vaya después
   en el CSS. Único apaño fiable: !important en todo lo de abajo. */
.gt_switcher a { font-size: 0 !important; }
.gt_switcher img { display: block !important; width: 22px !important; height: 22px !important; border-radius: 3px !important; font-size: 0 !important; }

.gt_selected {
  /* inline-flex (no flex): un contenedor "flex" en bloque hereda el
     ancho fijo que GTranslate le pone a .gt_switcher más arriba
     ("width:auto" no lo reducía). Al ser "inline" se ciñe al contenido. */
  display: inline-flex !important; align-items: center !important;
  border: 1.5px solid var(--border) !important; border-radius: 999px !important;
  padding: 6px 10px !important; width: fit-content !important; cursor: pointer; transition: border-color .2s ease;
}
.gt_selected:hover { border-color: var(--navy) !important; }
.gt_selected a {
  display: flex !important; align-items: center !important; gap: 0 !important;
  border: 0 !important; padding: 0 !important; width: auto !important; color: var(--text) !important;
}
/* Flechita propia: GTranslate no trae ninguna en este modo. Triángulo
   sólido en vez de una esquina girada — a este tamaño, la esquina
   girada podía verse como dos trazos duplicados. */
.gt_selected::after {
  content: ""; margin-left: 7px;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid var(--text-light);
}

/* Ojo: "display" de .gt_option NO se toca — GTranslate lo alterna por
   JS con estilo inline (none/block) para abrir y cerrar la lista; si se
   fuerza aquí con !important, el desplegable se queda abierto siempre.
   Para el efecto "cuadrícula" basta con volver los enlaces
   inline-block, sin cambiar el display del contenedor. */
.gt_option {
  position: absolute !important; top: calc(100% + 10px) !important; right: 0 !important; left: auto !important; z-index: 150 !important;
  width: 168px !important; height: auto !important; margin: 0 !important; padding: 10px !important;
  background: #fff !important; border: 1px solid var(--border) !important; border-radius: var(--radius) !important;
  box-shadow: var(--shadow) !important;
}
.gt_option a {
  display: inline-block !important; padding: 4px !important; margin: 2px !important; border-radius: 6px !important; line-height: 0 !important;
}
.gt_option a:hover, .gt_option a.gt_current { background: var(--sea) !important; }

.goog-te-banner-frame, .goog-te-gadget-icon { display: none !important; }
body { top: 0 !important; }

/* Hay dos instancias del shortcode [gtranslate] (ver header.php): una
   en la cabecera de escritorio y otra dentro del panel del menú móvil,
   cada una visible solo en su franja de ancho. */
.gtranslate-slot--mobile { display: none; }

@media (max-width: 960px) {
  .header-utils > .gtranslate-slot:not(.gtranslate-slot--mobile) { display: none; }
  .gtranslate-slot--mobile {
    display: flex; justify-content: center; margin: 18px 0 4px; padding-top: 18px;
    border-top: 1px solid var(--border);
  }
  /* Se hereda el position:absolute de la regla base a propósito: en
     estático, .gt_option queda ANTES que .gt_selected en el DOM y se
     dibujaba por encima del botón en vez de debajo. En absoluto,
     "top: 100%" lo ancla debajo sin depender del orden del HTML. */
  .gtranslate-slot--mobile .gtranslate_wrapper { margin: 0 auto; }
}

/* Selector de idiomas (propio, alimentado por WPML) */
.lang-switch { position: relative; }
.lang-switch__current {
  display: flex; align-items: center; gap: 7px;
  background: transparent; border: 1.5px solid var(--border); border-radius: 999px;
  padding: .4em .9em; font-family: var(--font); font-size: .85rem; font-weight: 700;
  color: var(--text); cursor: pointer; line-height: 1;
}
.lang-switch__current:hover, .lang-switch.is-open .lang-switch__current {
  border-color: var(--navy); color: var(--navy);
}
.lang-switch__caret { transition: transform .2s ease; }
.lang-switch.is-open .lang-switch__caret { transform: rotate(180deg); }
.lang-switch__list {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 150;
  list-style: none; margin: 0; padding: 6px; min-width: 190px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.lang-switch.is-open .lang-switch__list { opacity: 1; visibility: visible; transform: none; }
.lang-switch__list li { padding: 0; }
.lang-switch__list a {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px;
  border-radius: 8px; color: var(--text); font-size: .9rem; font-weight: 500;
}
.lang-switch__list a:hover { background: var(--sea); color: var(--navy); }
.lang-switch img { display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(13,44,75,.12); }

/* Botón hamburguesa */
.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 26px; height: 3px; background: var(--navy);
  margin: 5px 0; border-radius: 2px; transition: all .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================
   4. Héroe (portada)
   ========================================================== */
.hero {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 82vh; text-align: center;
  background: var(--navy) center/cover no-repeat;
  background-attachment: fixed;
  color: #fff;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,30,52,.30), rgba(8,30,52,.68));
}
.hero__content { position: relative; z-index: 1; padding: 90px 20px; max-width: 820px; }
.hero__eyebrow {
  display: inline-block; letter-spacing: .28em; text-transform: uppercase;
  font-size: .8rem; font-weight: 600; color: #cfe0f0; margin-bottom: 18px;
}
.hero__eyebrow::before, .hero__eyebrow::after { content: "—"; margin: 0 10px; opacity: .5; }
.hero__content h1 { color: #fff; margin-bottom: .35em; }
.hero__content p { font-size: 1.2rem; color: #e8eef5; margin: 0 0 1.8em; }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .btn--ghost { color: #fff !important; border-color: #fff; }
.hero .btn--ghost:hover { background: #fff; color: var(--navy) !important; }

/* Buscador de disponibilidad sobre el héroe */
.hero-search {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px; margin: -60px auto 0; position: relative; z-index: 5;
  max-width: 980px;
}

/* Buscador propio del tema (se usa mientras no haya plugin de reservas) */
.booking-bar {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px 26px; margin: -46px auto 0; position: relative; z-index: 5;
  max-width: 980px;
}
.booking-bar form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 16px;
  align-items: end;
}
.booking-bar label {
  display: block; font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--navy); margin-bottom: 6px;
}
.booking-bar input, .booking-bar select {
  border: 1.5px solid var(--border); border-radius: 8px; padding: .65em .8em;
  font-size: .95rem; width: 100%;
}
.booking-bar button {
  white-space: nowrap;
}
@media (max-width: 900px) {
  .booking-bar form { grid-template-columns: 1fr 1fr; }
  .booking-bar button { grid-column: 1 / -1; width: 100%; }
}

/* ==========================================================
   5. Secciones
   ========================================================== */
.section { padding: 72px 0; }
.section--sea { background: var(--sea); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section__head p { color: var(--text-light); }
.section__eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .14em;
  font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: 10px;
}

/* Rejilla de tarjetas */
.grid { display: grid; gap: 28px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.card__body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.card__body h3 { margin-bottom: .35em; }
.card__body p { color: var(--text-light); font-size: .95rem; margin: 0 0 1.2em; }
.card__meta {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px;
  font-size: .85rem; color: var(--text-light);
}
.card__price { font-weight: 700; color: var(--navy); font-size: 1.1rem; }
.card__price small { font-weight: 400; color: var(--text-light); }
.card .btn { margin-top: auto; align-self: flex-start; }

/* Servicios (iconos) */
.service {
  text-align: center; padding: 30px 20px; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius);
}
.service__icon { font-size: 2rem; margin-bottom: 12px; }
.service h3 { font-size: 1.05rem; }
.service p { font-size: .9rem; color: var(--text-light); margin: 0; }

/* Franja CTA */
.cta-band { background: var(--navy); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cdd9e5; max-width: 560px; margin: 0 auto 1.6em; }
.cta-band .btn { background: #fff; border-color: #fff; color: var(--navy) !important; }
.cta-band .btn:hover { background: var(--sea); border-color: var(--sea); }

/* ==========================================================
   6. Contenido / páginas
   ========================================================== */
.page-hero {
  background: var(--navy); color: #fff; text-align: center; padding: 64px 20px;
}
.page-hero h1 { color: #fff; margin: 0; }
.page-hero p { color: #cdd9e5; margin: .6em 0 0; }

.entry-content { max-width: 820px; margin: 0 auto; }
.entry-content--wide { max-width: var(--max-w); }
.entry-content img { border-radius: var(--radius); }
.entry-content blockquote {
  border-left: 4px solid var(--accent); margin: 1.5em 0; padding: .5em 0 .5em 1.2em;
  color: var(--text-light); font-style: italic;
}

/* ==========================================================
   Galerías de WordPress (bloque moderno y shortcode clásico)
   El bloque Gallery ya trae su propio layout responsivo
   (flex-wrap + ancho por imagen); aquí solo se pule el
   aspecto visual sin pisar ese layout.
   ========================================================== */
.entry-content .wp-block-gallery,
.entry-content .gallery {
  margin: 1.75em 0;
}
.entry-content .wp-block-gallery figure,
.entry-content .gallery .gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
}
.entry-content .wp-block-gallery img,
.entry-content .gallery img {
  border-radius: var(--radius);
  transition: transform .45s ease;
  cursor: zoom-in;
}
.entry-content .wp-block-gallery figure:hover img,
.entry-content .gallery .gallery-item:hover img {
  transform: scale(1.05);
}
.entry-content .wp-block-gallery figcaption,
.entry-content .gallery .gallery-caption {
  font-size: .82rem;
  color: var(--text-light);
  padding: 6px 2px 0;
  margin: 0;
}

/* Galería clásica [gallery]: WP ya fija el ancho de cada item
   por columnas (inline), aquí solo se ordena en fila y se
   separan con huecos consistentes. */
.entry-content .gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.entry-content .gallery .gallery-item {
  margin: 0 !important;
}
.entry-content .gallery .gallery-icon img {
  width: 100%;
  height: auto;
  border: 0 !important;
}

/* Tablas (tarifas) */
table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
th, td { padding: .8em 1em; text-align: left; border-bottom: 1px solid var(--border); }
thead th { background: var(--sea); color: var(--navy); }
tbody tr:hover { background: #f7fafc; }

/* ==========================================================
   7. Formularios (contacto)
   ========================================================== */
input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
input[type="number"], select, textarea {
  width: 100%; padding: .75em 1em; font: inherit; color: var(--text);
  border: 1.5px solid var(--border); border-radius: var(--radius);
  background: #fff; transition: border-color .2s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45,125,210,.15);
}
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: .85rem; color: var(--text-light); }

/* Campo honeypot: oculto a humanos */
.hp-field { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; overflow: hidden; }

.form-msg { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-weight: 500; }
.form-msg--ok { background: #e6f6ec; color: #17693a; border: 1px solid #b9e6c9; }
.form-msg--error { background: #fdeaea; color: #a12727; border: 1px solid #f5c6c6; }

.contact-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 44px; align-items: start; }
.contact-info { background: var(--sea); border-radius: var(--radius); padding: 30px; }
.contact-info h3 { margin-top: 0; }
.contact-info ul { list-style: none; margin: 0; padding: 0; }
.contact-info li { padding: 8px 0; border-bottom: 1px solid rgba(13,44,75,.08); }
.contact-info li:last-child { border: 0; }
.contact-map iframe { width: 100%; border: 0; border-radius: var(--radius); min-height: 300px; }

/* ==========================================================
   8. Hotel Booking Lite (MotoPress) — integración visual
   ========================================================== */
.mphb_sc_search-wrapper .mphb_sc_search-form {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)) auto; gap: 18px; align-items: end;
}
.mphb_sc_search-wrapper .mphb_sc_search-form p { margin: 0; }
/* El aviso de "campos obligatorios" no es un campo más: que ocupe toda
   la fila para no robarle una columna al resto (eso dejaba huecos). */
.mphb_sc_search-wrapper .mphb-required-fields-tip {
  grid-column: 1 / -1; margin-bottom: 2px !important;
  font-size: .82rem; color: var(--text-light);
}
.mphb_sc_search-wrapper .mphb_sc_search-form label {
  display: block; font-weight: 600; margin-bottom: 6px; color: var(--navy); font-size: .9rem;
}
.mphb_sc_search-wrapper .mphb_sc_search-form label abbr,
.mphb_sc_search-wrapper .mphb-required-fields-tip abbr { text-decoration: none; }
.mphb_sc_search-wrapper .mphb_sc_search-form br { display: none; }
.mphb_sc_search-wrapper .mphb_sc_search-submit-button-wrapper { align-self: stretch; }
.mphb_sc_search-wrapper .mphb_sc_search-submit-button-wrapper input { width: 100%; height: 100%; white-space: nowrap; }
.mphb-room-type-title a { color: var(--navy); }
.mphb-price { color: var(--navy); font-weight: 700; }
.mphb-booking-form { background: var(--sea); padding: 24px; border-radius: var(--radius); }
/* Calendario de disponibilidad (jQuery datepick): rediseño completo del
   look "años 2010" por defecto de la librería, a juego con el resto del
   sitio. Estas reglas cubren tanto el calendario en línea de la ficha
   de habitación (.mphb-calendar) como el popup que abre el buscador al
   pulsar en los campos de fecha (.mphb-datepick-popup) — comparten la
   misma estructura de la librería pero cada uno colorea "disponible /
   seleccionado / hoy" a su manera, así que hay reglas para los dos. */
.datepick, .mphb-datepick-popup {
  border: 1px solid var(--border) !important; border-radius: var(--radius);
  overflow: hidden; font-family: var(--font); font-size: .9rem !important;
  box-shadow: var(--shadow);
}
.datepick-nav, .datepick-ctrl {
  background: var(--navy) !important; color: #fff !important; padding: 10px 4px;
}
.datepick-cmd { color: #fff; }
.datepick-cmd:hover, .datepick-ctrl .datepick-cmd:hover { background: var(--navy-light) !important; }
.datepick-month-header, .datepick-month-header select, .datepick-month-header input {
  background: var(--navy-light) !important; color: #fff !important; font-family: var(--font); font-weight: 600;
}
.datepick-month { border: 0 !important; }
.datepick-month-row + .datepick-month-row .datepick-month { border-top: 1px solid var(--border) !important; }
.datepick-month th {
  background: var(--sea) !important; color: var(--navy) !important;
  border: 1px solid var(--border) !important; font-weight: 700; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .03em; padding: 8px 0 !important;
}
.datepick-month th a { background: transparent !important; color: inherit !important; }
.datepick-month td {
  background: #fff !important; border: 1px solid var(--border) !important;
}
.datepick-month td a, .datepick-month td span {
  padding: .5em 0 !important; color: var(--text);
}
.datepick-month td .datepick-other-month { background: #fff !important; color: var(--text-light); }
/* :not() para que un fin de semana disponible se pinte de disponible
   (verde), no de fin de semana (azulado) — antes se veían igual y no
   se distinguía qué estaba libre. */
.datepick-month td .datepick-weekend:not(.mphb-available-date) { background: var(--sea) !important; }

/* Hoy: contorno discreto en vez del rosa por defecto */
.datepick-month td .datepick-today,
.mphb-datepick-popup .datepick-month td a.datepick-today {
  background: #fff !important; box-shadow: inset 0 0 0 2px var(--navy-light); font-weight: 700;
}
/* Seleccionado: navy sólido, coherente con los botones del sitio */
.datepick-month td .datepick-selected,
.mphb-datepick-popup .datepick-month td a.datepick-highlight,
.mphb-datepick-popup .datepick-month td a.datepick-selected,
.mphb-datepick-popup .datepick-month td span.mphb-check-in-date {
  background: var(--navy) !important; color: #fff !important; font-weight: 600;
}
.datepick-month td .datepick-highlight { background: var(--navy-light) !important; color: #fff !important; }

/* Ficha de habitación: variables propias del plugin para "disponible" */
.mphb-calendar {
  --mphb-available-date-bg: #e3f3e6;
  --mphb-available-date-color: var(--navy);
  --mphb-booked-date-bg: #f3f1ee;
  --mphb-booked-date-color: #a9a09a;
  --mphb-not-available-date-bg: #f3f1ee;
  --mphb-not-available-date-color: #a9a09a;
  --mphb-out-of-season-date-bg: #fafafa;
  --mphb-out-of-season-date-color: #c7c2bd;
  --mphb-selected-date-bg: var(--navy);
  --mphb-selected-date-color: #fff;
  --mphb-unselectable-date-color: #c7c2bd;
  border-radius: var(--radius); overflow: hidden;
}
.mphb-calendar .datepick td .mphb-available-date:hover { background: var(--navy-light) !important; color: #fff !important; }

/* Buscador (popup de fechas): disponible = mismo verde suave del resto */
.mphb-datepick-popup .datepick-month td .mphb-check-in-date { background: var(--navy) !important; color: #fff !important; }
.mphb-rooms .mphb-room-type { border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 24px; }

/* Ficha de habitación: reportaje + tarjeta de reserva fija */
.room-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .95fr); gap: 44px; align-items: start; }
.room-layout__photo { margin-bottom: 28px; }
.room-layout__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.room-layout__description :first-child { margin-top: 0; }
.room-layout__description h3 { margin: 1.6em 0 .5em; }

/* Iconos de comodidades dentro de la descripción — rellenan visualmente
   y evitan que el texto quede como un bloque plano de párrafos. */
.room-amenities {
  list-style: none; margin: 18px 0 28px; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px;
}
.room-amenities li {
  display: flex; align-items: center; gap: 9px;
  background: var(--sea); border-radius: var(--radius);
  padding: 10px 14px; font-size: .9rem; font-weight: 500; color: var(--navy);
}
.room-amenities .icon { font-size: 1.15rem; line-height: 1; }
.room-layout__gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.room-layout__gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }

.room-layout__sidebar { position: sticky; top: 96px; }
.booking-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px;
}
.booking-card h2 {
  font-family: var(--font); font-size: .8rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-light); margin: 28px 0 14px;
}
.booking-card > h2:first-child,
.booking-card > *:first-child h2 { margin-top: 0; }
.booking-card hr,
.booking-card .mphb-clear { display: none; }

/* Precio */
.booking-card .mphb-regular-price {
  margin: 0 0 6px; padding-bottom: 20px; border-bottom: 1px solid var(--border);
  font-size: .95rem; color: var(--text-light);
}
.booking-card .mphb-regular-price .mphb-price { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; color: var(--navy); }
.booking-card .mphb-price-period { font-size: .85rem; }

/* Atributos (adultos, niños, tamaño, vistas, cama…) */
.booking-card .mphb-single-room-type-attributes {
  list-style: none; margin: 0; padding: 0;
}
.booking-card .mphb-single-room-type-attributes li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid var(--border); font-size: .92rem;
}
.booking-card .mphb-single-room-type-attributes li:last-child { border-bottom: 0; }
.booking-card .mphb-attribute-title { color: var(--text-light); }
.booking-card .mphb-attribute-value { font-weight: 600; color: var(--navy); text-align: right; }

/* Calendario: el widget pinta 2 meses uno junto al otro y no reduce su
   ancho, así que en pantallas estrechas se desplaza en horizontal en
   vez de desbordar la página. */
.booking-card .mphb-calendar { margin-bottom: 6px; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.booking-card .mphb-calendar .datepick { border: 1px solid var(--border); }

/* Formulario de reserva: ya viene con fondo propio, aquí solo se integra
   en la tarjeta en vez de duplicar el marco. */
.booking-card .mphb-booking-form { background: var(--sea); padding: 20px; border-radius: var(--radius); margin-top: 4px; }
.booking-card .mphb-booking-form p { margin: 0 0 14px; }
.booking-card .mphb-booking-form label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--navy); font-size: .9rem; }
.booking-card .mphb-reserve-btn-wrapper { margin-bottom: 0 !important; }
.booking-card .mphb-reserve-btn { width: 100%; }

@media (max-width: 960px) {
  .room-layout { grid-template-columns: minmax(0, 1fr); }
  .room-layout__sidebar { position: static; }
}

/* ==========================================================
   9. WooCommerce — ajustes mínimos
   ========================================================== */
.woocommerce-page .container { padding-top: 40px; padding-bottom: 60px; }
.woocommerce ul.products li.product { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; padding-bottom: 16px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { color: var(--navy); }
.woocommerce .woocommerce-message { border-top-color: var(--accent); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea { padding: .7em 1em; }

/* ==========================================================
   10. Pie de página
   ========================================================== */
/* Sin margin-top: era espacio en blanco duplicado — todas las
   secciones ya traen su propio padding inferior (.section, .cta-band,
   .reviews-band...) y .site-footer__main añade encima otros 56px. */
.site-footer { background: var(--navy-dark); color: #b9c6d4; }
.site-footer a { color: #dce6f0; }
.site-footer a:hover { color: #fff; }
.site-footer__main {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding: 56px 0 40px;
}
.site-footer h4 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; font-family: var(--font); font-weight: 700; }
.site-footer__desc { font-size: .92rem; margin: 0 0 14px; }
.site-footer .btn { background: #fff; border-color: #fff; color: var(--navy) !important; margin-top: 6px; }
.site-footer .btn:hover { background: var(--sea); border-color: var(--sea); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 5px 0; }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: .85rem;
}
.site-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer__bottom li { padding: 0; }
.site-footer__logo { display: block; margin-bottom: 14px; line-height: 0; }
.site-footer__logo img { height: 46px; width: auto; }

/* ==========================================================
   11. Responsive
   ========================================================== */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .mphb_sc_search-wrapper .mphb_sc_search-form { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  /* .site-header tiene backdrop-filter (y position: sticky), y ambas
     propiedades convierten a un antecesor en "containing block" de sus
     descendientes "fixed": este panel quedaba encogido a la altura de la
     cabecera en vez de cubrir la pantalla. Se neutralizan mientras el
     menú está abierto. */
  .site-header:has(.main-nav.is-open) { position: static; backdrop-filter: none; }
  .main-nav {
    position: fixed; inset: 0; top: 72px; background: #fff; z-index: 99;
    transform: translateX(100%); transition: transform .28s ease;
    overflow-y: auto; padding: 20px;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { padding: 14px 10px; font-size: 1.1rem; border-bottom: 1px solid var(--border); border-radius: 0; }
  .main-nav ul ul {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: 0; box-shadow: none; padding-left: 18px;
  }
  .header-utils .btn { display: none; } /* el CTA pasa al menú móvil */
  .hero { min-height: 55vh; }
  .hero-search { margin-top: -40px; padding: 18px; }
  .section { padding: 52px 0; }
  .contact-layout { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .site-footer__main { grid-template-columns: 1fr; gap: 28px; padding: 40px 0 28px; }
  .site-footer__bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 560px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .mphb_sc_search-wrapper .mphb_sc_search-form { grid-template-columns: 1fr; }
}

/* ==========================================================
   12. Secciones enriquecidas de portada
   ========================================================== */

/* Bloque historia: foto + texto */
.about-split {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.about-split__imgs { position: relative; }
.about-split__imgs img {
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.about-split__imgs img:last-child {
  position: absolute; right: -24px; bottom: -36px; width: 46%;
  border: 6px solid #fff;
}
.about-split__body .section__eyebrow { margin-bottom: 8px; }
.about-split__body p { color: var(--text-light); }
.about-badge {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px;
  background: var(--sea); border-radius: 999px; padding: 10px 20px;
  font-size: .88rem; font-weight: 600; color: var(--navy);
}

/* Franja de datos */
.stats-band { background: var(--navy); color: #fff; padding: 44px 0; }
.stats-band .container {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center;
}
.stat__num {
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 700;
  color: #fff; line-height: 1.1;
}
.stat__label { color: #b9c6d4; font-size: .9rem; margin-top: 4px; }

/* Tarjetas de habitación con foto y precio */
.room-card { position: relative; }
.room-card .card__img-wrap { overflow: hidden; }
.room-card .card__img { transition: transform .5s ease; }
.room-card:hover .card__img { transform: scale(1.05); }
.room-card__price-tag {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  background: rgba(255,255,255,.94); color: var(--navy);
  border-radius: 999px; padding: 7px 15px; font-size: .85rem; font-weight: 700;
  box-shadow: 0 2px 10px rgba(13,44,75,.18);
}
.room-card__price-tag small { font-weight: 500; color: var(--text-light); }

/* Galería mosaico: 3 columnas + la primera foto ocupa un
   bloque de 2x2. Con 6 fotos encaja exacto y sin huecos:
   fila 1-2 → foto grande + 2 fotos apiladas a la derecha;
   fila 3 → las 3 fotos restantes en línea. */
.mosaic {
  display: grid; gap: 14px;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 190px;
}
.mosaic a { display: block; overflow: hidden; border-radius: var(--radius); position: relative; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.mosaic a:hover img { transform: scale(1.06); }
.mosaic a:nth-child(1) { grid-column: span 2; grid-row: span 2; }

/* Entorno / turismo */
.place-card { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 340px; display: flex; align-items: flex-end; }
.place-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.place-card:hover img { transform: scale(1.05); }
.place-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(8,30,52,.85));
}
.place-card__body { position: relative; z-index: 2; padding: 24px; color: #fff; }
.place-card__body h3 { color: #fff; margin-bottom: .2em; }
.place-card__body p { color: #d5e0eb; font-size: .92rem; margin: 0; }

/* CTA con foto de fondo */
.cta-band--photo { position: relative; background: var(--navy) center/cover no-repeat; overflow: hidden; }
.cta-band--photo::before { content: ""; position: absolute; inset: 0; background: rgba(8,30,52,.78); }
.cta-band--photo .container { position: relative; z-index: 1; }

/* Franja de reseñas de Google, entre el CTA y el pie de página */
.reviews-band { background: var(--sea); padding: 60px 0; }
.reviews-band__inner { max-width: 560px; margin: 0 auto; text-align: center; }
.reviews-band__glyph { color: var(--navy-light); opacity: .35; margin-bottom: 10px; }
.reviews-band__stars {
  position: relative; display: inline-block; font-size: 1.9rem; letter-spacing: 5px;
  color: rgba(13, 44, 75, .18); line-height: 1;
}
.reviews-band__stars::before {
  content: "★★★★★"; position: absolute; top: 0; left: 0; white-space: nowrap; overflow: hidden;
  width: var(--pct, 0%); color: #d79b1f;
}
.reviews-band__score { margin: 14px 0 4px; font-size: 1.15rem; color: var(--navy); }
.reviews-band__score strong { font-family: var(--font-display); font-size: 1.5rem; }
.reviews-band__count { color: var(--text-light); font-size: .95rem; }
.reviews-band__desc { color: var(--text-light); margin: 0 0 22px; }

/* Aparición al hacer scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Responsive de las secciones nuevas */
@media (max-width: 1024px) {
  .mosaic { grid-auto-rows: 170px; }
}
@media (max-width: 960px) {
  .hero { background-attachment: scroll; min-height: 70vh; }
  .about-split { grid-template-columns: 1fr; gap: 40px; }
  .about-split__imgs img:last-child { right: 0; bottom: -28px; }
  .stats-band .container { grid-template-columns: repeat(2, 1fr); }
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .mosaic a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .place-card { min-height: 260px; }
}

/* Accesibilidad: reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
