/* ========== HOTEL VILLA ROMANICA — DESIGN SYSTEM ========== */
/* Google Fonts loaded via <link> in HTML <head> for better performance */

:root {
  --color-primary: #8B6914;
  --color-primary-light: #C4A44A;
  --color-primary-dark: #5C4610;
  --color-secondary: #2C4A3E;
  --color-secondary-light: #3d6b5a;
  --color-accent: #C4573A;
  --color-bg-dark: #1A1A1A;
  --color-bg-light: #FAF8F5;
  --color-bg-warm: #F5EFE6;
  --color-bg-card: #FFFFFF;
  --color-text: #2D2D2D;
  --color-text-light: #6B6B6B;
  --color-text-muted: #999;
  --color-white: #FFFFFF;
  --color-border: #e8e0d4;
  --color-success: #27ae60;
  --color-error: #e74c3c;
  --font-heading: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-accent: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.16);
  --shadow-xl: 0 16px 60px rgba(0,0,0,.2);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --transition: .3s ease;
  --transition-slow: .6s ease;
  --max-width: 1280px;
  --nav-height: 80px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg-light);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
button { cursor: pointer; border: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: var(--color-text); }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
h4 { font-size: 1.15rem; }
.section-label {
  font-family: var(--font-accent);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: .5rem;
  display: block;
}
.section-title { margin-bottom: 1rem; }
.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-light);
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

/* ========== LAYOUT ========== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }
.section { padding: 6rem 0; }
.section--dark { background: var(--color-bg-dark); color: var(--color-white); }
.section--dark h2, .section--dark h3 { color: var(--color-white); }
.section--warm { background: var(--color-bg-warm); }
.text-center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .9rem 2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .5px;
  transition: var(--transition);
  border: 2px solid transparent;
}
.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn--primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn--outline {
  border-color: var(--color-white);
  color: var(--color-white);
  background: transparent;
}
.btn--outline:hover {
  background: var(--color-white);
  color: var(--color-text);
}
.btn--secondary {
  background: var(--color-secondary);
  color: var(--color-white);
}
.btn--secondary:hover {
  background: var(--color-secondary-light);
  transform: translateY(-2px);
}
.btn--accent {
  background: var(--color-accent);
  color: var(--color-white);
}
.btn--large { padding: 1.1rem 2.6rem; font-size: 1.05rem; }

/* ========== NAVBAR ========== */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
}
.navbar--solid,
.navbar.scrolled {
  background: rgba(26,26,26,.92);
  backdrop-filter: blur(20px);
  padding: .6rem 0;
  box-shadow: var(--shadow-md);
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  display: flex; align-items: center; gap: .75rem;
  color: var(--color-white);
}
.nav-brand-icon {
  font-size: 1.6rem;
}
.nav-brand h1 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-white);
  font-weight: 700;
}
.nav-brand span {
  font-size: .7rem;
  color: var(--color-primary-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: var(--font-accent);
}
.nav-links {
  display: flex; align-items: center; gap: 2rem;
}
.nav-links a {
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  font-weight: 500;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--color-primary-light);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--color-white); }
.nav-links a:hover::after { width: 100%; }
.nav-cta .btn { padding: .6rem 1.5rem; font-size: .85rem; }
.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; padding: 5px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--color-white);
  transition: var(--transition);
}

/* ========== HERO ========== */
.hero {
  position: relative;
  height: 100vh; min-height: 600px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.4) 0%,
    rgba(0,0,0,.2) 40%,
    rgba(0,0,0,.5) 100%
  );
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 800px;
  padding: 0 2rem;
}
.hero-stars {
  font-size: 1.2rem;
  color: var(--color-primary-light);
  letter-spacing: 6px;
  margin-bottom: 1rem;
}
.hero h1 {
  color: var(--color-white);
  margin-bottom: 1rem;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.hero-subtitle {
  color: rgba(255,255,255,.9);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-style: italic;
  font-family: var(--font-heading);
  margin-bottom: 2.5rem;
}
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  color: var(--color-white);
  font-size: .8rem;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  animation: float 2s ease-in-out infinite;
  z-index: 2;
}
@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

/* ========== CARDS ========== */
.card {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.card-img {
  height: 240px;
  overflow: hidden;
}
.card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}
.card:hover .card-img img { transform: scale(1.08); }
.card-body { padding: 1.5rem; }
.card-body h3 { margin-bottom: .5rem; font-size: 1.25rem; }
.card-body p { color: var(--color-text-light); font-size: .95rem; margin-bottom: 1rem; }
.card-price {
  font-family: var(--font-accent);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
}
.card-price small {
  font-weight: 400;
  font-size: .8rem;
  color: var(--color-text-light);
}

