/* styles.css */


.material-symbols-outlined {
  /* Ajusta el grosor y estilo visual de los iconos de Material Symbols */
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

.grainy-overlay {
  /* Añade una textura granulada sutil sobre las secciones */
  background-image: url("data:image/svg+xml,...");
  opacity: 0.03;
}

html {
  /* El desplazamiento scrolleando se vuelve mas suave */
  scroll-behavior: smooth;
}

.nav-active {
  /* Enlace del nav activo: resaltado en marrón con subrayado */
  color: #703d23;
  border-bottom: 1px solid rgba(112, 61, 35, 0.2);
  padding-bottom: 0.25rem;
}

.nav-inactive {
  /* Enlace del nav inactivo: gris semitransparente */
  color: rgba(31, 27, 24, 0.7);
  transition: color 0.2s;
}

.nav-inactive:hover {
  /* Al pasar el ratón por un enlace inactivo, se vuelve marrón */
  color: #703d23;
}

/* ── Hover y LIGHTBOX de las fotos del entorno ── */
.photo-card {
  position: relative;
}

.photo-card img {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-card:hover img {
  transform: scale(1.04);
}

.photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.15) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

/* Variante para foto circular: degradado más suave */
.photo-overlay--circle {
  border-radius: 50%;
  padding: 1rem;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
}

.photo-card:hover .photo-overlay {
  opacity: 1;
}

.photo-overlay-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.photo-overlay-title {
  color: #fff;
  font-size: 1.1rem;
  font-style: italic;
  font-family: var(--font-headline, serif);
  margin: 0;
  line-height: 1.2;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.photo-overlay-hint {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Lightbox ── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

#lightbox.is-open {
  display: flex;
}

#lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 6, 0.92);
  cursor: pointer;
  animation: lb-fade-in 0.3s ease forwards;
}

#lightbox-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  max-width: min(90vw, 900px);
  width: 100%;
  animation: lb-scale-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

#lightbox-close {
  position: absolute;
  top: -3rem;
  right: 0;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

#lightbox-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

#lightbox-img-wrap {
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  line-height: 0;
}

#lightbox-img {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  display: block;
}

#lightbox-info {
  text-align: center;
}

#lightbox-caption {
  color: #fff;
  font-size: 1.1rem;
  font-style: italic;
  font-family: var(--font-headline, serif);
  margin: 0 0 4px;
}

#lightbox-desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  margin: 0;
  max-width: 480px;
}

@keyframes lb-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes lb-scale-in {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(12px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Deshabilitar scroll del body cuando lightbox está abierto */
body.lightbox-open {
  overflow: hidden;
}

/* ============================================================
   Privacidad modal
   ============================================================ */

#privacy-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: flex-end;
  justify-content: center;
}

#privacy-modal.is-open {
  display: flex;
}

@media (min-width: 640px) {
  #privacy-modal {
    align-items: center;
  }
}

#privacy-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 6, 0.75);
  cursor: pointer;
  animation: pv-fade 0.3s ease forwards;
}

#privacy-panel {
  position: relative;
  z-index: 1;
  background: #fff8f5;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  border-radius: 1rem 1rem 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: pv-slide-up 0.35s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
}

@media (min-width: 640px) {
  #privacy-panel {
    border-radius: 1rem;
    max-height: 80vh;
    animation: pv-scale-in 0.35s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
  }
}

#privacy-header {
  padding: 2rem 2rem 1.25rem;
  border-bottom: 1px solid rgba(133, 115, 108, 0.15);
  flex-shrink: 0;
  position: relative;
}

#privacy-eyebrow {
  font-family: 'Manrope', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #85736c;
  margin: 0 0 6px;
}

#privacy-title {
  font-family: 'Newsreader', serif;
  font-size: 1.75rem;
  font-style: italic;
  font-weight: 400;
  color: #1f1b18;
  margin: 0;
  line-height: 1.2;
}

#privacy-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: 1px solid rgba(133, 115, 108, 0.3);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  color: #52443d;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

#privacy-close:hover {
  background: rgba(133, 115, 108, 0.1);
}

#privacy-body {
  overflow-y: auto;
  padding: 1.75rem 2rem 2.5rem;
  flex: 1;
  color: #1f1b18;
  font-family: 'Manrope', sans-serif;
  font-size: 0.875rem;
  line-height: 1.75;
}

#privacy-body p {
  margin: 0 0 1rem;
  color: #52443d;
}

#privacy-body h3 {
  font-family: 'Newsreader', serif;
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 500;
  color: #1f1b18;
  margin: 1.75rem 0 0.5rem;
}

#privacy-body ul {
  margin: 0 0 1rem 1.25rem;
  color: #52443d;
}

#privacy-body ul li {
  margin-bottom: 0.25rem;
}

