.hero h1 {
  font-family: serif;
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 1.1;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); 
  margin-bottom: var(--space-3);
}

:root {
--bg: #f5f2ec;
--surface: #fffdf9;
--surface-soft: #f8f3ea;
--surface-alt: #f1eadf;
--text: #1f1d1a;
--muted: #6e655b;
--primary: #4f7a62;
--primary-2: #3f644f;
--accent: #c8b89f;
--border: #e8dfd3;
--ring: rgba(79, 122, 98, 0.22);
--whatsapp: #25d366;
--whatsapp-dark: #1fb85a;
--shadow-sm: 0 8px 24px rgba(42, 35, 27, 0.06);
--shadow-md: 0 14px 34px rgba(42, 35, 27, 0.1);
--shadow-lg: 0 20px 48px rgba(42, 35, 27, 0.14);
--radius-sm: 12px;
--radius-md: 18px;
--radius-lg: 24px;
--container: 1520px;
--space-1: 8px;
--space-2: 16px;
--space-3: 24px;
--space-4: 32px;
--space-5: 40px;
--space-6: 48px;
--space-7: 56px;
--space-8: 64px;
--space-9: 72px;
--space-10: 80px;
}

* {
box-sizing: border-box;
}

html {
scroll-behavior: smooth;
}

body {
margin: 0;
font-family: "Inter", "SF Pro Display", "Segoe UI", Roboto, sans-serif;
background: var(--bg);
color: var(--text);
line-height: 1.6;
text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p {
margin: 0;
}

img {
max-width: 100%;
display: block;
}

section {
padding: var(--space-10) 0;
position: relative;
}

.section-soft {
background: var(--surface-soft);
}

.section-alt {
background: linear-gradient(180deg, #f3ece1 0%, #efe6d8 100%);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.eyebrow {
text-transform: uppercase;
letter-spacing: 0.14em;
font-size: 0.72rem;
color: var(--muted);
margin-bottom: var(--space-2);
font-weight: 700;
}

.section-title {
font-size: clamp(1.85rem, 2.8vw, 2.8rem);
line-height: 1.16;
letter-spacing: -0.01em;
margin-bottom: var(--space-2);
}

.section-desc {
color: var(--muted);
max-width: 62ch;
font-size: 1rem;
}

.section-head {
margin-bottom: var(--space-5);
}

.card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius-md);
box-shadow: var(--shadow-sm);
transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
position: relative;
}

.card:hover {
transform: translateY(-4px);
box-shadow: var(--shadow-md);
border-color: #decfbb;
}

/* NAVBAR */
.navbar {
position: sticky;
top: 0;
z-index: 1200;
background: rgba(255, 253, 249, 0.82);
border-bottom: 1px solid rgba(230, 219, 203, 0.9);
backdrop-filter: blur(12px);
}

.nav-inner {
min-height: 76px;
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-2);
}

.logo {
  display: flex;
  align-items: center;
  height: 100%;
}

.logo img {
  height: 35px;
  width: auto;
  transition: transform 0.2s;
}

.logo img:hover {
  transform: scale(1.05);
}

.logo span {
color: var(--primary);
}

.menu {
display: flex;
align-items: center;
gap: var(--space-1);
flex-wrap: wrap;
}

.menu a {
text-decoration: none;
color: #2a2621;
font-size: 0.92rem;
font-weight: 600;
padding: 10px 12px;
border-radius: 999px;
transition: 0.26s ease;
}

.menu a:hover {
background: #f2ebdf;
color: var(--primary-2);
}