/* ========== PHOTO GALLERY ========== */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.photo-gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  background: var(--color-bg-dark);
  margin: 0;
  min-height: 260px;
  aspect-ratio: 4 / 3;
}
.photo-gallery__item--large {
  grid-column: 1 / -1;
  aspect-ratio: 21 / 9;
  min-height: 280px;
}
.photo-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}
.photo-gallery__item:hover img {
  transform: scale(1.06);
}
.photo-gallery__img--terrace {
  object-position: center 42%;
}
.gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.gallery-page-grid .photo-gallery__item {
  min-height: 220px;
  aspect-ratio: 4 / 3;
}
.gallery-filter {
  display: flex;
  justify-content: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin: 2rem 0 1rem;
}
.gallery-filter .btn {
  padding: .7rem 1.4rem;
}

/* ========== SPLIT SECTION ========== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: var(--max-width);
  margin: 0 auto;
}
.split-img {
  overflow: hidden;
  position: relative;
  border-radius: var(--radius-md);
}
.split-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.split-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem;
}
.split-content h2 { margin-bottom: 1rem; }
.split-content p { margin-bottom: 1.5rem; color: var(--color-text-light); }

/* ========== SERVICES GRID ========== */
.service-item {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.service-item:hover {
  background: var(--color-bg-card);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.service-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  display: block;
}
.service-item h4 { margin-bottom: .5rem; }
.service-item p { font-size: .9rem; color: var(--color-text-light); }

/* ========== REVIEWS SLIDER ========== */
.reviews-track {
  display: flex;
  gap: 2rem;
  animation: scroll-reviews 30s linear infinite;
  width: max-content;
}
.reviews-track:hover { animation-play-state: paused; }
@keyframes scroll-reviews {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.review-card {
  flex: 0 0 360px;
  background: var(--color-bg-card);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.review-stars { color: var(--color-primary-light); margin-bottom: .75rem; font-size: 1rem; }
.review-card p { font-size: .95rem; color: var(--color-text-light); margin-bottom: 1rem; font-style: italic; }
.review-author { font-weight: 600; font-size: .9rem; }

/* ========== PHRASES SLIDER ========== */
.phrases-slider {
  overflow: hidden;
  padding: 3rem 0;
  background: var(--color-bg-dark);
}
.phrases-track {
  display: flex;
  animation: scroll-phrases 25s linear infinite;
  width: max-content;
}
@keyframes scroll-phrases {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.phrase-item {
  flex: 0 0 auto;
  padding: 0 3rem;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-style: italic;
  color: rgba(255,255,255,.7);
  white-space: nowrap;
  display: flex; align-items: center; gap: 2rem;
}
.phrase-item .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-primary-light);
  flex-shrink: 0;
}

/* ========== HOSTAL BANNER ========== */
.hostal-banner {
  background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-light));
  color: var(--color-white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.hostal-banner h3 { color: var(--color-white); margin-bottom: .5rem; }
.hostal-banner p { opacity: .9; }

/* ========== CTA SECTION ========== */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: var(--color-white);
  text-align: center;
  padding: 5rem 0;
}
.cta-section h2 { color: var(--color-white); margin-bottom: 1rem; }
.cta-section p { opacity: .9; margin-bottom: 2rem; font-size: 1.1rem; }
.cta-contacts {
  display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap;
  margin-top: 2rem;
}
.cta-contact-item {
  display: flex; align-items: center; gap: .5rem;
  font-size: 1rem;
  opacity: .9;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--color-bg-dark);
  color: rgba(255,255,255,.7);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer h4 {
  color: var(--color-white);
  font-family: var(--font-accent);
  font-size: 1rem;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer p, .footer a { font-size: .9rem; }
.footer a:hover { color: var(--color-primary-light); }
.footer-links li { margin-bottom: .6rem; }
.footer-brand p { margin-bottom: .75rem; line-height: 1.6; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  opacity: .6;
}

/* ========== WHATSAPP FLOAT ========== */
.whatsapp-float {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 60px; height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 1.8rem;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transition: var(--transition);
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37,211,102,.4);
}

/* ========== CHATBOT ========== */
.chatbot-toggle {
  position: fixed;
  bottom: 2rem; right: 6rem;
  width: 56px; height: 56px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transition: var(--transition);
}
.chatbot-toggle:hover { transform: scale(1.1); }
.chatbot-window {
  position: fixed;
  bottom: 6rem; right: 6rem;
  width: 380px;
  max-height: 500px;
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  z-index: 1001;
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.chatbot-window.active { display: flex; }
.chatbot-header {
  background: var(--color-primary);
  color: white;
  padding: 1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.chatbot-header h4 { color: white; font-family: var(--font-accent); }
.chatbot-close { background: none; color: white; font-size: 1.2rem; }
.chatbot-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  max-height: 320px;
}
.chat-msg {
  margin-bottom: .75rem;
  max-width: 85%;
  padding: .75rem 1rem;
  border-radius: var(--radius-md);
  font-size: .9rem;
  line-height: 1.5;
}
.chat-msg.bot {
  background: var(--color-bg-warm);
  border-bottom-left-radius: 4px;
}
.chat-msg.user {
  background: var(--color-primary);
  color: white;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}
.chatbot-options {
  padding: .75rem 1rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.chat-option {
  padding: .4rem .9rem;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-xl);
  font-size: .8rem;
  color: var(--color-primary);
  background: white;
  transition: var(--transition);
}
.chat-option:hover {
  background: var(--color-primary);
  color: white;
}

/* ========== SCROLL ANIMATIONS ========== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ========== MAP ========== */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 400px;
}
.map-container iframe {
  width: 100%; height: 100%; border: 0;
}

/* ========== COOKIE BANNER ========== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; width: 100%;
  background: rgba(26,26,26,.95);
  backdrop-filter: blur(10px);
  color: white;
  padding: 1.2rem 2rem;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  z-index: 2000;
  font-size: .9rem;
}
.cookie-banner.active { display: flex; }
.cookie-banner p { flex: 1; opacity: .9; }
.cookie-btn {
  padding: .6rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .85rem;
}
.cookie-accept { background: var(--color-primary); color: white; }
.cookie-reject { background: transparent; color: white; border: 1px solid rgba(255,255,255,.3); }

/* ========== LUCIDE ICONS ========== */
.lucide { width: 1em; height: 1em; vertical-align: -0.125em; stroke-width: 1.75; }
.nav-brand-icon .lucide { width: 28px; height: 28px; stroke: var(--color-primary-light); }
.service-icon { display: flex; justify-content: center; margin-bottom: 1rem; }
.service-icon .lucide { width: 40px; height: 40px; stroke: var(--color-primary); stroke-width: 1.5; }
.service-item:hover .service-icon .lucide { stroke: var(--color-primary-dark); }
.btn .lucide { width: 18px; height: 18px; }
.whatsapp-float .lucide { width: 28px; height: 28px; stroke: white; }
.chatbot-toggle .lucide { width: 26px; height: 26px; stroke: white; }
.chatbot-header .lucide { width: 20px; height: 20px; }
.cta-contact-item .lucide { width: 18px; height: 18px; }
.footer .lucide { width: 16px; height: 16px; vertical-align: -0.2em; }
.hostal-banner h3 .lucide { width: 24px; height: 24px; vertical-align: -0.15em; }
.highlight-item .icon .lucide, .event-card .icon .lucide, .como-item .icon .lucide { width: 44px; height: 44px; stroke: var(--color-primary); stroke-width: 1.3; }
.contact-row .icon .lucide { width: 22px; height: 22px; stroke: var(--color-primary); }
.feature-icon .lucide { width: 24px; height: 24px; stroke: var(--color-primary); }

/* ========== RESPONSIVE ========== */

/* --- TABLET (max-width: 1024px) --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .split { min-height: 400px; }
  .split-content { padding: 3rem 2.5rem; }
  .section { padding: 5rem 0; }
  .hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
  .hero-subtitle { font-size: 1.1rem; }
  .cta-section { padding: 4rem 0; }
  .phrases-slider { padding: 2.5rem 0; }
  .phrase-item { font-size: 1.1rem; padding: 0 2rem; }
  .review-card { flex: 0 0 320px; padding: 1.5rem; }
}

/* --- MOBILE (max-width: 768px) --- */
@media (max-width: 768px) {
  /* Typography mobile */
  h1 { font-size: clamp(1.8rem, 6vw, 2.4rem); }
  h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
  h3 { font-size: clamp(1.1rem, 4vw, 1.4rem); }
  .section-label { font-size: .75rem; letter-spacing: 2px; }
  .section-subtitle { font-size: 1rem; margin-bottom: 2rem; }

  /* Spacing mobile */
  .section { padding: 3.5rem 0; }
  .container { padding: 0 1.25rem; }

  /* Nav mobile */
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 80%; height: 100vh;
    background: rgba(26,26,26,.98); backdrop-filter: blur(20px);
    flex-direction: column; justify-content: center; gap: 1.8rem;
    transition: var(--transition); z-index: 1001;
    padding: 2rem;
  }
  .nav-links.active { right: 0; }
  .nav-links a { font-size: 1.1rem; }
  .nav-toggle { display: flex; z-index: 1002; }
  .nav-cta { display: none; }
  .navbar .container { padding: 0 1rem; }
  .nav-brand h1 { font-size: 1.1rem; }
  .nav-brand span { font-size: .6rem; letter-spacing: 1.5px; }
  .nav-brand-icon { font-size: 1.3rem; }
  .nav-brand-icon .lucide { width: 22px; height: 22px; }

  /* Hero mobile */
  .hero { min-height: 500px; height: 85vh; }
  .hero h1 { font-size: 2rem; margin-bottom: .75rem; }
  .hero-subtitle { font-size: .95rem; margin-bottom: 2rem; }
  .hero-content { padding: 0 1.5rem; }
  .hero-stars { font-size: 1rem; letter-spacing: 4px; }
  .hero-buttons { gap: .75rem; }
  .hero-buttons .btn { width: 100%; max-width: 280px; justify-content: center; }
  .hero-scroll { bottom: 1.5rem; font-size: .7rem; }
  .hero-bg { background-attachment: scroll; } /* Fix iOS parallax */

  /* Grids mobile */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 1.5rem; }

  /* Split sections mobile */
  .split { grid-template-columns: 1fr; min-height: auto; }
  .split[style*="direction:rtl"], .split[style*="direction: rtl"] {
    direction: ltr;
  }
  .split-img { height: 250px; }
  .split-img img { height: 100%; }
  .split-content { padding: 2rem 1.5rem; }
  .split-content[style*="direction:ltr"] { direction: ltr; }

  /* Cards mobile */
  .card { margin-bottom: 0; }
  .card-img { height: 200px; }
  .card-body { padding: 1.2rem; }
  .card-body h3 { font-size: 1.1rem; }
  .card-body p { font-size: .88rem; }
  .card-price { font-size: 1rem; }

  /* Services mobile */
  .service-item { padding: 1.5rem 1rem; }
  .service-icon .lucide { width: 32px; height: 32px; }

  /* Phrases slider mobile */
  .phrases-slider { padding: 2rem 0; }
  .phrase-item { font-size: .95rem; padding: 0 1.5rem; }

  /* Reviews mobile */
  .review-card { flex: 0 0 280px; padding: 1.5rem; }
  .review-card p { font-size: .88rem; }
  .review-stars { font-size: .9rem; }

  /* Gallery mobile */
  .photo-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .6rem;
  }
  .photo-gallery__item,
  .photo-gallery__item--large {
    grid-column: auto;
    min-height: 150px;
    aspect-ratio: 4 / 3;
  }
  .gallery-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .6rem;
  }
  .gallery-page-grid .photo-gallery__item {
    min-height: 140px;
  }

  /* Hostal banner mobile */
  .hostal-banner {
    flex-direction: column; text-align: center;
    padding: 2rem 1.5rem; border-radius: var(--radius-md);
  }
  .hostal-banner .btn { width: 100%; justify-content: center; }

  /* CTA section mobile */
  .cta-section { padding: 3rem 0; }
  .cta-section h2 { font-size: 1.6rem; }
  .cta-section p { font-size: .95rem; margin-bottom: 1.5rem; }
  .cta-contacts { flex-direction: column; align-items: center; gap: 1rem; }
  .cta-contact-item { font-size: .9rem; }

  /* Footer mobile */
  .footer { padding: 3rem 0 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
  .footer h4 { margin-bottom: .8rem; }
  .footer-links li { margin-bottom: .4rem; }

  /* WhatsApp & chatbot mobile */
  .whatsapp-float { width: 52px; height: 52px; bottom: 1.5rem; right: 1.5rem; }
  .whatsapp-float .lucide { width: 24px; height: 24px; }
  .chatbot-toggle { width: 48px; height: 48px; bottom: 1.5rem; right: 4.5rem; }
  .chatbot-toggle .lucide { width: 22px; height: 22px; }
  .chatbot-window {
    width: calc(100vw - 1.5rem); right: .75rem; bottom: 4.5rem;
    max-height: 70vh;
  }
  .chatbot-header { padding: .8rem 1rem; }
  .chatbot-messages { max-height: 45vh; padding: .75rem; }
  .chat-msg { font-size: .85rem; padding: .6rem .8rem; }
  .chatbot-options { padding: .5rem .75rem; gap: .4rem; }
  .chat-option { font-size: .75rem; padding: .3rem .7rem; }

  /* Cookie banner mobile */
  .cookie-banner {
    flex-direction: column; text-align: center;
    padding: 1rem 1.5rem; gap: 1rem;
  }
  .cookie-banner p { font-size: .82rem; }
  .cookie-btn { font-size: .8rem; padding: .5rem 1.2rem; }

  /* Buttons mobile */
  .btn { padding: .8rem 1.6rem; font-size: .88rem; }
  .btn--large { padding: .9rem 2rem; font-size: .95rem; }

  /* Map mobile */
  .map-container { height: 280px; border-radius: var(--radius-md); }

  /* Amenities list (habitaciones page) */
  .amenities-list { grid-template-columns: 1fr; gap: .5rem; }
  .amenities-list li { font-size: .88rem; }
}

