:root {
  --coffee: #5c4033;
  --terracotta: #e07a5f;
  --turquoise: #2a9d8f;
  --light: #f9f5f0;
  --dark-coffee: #3b2a1e;
  --dark-text: #1b100e;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  background-color: var(--coffee);
  color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: url('aztec-pattern.svg') no-repeat;
  background-size: contain;
  opacity: 0.08;
  pointer-events: none;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

section {
  margin-bottom: 4rem;
  scroll-margin-top: 4rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

h1, h2, h3 {
  font-family: 'Sancreek', cursive;
  position: relative;
  padding-left: 2.5rem;
}

h1 {
  color: var(--turquoise);
  font-size: 4rem;
  font-weight: 700;
}

h2 {
  color: var(--dark-coffee);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero {
  position: relative;
  height: 60vh;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-image: url('https://i.imgur.com/npvkySU.jpeg');
}

.scroll-indicator {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  color: var(--light);
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  cursor: pointer;
  transition: transform 0.3s;
}

.scroll-indicator svg {
  width: 2rem;
  height: 2rem;
}

.scroll-indicator:hover {
  transform: translateX(-50%) scale(1.1);
}

@keyframes bounce {
  0%, 100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, -10px);
  }
}

h1::before, h2::before, h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1.5rem;
  height: 1.5rem;
  background: url('xolo-paw.svg') no-repeat center/contain;
  opacity: 0.6;
}

h1::before {
  width: 2rem;
  height: 2rem;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(92,64,51,0.85);
  padding: 2rem;
  text-align: center;
  color: var(--light);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.hero h1 {
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.25rem;
}

.content {
  padding: 3rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.intro,
.leyenda,
.testimonios,
.hosts,
.cierre {
  background-color: var(--light);
  color: var(--dark-text);
  padding: 2rem;
  border-radius: 1rem;
}

.testimonios blockquote {
  position: relative;
  margin: 2rem 0;
  padding: 1.5rem 1.5rem 1.5rem 3rem;
  border-left: 4px solid var(--terracotta);
  background: rgba(42,157,143,0.1);
  border-radius: 0.5rem;
}

.testimonios blockquote::before {
  content: '“';
  position: absolute;
  left: 0.5rem;
  top: 0.2rem;
  font-size: 2.5rem;
  color: var(--terracotta);
  line-height: 1;
}

.testimonios blockquote::after {
  content: '';
  position: absolute;
  right: 1rem;
  bottom: 0.5rem;
  width: 2rem;
  height: 2rem;
  background: url('xolo-paw.svg') no-repeat center/contain;
  opacity: 0.3;
}

.testimonios blockquote footer {
  text-align: right;
  font-weight: 700;
  margin-top: 0.5rem;
}

.details {
  background-color: var(--terracotta);
  color: var(--dark-text);
  padding: 2rem;
  border-radius: 1rem;
}


.gallery {
  display: grid;
  gap: 1.5rem;
  margin: 3rem 0;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.gallery img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  cursor: pointer;
}

.hosts-grid {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
}

.host {
  flex: 1 1 280px;
  text-align: center;
}

.host img {
  width: 100%;
  max-width: 300px;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.details .details-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .details .details-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.detail-item h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.detail-item ul {
  padding-left: 1.2rem;
}

.detail-item ul li {
  margin-bottom: 0.5rem;
}

.actions {
  margin-top: 2rem;
  text-align: center;
}

.btn {
  background: var(--turquoise);
  color: var(--light);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: background-color 0.3s, transform 0.3s;
  cursor: pointer;
}

.btn:hover {
  background: var(--terracotta);
  transform: scale(1.05);
}

.btn-reservar {
  background: var(--turquoise);
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-size: 1.1rem;
}

footer {
  text-align: center;
  padding: 1rem;
  background: var(--dark-coffee);
  color: var(--light);
  font-size: 0.9rem;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.8);
  z-index: 1000;
}

.modal.visible {
  display: flex;
}

.modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 0.5rem;
}

.modal .cerrar {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

/* Navegación fija */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(92,64,51,0.9);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 1rem;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--light);
  text-decoration: none;
  font-family: 'Sancreek', cursive;
  transition: color 0.3s;
  cursor: pointer;
}

.nav-menu a.activo {
  color: var(--turquoise);
}

.nav-menu a:hover {
  color: var(--turquoise);
  text-decoration: underline;
}

.nav-toggle {
  display: none;
  position: absolute;
  right: 1rem;
  top: 0.5rem;
  background: none;
  border: none;
  color: var(--light);
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  .nav-menu {
    flex-direction: column;
    align-items: center;
    background: rgba(92,64,51,0.95);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-menu.abierto {
    max-height: 300px;
  }

  .nav-toggle {
    display: block;
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  h3 {
    font-size: 1.25rem;
  }
  .gallery {
    grid-template-columns: 1fr;
  }
  .details .details-grid {
    grid-template-columns: 1fr;
  }
  .nav-menu a {
    display: block;
    padding: 0.75rem 0;
  }
  .btn,
  .btn-reservar {
    display: block;
    width: 100%;
    font-size: 1.1rem;
  }
}

/* Focus visible accesible */
:focus-visible {
  outline: 3px solid #0ea5e9;
  outline-offset: 2px;
}
/* Skip link visible al enfocar */
.skip-link {
  position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip-link:focus-visible {
  position: fixed; left: 1rem; top: 1rem;
  background:#fff; color:#111; padding:.5rem .75rem; border-radius:.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  z-index:9999;
}
/* Respeto a 'prefers-reduced-motion' */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* === Fix global de imágenes: no deformar === */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Prioridad para la sección Detalles */
#detalles img {
  height: auto !important;
  max-width: 100%;
  width: 100%;
}