.menu a.active {
background: linear-gradient(135deg, #e9dfd0, #efe7da);
color: #2e5040;
box-shadow: inset 0 0 0 1px #ddcfbb;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center; 
  justify-content: center;
  overflow: hidden;
  padding: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(108deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 100%),
    url("fotos/vistainterna.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-content {
position: relative;
z-index: 2;
max-width: 680px;
margin-left: clamp(0px, 3vw, 36px);
padding: 112px 0 96px;
animation: heroReveal 0.85s ease both;
}

.hero-panel {
  background: none;
  border: none;
  padding: 0;
  box-shadow: none;
  backdrop-filter: none;
}

@keyframes heroReveal {
from {
opacity: 0;
transform: translateY(16px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

.hero .eyebrow {
margin-bottom: 12px;
}

.hero h1 {
  font-family: serif;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1.1;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  margin-bottom: var(--space-3);
}

.hero p {
  color: #f8f8f8;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  max-width: 60ch;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: var(--space-5);
  font-weight: 400;
  margin-inline: auto;
}

.hero .eyebrow {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.2em;
}

.btn {
border: none;
border-radius: 999px;
min-height: 48px;
padding: 0 22px;
font-size: 0.96rem;
font-weight: 700;
letter-spacing: 0.01em;
cursor: pointer;
text-decoration: none;
display: inline-flex;
align-items: center;
justify-content: center;
transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
color: #fff;
background: linear-gradient(135deg, #5f8a70 0%, #3f654f 100%);
box-shadow: 0 12px 28px rgba(61, 97, 77, 0.32);
}

.btn-primary:hover {
transform: translateY(-2px) scale(1.015);
box-shadow: 0 18px 34px rgba(61, 97, 77, 0.38);
}

.btn-whatsapp {
color: #fff;
background: linear-gradient(135deg, var(--whatsapp) 0%, var(--whatsapp-dark) 100%);
box-shadow: 0 12px 28px rgba(37, 211, 102, 0.32);
margin-left: 40px;
}

.btn-whatsapp:hover {
transform: translateY(-2px) scale(1.015);
box-shadow: 0 18px 34px rgba(37, 211, 102, 0.4);
}

/* --- NUEVA GALERÍA DE MOSAICO FIJO MINIMALISTA --- */
#galeria {
  padding: var(--space-6) 0;
  background-color: var(--white);
}

.gallery-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.gallery-mosaic {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: repeat(3, 220px);
    gap: 15px;
    width: 100%;
    margin-bottom: 10px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.gallery-item:nth-child(1) {
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
  opacity: 0.9;
}

.gallery-overlay-text {
  position: absolute;
  bottom: 15px;
  left: 15px;
  color: white;
  background: rgba(0,0,0,0.5);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay-text {
  opacity: 1;
}

@media (max-width: 768px) {
    .gallery-mosaic {
        grid-template-columns: 1fr;
        grid-template-rows: auto; 
        gap: 10px;
    }
    .gallery-item {
        min-height: 200px; 
    }
}

/* --- MODAL / LIGHTBOX UNIFICADO --- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 9, 8, 0.95);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  position: relative;
  width: min(100%, 1100px);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal-image-wrap {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  background: #000;
}

.modal-image-wrap img {
  width: 100%;
  max-height: 85vh;
  object-fit: contain;
  display: block;
}

.modal-close {
  position: absolute;
  top: -55px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
}

.modal .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.modal .arrow.left { left: -70px; }
.modal .arrow.right { right: -70px; }

@media (max-width: 1200px) {
  .modal .arrow.left { left: 10px; }
  .modal .arrow.right { right: 10px; }
  .modal-close { right: 10px; }
}

/* EXPERIENCE + LOCATION DYNAMIC */
.experience-location-grid {
    margin-top: var(--space-2);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    align-items: stretch;
}

.exp-col {
display: grid;
gap: var(--space-2);
}

.experience-info {
padding: var(--space-5);
}

.exp-cards {
max-height: 440px;
overflow-y: auto;
display: grid;
gap: var(--space-2);
padding-right: 6px;
}

.exp-card {
padding: var(--space-3);
}

.exp-card h4 {
margin-bottom: var(--space-1);
font-size: 1.08rem;
}

.exp-card p {
color: var(--muted);
}

.loc-col {
display: grid;
gap: var(--space-2);
}

.map-placeholder {
min-height: 300px;
border-radius: var(--radius-lg);
border: 1.5px dashed #bda988;
background: linear-gradient(145deg, #f2e8d9 0%, #e9dcc7 100%);
display: grid;
place-items: center;
color: #765f46;
font-weight: 700;
letter-spacing: 0.02em;
}

.loc-cards {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: var(--space-2);
}

.loc-card {
padding: var(--space-3);
}

.loc-card h4 {
margin-bottom: var(--space-1);
}

.loc-card p {
color: var(--muted);
}

/* SERVICES WITH ICONS */
.services-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: var(--space-2);
}

.service-card {
padding: var(--space-3);
min-height: 168px;
}

.service-top {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 10px;
}

.service-icon {
width: 34px;
height: 34px;
border-radius: 10px;
border: 1px solid #e7dccf;
background: #f8f3ea;
display: grid;
place-items: center;
color: #5a7c66;
}

.service-card h4 {
font-size: 1.03rem;
}

.service-card p {
color: var(--muted);
}

.service-icon svg {
width: 18px;
height: 18px;
stroke: currentColor;
fill: none;
stroke-width: 1.9;
stroke-linecap: round;
stroke-linejoin: round;
}

/* REVIEWS */
.reviews-wrap {
position: relative;
}

.reviews-wrap::before, .reviews-wrap::after {
content: "";
position: absolute;
top: 0;
bottom: 0;
width: 48px;
pointer-events: none;
z-index: 2;
}

.reviews-wrap::before {
left: 0;
background: linear-gradient(90deg, #f8f3ea 0%, rgba(248, 243, 234, 0) 100%);
}

.reviews-wrap::after {
right: 0;
background: linear-gradient(270deg, #f8f3ea 0%, rgba(248, 243, 234, 0) 100%);
}

.reviews-track {
display: flex;
gap: var(--space-2);
overflow-x: auto;
scroll-behavior: smooth;
padding: 2px 2px 8px;
cursor: grab;
user-select: none;
}

.reviews-track:active {
cursor: grabbing;
}

.reviews-track::-webkit-scrollbar {
height: 7px;
}

.reviews-track::-webkit-scrollbar-thumb {
background: #ccbda8;
border-radius: 999px;
}

.review-card {
min-width: min(100%, 360px);
padding: var(--space-3);
}

.review-content {
color: var(--muted);
margin-bottom: 16px;
}

.review-user {
display: flex;
align-items: center;
gap: 10px;
}

.avatar {
width: 36px;
height: 36px;
border-radius: 50%;
background: linear-gradient(135deg, #d8c9b4, #c7b398);
color: #fff;
font-size: 0.84rem;
font-weight: 700;
display: grid;
place-items: center;
flex: 0 0 auto;
}

.review-meta h4 {
font-size: 0.95rem;
margin-bottom: 2px;
}

.review-meta span {
color: var(--muted);
font-size: 0.82rem;
}

/* RESERVATION */
.reservation-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: var(--space-3);
}

.res-info, .res-form-wrap {
padding: var(--space-5);
}

.res-info p {
color: var(--muted);
margin: var(--space-2) 0 var(--space-4);
max-width: 42ch;
}

form {
display: grid;
gap: 14px;
}

input, textarea, select {
width: 100%;
min-height: 48px;
border-radius: var(--radius-sm);
border: 1px solid var(--border);
background: #fff;
color: var(--text);
font: inherit;
padding: 0 14px;
transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

textarea {
min-height: 96px;
resize: vertical;
padding: 10px 14px;
background: #fcf9f4;
}

input:focus, textarea:focus, select:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 4px var(--ring);
background: #fffefc;
}

.form-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
}

.field-note {
font-size: 0.8rem;
color: var(--muted);
margin-top: -4px;
}

.form-submit {
margin-top: 4px;
}

/* FOOTER + BACK TO TOP */
.footer {
border-top: 1px solid var(--border);
background: #f2eadf;
padding: 24px 0;
}

.footer-inner {
display: flex;
justify-content: space-between;
gap: var(--space-2);
flex-wrap: wrap;
color: #6f675f;
font-size: 0.92rem;
}

.back-to-top {
position: fixed;
right: 18px;
bottom: 18px;
width: 46px;
height: 46px;
border-radius: 50%;
border: 1px solid #dfd1bc;
background: rgba(255, 253, 248, 0.95);
color: #2f2a24;
box-shadow: var(--shadow-md);
display: grid;
place-items: center;
cursor: pointer;
opacity: 0;
visibility: hidden;
transform: translateY(12px);
transition: 0.25s ease;
z-index: 1300;
}

.back-to-top.visible {
opacity: 1;
visibility: visible;
transform: translateY(0);
}

.back-to-top:hover {
transform: translateY(-2px);
background: #fff;
}

.back-to-top svg {
width: 20px;
height: 20px;
stroke: currentColor;
fill: none;
stroke-width: 2;
stroke-linecap: round;
stroke-linejoin: round;
}

@media (max-width: 1120px) {
.experience-location-grid {
grid-template-columns: 1fr;
}

.map-container {
    width: 100%;
    max-width: var(--container);
    margin: 40px auto;
    height: 500px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.loc-cards {
grid-template-columns: 1fr;
}

.map-placeholder {
order: -1;
}
}

@media (max-width: 1024px) {
section {
    padding: var(--space-6) 0; 
    position: relative;
}

.reservation-grid {
grid-template-columns: 1fr;
}

.services-grid {
grid-template-columns: repeat(2, 1fr);
}

.gallery-slide {
height: 300px;
}
}

/* ===== MOBILE STYLES ===== */
@media (max-width: 768px) {
  html, body { overflow-x: hidden; position: relative; }
  
  :root { --space-10: 48px; }

  section { padding: var(--space-10) 0 !important; }

  .container { padding: 0 20px !important; }

  /* 1. Navigation */
  .nav-inner { flex-direction: column !important; padding: 12px 0 8px; min-height: auto; gap: 12px !important; }
  .logo img { height: 35px !important; }
  .menu {
    width: 100vw; margin-left: -20px; padding: 4px 20px 12px !important;
    flex-wrap: nowrap !important; overflow-x: auto !important; justify-content: flex-start !important;
    -webkit-overflow-scrolling: touch; gap: 8px !important; scrollbar-width: none;
  }
  .menu::-webkit-scrollbar { display: none; }
  .menu a { white-space: nowrap; background: var(--surface-alt); font-size: 0.85rem !important; padding: 8px 16px !important; }

  /* 2. Hero Section */
  .hero { min-height: auto !important; padding: 60px 0 !important; }
  .hero h1 { white-space: normal !important; font-size: 2.4rem !important; text-align: center; line-height: 1.2; margin-bottom: 16px !important; }
  .hero-content { padding: 40px 20px; margin: 0; text-align: center; align-items: center; display: flex; flex-direction: column; }
  .hero p { font-size: 1.1rem !important; margin-bottom: 24px !important; text-align: center; line-height: 1.5; }
  .hero-actions { display: flex; flex-direction: column; width: 100%; max-width: 320px; gap: 12px !important; }
  .btn { width: 100%; min-height: 52px !important; }
  .btn-whatsapp { margin-left: 0 !important; }

  /* 3. Forms & Grid Adjustments */
  .section-head { margin-bottom: var(--space-4); text-align: center; }
  input, select, textarea { font-size: 16px !important; padding: 14px !important; }

  .experience-location-grid,
  .services-grid,
  .reservation-grid,
  .loc-cards,
  .form-row {
    grid-template-columns: 1fr !important; gap: 16px !important;
  }

  .gallery-mosaic { grid-template-columns: 1fr !important; grid-template-rows: auto !important; gap: 10px !important; }
  .gallery-item { min-height: 220px; }
  .gallery-item:nth-child(1) { grid-row: span 1; }

  .res-info, .res-form-wrap, .experience-info { padding: 24px !important; }
  
  .review-card { min-width: 85vw; }
  
  .modal .arrow { width: 44px; height: 44px; }
  .modal .arrow.left { left: 8px; }
  .modal .arrow.right { right: 8px; }

  .back-to-top { width: 44px; height: 44px; right: 16px; bottom: 16px; }
}

.service-slider-container {
    width: 100%;
    overflow: hidden;
    margin-top: 18px;
}

.service-slider-track {
    display: flex;
    gap: 12px;
    overflow-x: auto; 
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.service-thumb {
    flex: 0 0 auto; 
    width: 120px;   
    height: 180px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    scroll-snap-align: start;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.service-thumb:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.service-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

.service-slider-track::-webkit-scrollbar {
    height: 4px;
}
.service-slider-track::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--surface-soft);
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

.full-width-map {
    width: 100%;
    max-width: var(--container);
    margin: var(--space-8) auto;
    height: 500px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.full-width-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

#experiencia-ubicacion {
    padding-top: 0 !important;
}

section {
    padding: var(--space-5) 0 !important;
}

.gallery-mosaic {
    margin-bottom: 0 !important;
}

.menu a[href="#reservar"] {
    color: #ffffff;
    background-color: var(--primary);
    padding: 10px 18px;
    border: 1px solid var(--primary-2);
}

.menu a[href="#reservar"]:hover {
    background-color: var(--primary-2);
    color: #ffffff;
    transform: scale(1.05);
}

.menu a[href="#reservar"].active {
    background: var(--primary-2) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(95, 138, 112, 1);
}

p.hero-subtitle {
  font-size: 28px;
}

@media (max-width: 768px) {
  p.hero-subtitle { font-size: 1.15rem !important; }
}