/* --- SMALL MOBILE (max-width: 480px) --- */
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .section { padding: 3rem 0; }

  /* Hero extra small */
  .hero { height: 80vh; min-height: 450px; }
  .hero h1 { font-size: 1.7rem; line-height: 1.15; }
  .hero-subtitle { font-size: .88rem; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn { max-width: 100%; }

  /* Cards extra small */
  .card-img { height: 180px; }
  .card-body { padding: 1rem; }

  /* Gallery extra small */
  .photo-gallery { grid-template-columns: 1fr; }
  .photo-gallery__item,
  .photo-gallery__item--large {
    grid-column: auto;
    min-height: 200px;
    aspect-ratio: 3 / 2;
  }
  .gallery-page-grid { grid-template-columns: 1fr; }
  .gallery-page-grid .photo-gallery__item {
    min-height: 180px;
  }

  /* Split image extra small */
  .split-img { height: 200px; }
  .split-content { padding: 1.5rem 1.2rem; }

  /* Services compact */
  .grid-4 { gap: 1rem; }
  .service-item { padding: 1.2rem .8rem; }
  .service-item h4 { font-size: .95rem; }
  .service-item p { font-size: .82rem; }

  /* Reviews smaller */
  .review-card { flex: 0 0 260px; padding: 1.2rem; }

  /* Phrases smaller */
  .phrase-item { font-size: .85rem; padding: 0 1.2rem; }

  /* CTA compact */
  .cta-section h2 { font-size: 1.4rem; }
  .cta-section .btn--large { width: 100%; justify-content: center; }

  /* Chatbot fullwidth */
  .chatbot-window { width: calc(100vw - 1rem); right: .5rem; }

  /* Footer compact */
  .footer-brand p { font-size: .85rem; }
}