#privacy-body a {
  color: #703d23;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#privacy-body strong {
  color: #1f1b18;
  font-weight: 600;
}

.privacy-updated {
  font-size: 0.75rem;
  color: #85736c;
  margin-bottom: 1.25rem !important;
}

@keyframes pv-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes pv-slide-up {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pv-scale-in {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ============================================================
   Calendario de disponibilidad (custom, sin Cally)
   ============================================================ */

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Manrope', sans-serif;
  font-size: 1.075rem;
  border-radius: 0.5rem;
  user-select: none;
}

/* Días disponibles (futuros, no reservados) */
.cal-day--free {
  color: #1f1b18;
  cursor: default;
}

/* Día de hoy */
.cal-day--today {
  background: #703d23;
  color: #ffffff;
  font-weight: 600;
}

/* Días pasados */
.cal-day--past {
  color: rgba(82, 68, 61, 0.3);
}

/* Días reservados */
.cal-day--booked {
  background: rgba(35, 76, 112, 0.12); /*112, 61, 35, 0.12*/
  color: rgba(112, 61, 35, 0.5); 
  text-decoration: line-through;
  text-decoration-color: rgba(112, 61, 35, 0.35);
  border-radius: 0;
}

/* Días de otros meses (relleno) */
.cal-day--outside {
  color: rgba(82, 68, 61, 0.2);
}

/* Cuadrado de leyenda "Reservado" */
.cal-day-booked {
  background: rgba(35, 76, 112, 0.12); /*112, 61, 35, 0.12*/
  width: 1rem;
  height: 1rem;
  border-radius: 0.25rem;
}

.cal-day-free {
  width: 2rem;
  height: 2rem;
  border-radius: 0.25rem;
}

/* ============================================================
   Modal de Contacto
   ============================================================ */

#contact-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: flex-end;
  justify-content: center;
}

#contact-modal.is-open {
  display: flex;
}

@media (min-width: 640px) {
  #contact-modal {
    align-items: center;
  }
}

#contact-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 6, 0.75);
  cursor: pointer;
  animation: pv-fade 0.3s ease forwards;
}

#contact-panel {
  position: relative;
  z-index: 1;
  background: #fff8f5;
  width: 100%;
  max-width: 480px;
  border-radius: 1rem 1rem 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: pv-slide-up 0.35s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
}

@media (min-width: 640px) {
  #contact-panel {
    border-radius: 1rem;
    animation: pv-scale-in 0.35s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
  }
}

#contact-header {
  padding: 2rem 2rem 1.25rem;
  border-bottom: 1px solid rgba(133, 115, 108, 0.15);
  flex-shrink: 0;
  position: relative;
}

#contact-eyebrow {
  font-family: 'Manrope', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #85736c;
  margin: 0 0 6px;
}

#contact-title {
  font-family: 'Newsreader', serif;
  font-size: 1.75rem;
  font-style: italic;
  font-weight: 400;
  color: #1f1b18;
  margin: 0;
  line-height: 1.2;
}

#contact-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: 1px solid rgba(133, 115, 108, 0.3);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  color: #52443d;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

#contact-close:hover {
  background: rgba(133, 115, 108, 0.1);
}

#contact-body {
  padding: 1.75rem 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-subtitle {
  font-family: 'Manrope', sans-serif;
  font-size: 0.875rem;
  color: #85736c;
  margin: 0 0 0.5rem;
  line-height: 1.6;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(133, 115, 108, 0.2);
  border-radius: 0.75rem;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  background: #ffffff;
}

.contact-method:hover {
  background: rgba(112, 61, 35, 0.04);
  border-color: rgba(112, 61, 35, 0.3);
  transform: translateY(-1px);
}

.contact-method-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-method-icon--whatsapp {
  background: #e8f5e9;
  color: #25D366;
}

.contact-method-icon--email {
  background: rgba(112, 61, 35, 0.08);
  color: #703d23;
}

.contact-method-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-method-label {
  font-family: 'Manrope', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #85736c;
}

.contact-method-value {
  font-family: 'Manrope', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f1b18;
}

.contact-method-arrow {
  color: #85736c;
  flex-shrink: 0;
}
/* ============================================================
   Menú móvil hamburger
   ============================================================ */

#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
}

#mobile-menu.is-open {
  max-height: 400px;
}

.mobile-nav-link {
  display: block;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

/* Animación de las barras del hamburger */
#nav-hamburger.is-open .hamburger-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

#nav-hamburger.is-open .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

#nav-hamburger.is-open .hamburger-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mejor tap target en móvil para botones pequeños */
@media (max-width: 767px) {
  .cal-day {
    font-size: 0.8rem;
  }

  #lightbox-close {
    top: -2.5rem;
    width: 40px;
    height: 40px;
  }

  #lightbox-img {
    max-height: 60vh;
  }
}