/* --- VERY SMALL (max-width: 360px) --- */
@media (max-width: 360px) {
  .hero h1 { font-size: 1.5rem; }
  .hero-subtitle { font-size: .82rem; }
  .nav-brand h1 { font-size: 1rem; }
  .btn { padding: .7rem 1.2rem; font-size: .82rem; }
  .card-img { height: 160px; }
  .section { padding: 2.5rem 0; }
}

/* --- LANDSCAPE PHONE --- */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { height: 100vh; min-height: 350px; }
  .hero h1 { font-size: 1.6rem; }
  .hero-subtitle { font-size: .85rem; margin-bottom: 1rem; }
  .hero-scroll { display: none; }
}

/* ─── Legal pages ─────────────────────────────────────────── */
.legal-page { padding: 2rem 0 4rem; margin-top: 72px; }
.legal-page h1 { font-size: 2rem; margin-bottom: .5rem; color: var(--color-primary); }
.legal-page .legal-updated { font-size: .85rem; color: var(--color-text-muted); margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--color-border); }
.legal-page h2 { font-size: 1.25rem; margin: 2rem 0 .75rem; color: var(--color-text); }
.legal-page h3 { font-size: 1.05rem; margin: 1.5rem 0 .5rem; color: var(--color-text); }
.legal-page p, .legal-page li { font-size: .92rem; line-height: 1.7; color: var(--color-text-light); }
.legal-page ul, .legal-page ol { padding-left: 1.5rem; margin: .75rem 0; }
.legal-page li { margin-bottom: .35rem; }
.legal-page a { color: var(--color-accent); text-decoration: underline; }
.legal-page table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .88rem; }
.legal-page th, .legal-page td { padding: .6rem .8rem; border: 1px solid var(--color-border); text-align: left; line-height: 1.5; }
.legal-page th { background: var(--color-bg-warm); font-weight: 600; color: var(--color-text); }
.legal-page td { color: var(--color-text-light); }
.legal-page code { background: var(--color-bg-warm); padding: .15rem .4rem; border-radius: 3px; font-size: .85em; }
@media (max-width: 768px) {
  .legal-page { padding: 1.5rem 1rem 3rem; margin-top: 60px; }
  .legal-page table { display: block; overflow-x: auto; }
}
