/* ═══════════════════════════════════════════════
   Casa Ortiz — Estilos Compartidos
   co-styles.css
═══════════════════════════════════════════════ */

/* ── Texto solo para lectores de pantalla / buscadores (visualmente oculto) ── */
.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;
}

/* ── Material Symbols ── */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal; font-style: normal; font-size: 24px;
  line-height: 1; letter-spacing: normal; text-transform: none;
  display: inline-block; white-space: nowrap; word-wrap: normal;
  direction: ltr; -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s cubic-bezier(0.16,1,0.3,1),
              transform 0.75s cubic-bezier(0.16,1,0.3,1);
}
.reveal.active { opacity: 1; transform: translateY(0); }

/* ── Page transition fade-in ── */
body { animation: pageFadeIn 0.35s cubic-bezier(0.16,1,0.3,1) both; }
@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Nav links ── */
.nav-link {
  position: relative;
  font-family: 'Manrope', sans-serif;
  font-size: 14px; line-height: 20px;
  letter-spacing: 0.05em; font-weight: 600;
  color: #53433d;
  transition: color 0.25s ease;
  text-decoration: none;
}
.nav-link::after {
  content: '';
  position: absolute; width: 0; height: 1px;
  bottom: -3px; left: 50%;
  background-color: #735c00;
  transition: width 0.3s ease, left 0.3s ease;
}
.nav-link:hover { color: #6f3418; }
.nav-link:hover::after { width: 100%; left: 0; }
.nav-link.active { color: #6f3418; font-weight: 700; }
.nav-link.active::after { width: 100%; left: 0; }

/* ── Image zoom ── */
.img-zoom { overflow: hidden; }
.img-zoom img,
.img-zoom .bg-img {
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.img-zoom:hover img,
.img-zoom:hover .bg-img { transform: scale(1.05); }

/* ── Elegant inputs ── */
.elegant-input {
  background-color: #ffffff;
  border: 1px solid #d9c2b9;
  border-radius: 0.25rem;
  padding: 12px 16px; width: 100%;
  font-family: 'Manrope', sans-serif; font-size: 16px;
  transition: border-color 0.25s, box-shadow 0.25s;
  color: #1e1b18;
}
.elegant-input:focus {
  outline: none;
  border-color: #6f3418;
  box-shadow: 0 0 0 1px #6f3418;
}

/* ── Btn outline ── */
.btn-outline {
  background: transparent;
  border: 1px solid #735c00;
  color: #735c00;
  transition: background 0.25s, transform 0.25s;
  display: inline-block;
}
.btn-outline:hover { background: #f5ece7; transform: translateY(-2px); }

/* ── Mobile menu ── */
#mobile-menu {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16,1,0.3,1);
}
#mobile-menu.open { max-height: 400px; }

/* ── Experience photo cards ── */
.exp-card {
  position: relative; border-radius: 0.75rem;
  overflow: hidden; aspect-ratio: 4/5;
  background: #e9e1dc;
}
.exp-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.exp-card:hover img { transform: scale(1.05); }
.exp-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.80) 0%, rgba(0,0,0,0.25) 50%, transparent 100%);
}
.exp-card .label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 24px;
}

/* ── Botón Vista 3D / 360 ── */
.pano-btn {
  position: absolute; right: 16px; bottom: 16px; z-index: 30;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px 8px 10px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.55);
  color: #6f3418;
  font-family: 'Manrope', sans-serif;
  font-size: 13px; font-weight: 600; letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(30,27,24,0.20);
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}
.pano-btn:hover {
  background: rgba(255,255,255,0.95);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(30,27,24,0.25);
}
.pano-btn .material-symbols-outlined { font-size: 20px; }
.pano-btn-soon {
  background: rgba(30,27,24,0.42);
  color: #ffffff;
  border-color: rgba(255,255,255,0.30);
}
.pano-btn-soon:hover { background: rgba(30,27,24,0.58); }

/* ── Modal Visor 360 ── */
.pano-modal {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20,17,15,0.92);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.pano-modal.open { opacity: 1; visibility: visible; pointer-events: auto; }
.pano-modal-box {
  position: relative;
  width: 92vw; height: 88vh; max-width: 1400px;
  border-radius: 14px; overflow: hidden; background: #111;
  transform: scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
}
.pano-modal.open .pano-modal-box { transform: scale(1); }
#pano-viewer { width: 100%; height: 100%; }
.pano-status {
  position: absolute; inset: 0; z-index: 15;
  display: flex; flex-direction: column; gap: 14px;
  align-items: center; justify-content: center; text-align: center;
  padding: 24px; color: #f8efea;
  font-family: 'Manrope', sans-serif; font-size: 15px; line-height: 1.5;
  background: rgba(20,17,15,0.55); pointer-events: none;
}
.pano-status[hidden] { display: none; }
.pano-status--error { color: #ffd9d9; }
.pano-status-text, #pano-status-text { max-width: 360px; }
.pano-spinner {
  width: 38px; height: 38px; border-radius: 9999px;
  border: 3px solid rgba(255,255,255,0.25);
  border-top-color: #ffffff;
  animation: panoSpin 0.9s linear infinite;
}
.pano-status--error .pano-spinner { display: none; }
@keyframes panoSpin { to { transform: rotate(360deg); } }
.pano-retry {
  pointer-events: auto;
  margin-top: 4px;
  padding: 9px 22px; border-radius: 9999px; border: 1px solid rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.12); color: #ffffff;
  font-family: 'Manrope', sans-serif; font-size: 13.5px; font-weight: 600;
  cursor: pointer; transition: background 0.2s, transform 0.2s;
}
.pano-retry:hover { background: rgba(255,255,255,0.24); transform: translateY(-1px); }
.pano-close {
  position: absolute; top: 14px; right: 14px; z-index: 20;
  width: 44px; height: 44px; border-radius: 9999px; border: 0;
  background: rgba(255,255,255,0.92); color: #6f3418;
  font-size: 26px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  transition: transform 0.2s, background 0.2s;
}
.pano-close:hover { transform: scale(1.06); background: #ffffff; }
.pano-hint {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  z-index: 20; padding: 7px 16px; border-radius: 9999px;
  background: rgba(0,0,0,0.45); color: #ffffff;
  font-family: 'Manrope', sans-serif; font-size: 12.5px; letter-spacing: 0.03em;
  pointer-events: none;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
body.pano-open { overflow: hidden; }

/* ── Aviso "próximamente" ── */
.pano-toast {
  position: fixed; left: 50%; bottom: 32px; z-index: 90;
  transform: translate(-50%, 20px);
  background: #1e1b18; color: #ffffff;
  font-family: 'Manrope', sans-serif; font-size: 14px;
  padding: 12px 22px; border-radius: 9999px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}
.pano-toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

@media (max-width: 640px) {
  .pano-btn { right: 12px; bottom: 12px; padding: 7px 12px 7px 8px; font-size: 12px; }
  .pano-modal-box { width: 100vw; height: 100vh; border-radius: 0; }
}

/* ── Selector de idioma ── */
.lang-switch { display: inline-flex; align-items: center; }
.lang-btn {
  width: 36px; height: 36px; border-radius: 9999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid rgba(115,92,0,0.16);
  padding: 0; cursor: pointer; line-height: 0;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.lang-btn:hover {
  background: rgba(115,92,0,0.08);
  border-color: rgba(115,92,0,0.30);
  transform: translateY(-1px);
}
.lang-btn:focus-visible { outline: 2px solid #6f3418; outline-offset: 2px; }
.lang-btn svg {
  width: 22px; height: 15px; border-radius: 2px; display: block;
  box-shadow: 0 0 0 1px rgba(30,27,24,0.12);
}
@media (max-width: 767px) {
  .lang-btn { width: 32px; height: 32px; }
  .lang-btn svg { width: 20px; height: 14px; }
}

/* ── WhatsApp FAB ── */
#whatsapp-fab {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 60;
  background: #25D366; color: #fff;
  width: 56px; height: 56px; border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}
#whatsapp-fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(37,211,102,0.5);
}

/* ═══════════════════════════════════════════════
   Botón "Ver detalles" (sobre la galería de cada habitación)
═══════════════════════════════════════════════ */
.room-detail-btn {
  position: absolute; left: 16px; bottom: 16px; z-index: 30;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px 8px 10px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.55);
  color: #6f3418;
  font-family: 'Manrope', sans-serif;
  font-size: 13px; font-weight: 600; letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(30,27,24,0.20);
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}
.room-detail-btn:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(30,27,24,0.25);
}
.room-detail-btn .material-symbols-outlined { font-size: 20px; }

/* ═══════════════════════════════════════════════
   Modal Detalle de Habitación
═══════════════════════════════════════════════ */
.room-modal {
  position: fixed; inset: 0; z-index: 85;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(20,17,15,0.72);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.room-modal.open { opacity: 1; visibility: visible; pointer-events: auto; }
.room-modal-box {
  position: relative;
  width: 100%; max-width: 1100px; max-height: 92vh;
  background: #fff8f5; border-radius: 18px; overflow: hidden;
  box-shadow: 0 32px 80px rgba(45,30,20,0.30);
  transform: translateY(22px) scale(0.98);
  transition: transform 0.34s cubic-bezier(0.16,1,0.3,1);
}
.room-modal.open .room-modal-box { transform: translateY(0) scale(1); }
.room-modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 6;
  width: 42px; height: 42px; border-radius: 9999px; border: 0;
  background: rgba(255,255,255,0.92); color: #6f3418;
  font-size: 25px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  transition: transform 0.2s, background 0.2s;
}
.room-modal-close:hover { transform: scale(1.06); background: #ffffff; }
.room-modal-scroll {
  max-height: 92vh; overflow-y: auto;
  display: grid; grid-template-columns: 1.05fr 1fr;
}
.room-modal-gallery { background: #14110f; display: flex; flex-direction: column; min-height: 100%; }
.room-modal-stage { position: relative; flex: 1; min-height: 340px; }
.room-modal-stage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rm-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 9999px; border: 0;
  background: rgba(255,255,255,0.85); color: #6f3418; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.28);
  transition: background 0.2s, transform 0.2s;
}
.rm-nav:hover { background: #ffffff; }
.rm-nav.rm-prev { left: 12px; }
.rm-nav.rm-next { right: 12px; }
.rm-counter {
  position: absolute; right: 12px; bottom: 12px;
  padding: 4px 12px; border-radius: 9999px;
  background: rgba(20,17,15,0.55); color: #ffffff;
  font-family: 'Manrope', sans-serif; font-size: 12px; letter-spacing: 0.04em;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.rm-thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; background: #14110f; }
.rm-thumb {
  width: 66px; height: 50px; flex: 0 0 auto; object-fit: cover;
  border-radius: 7px; cursor: pointer; opacity: 0.5;
  border: 2px solid transparent; transition: opacity 0.2s, border-color 0.2s;
}
.rm-thumb.active { opacity: 1; border-color: #e0b985; }
.room-modal-info { padding: 34px 34px 40px; display: flex; flex-direction: column; gap: 18px; }
.rm-head h2 { font-family: 'Libre Caslon Text', serif; font-size: 30px; color: #6f3418; margin: 0 0 4px; font-weight: 400; }
.rm-head p { font-family: 'Manrope', sans-serif; font-size: 13px; color: #86736c; margin: 0; }
.rm-price { display: flex; align-items: baseline; gap: 8px; }
.rm-price strong { font-family: 'Libre Caslon Text', serif; font-size: 22px; color: #6f3418; font-weight: 400; }
.rm-price small { color: #86736c; font-size: 12px; }
.rm-desc { font-family: 'Manrope', sans-serif; font-size: 15px; line-height: 1.62; color: #53433d; margin: 0; }
.rm-section { border-top: 1px solid #e9e1dc; padding-top: 16px; }
.rm-section h3 {
  font-family: 'Manrope', sans-serif; font-size: 11px; font-weight: 800;
  letter-spacing: 0.8px; text-transform: uppercase; color: #735c00; margin: 0 0 12px;
}
.rm-amenities { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.rm-amenities li { display: flex; align-items: center; gap: 8px; font-family: 'Manrope', sans-serif; font-size: 13.5px; color: #53433d; }
.rm-amenities .material-symbols-outlined { color: #735c00; font-size: 20px; }
.rm-avail-intro { font-family: 'Manrope', sans-serif; font-size: 13px; color: #86736c; margin: 0 0 12px; line-height: 1.5; }
.rm-pax { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.rm-pax-label {
  font-family: 'Manrope', sans-serif; font-size: 12px; font-weight: 700; color: #53433d;
  text-transform: uppercase; letter-spacing: 0.5px; display: flex; align-items: center; gap: 10px;
}
.rm-ctrl { display: inline-flex; align-items: center; gap: 10px; }
.rm-ctrl button {
  width: 28px; height: 28px; border-radius: 9999px; border: 1px solid #d9c2b9;
  background: #ffffff; color: #6f3418; font-size: 16px; font-weight: 700; cursor: pointer; line-height: 1;
}
.rm-ctrl button:hover { border-color: #6f3418; background: #fdf3ed; }
.rm-ctrl span { min-width: 16px; text-align: center; font-weight: 700; color: #1e1b18; font-family: 'Manrope', sans-serif; }
.rm-cal-shell { background: #ffffff; border: 1px solid #e9e1dc; border-radius: 14px; padding: 14px; }
.rm-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.rm-cal-label { font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 700; color: #1e1b18; }
.rm-cal-nav {
  background: none; border: 0; cursor: pointer; font-size: 18px; color: #6f3418;
  font-weight: 700; padding: 2px 8px; border-radius: 6px;
}
.rm-cal-nav:hover:not(:disabled) { background: #fdf3ed; }
.rm-cal-nav:disabled { opacity: 0.35; cursor: not-allowed; }
.rm-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px 0; text-align: center; }
.rm-cal-dow { font-family: 'Manrope', sans-serif; font-size: 10px; font-weight: 700; color: #86736c; padding-bottom: 6px; }
.rm-cal-day {
  position: relative; padding: 9px 0; font-family: 'Manrope', sans-serif;
  font-size: 13px; font-weight: 600; color: #1e1b18; border-radius: 8px;
  -webkit-user-select: none; user-select: none;
}
.rm-cal-day.empty { visibility: hidden; }
.rm-cal-day.past { color: #d9c2b9; }
.rm-cal-day.pending { color: #cbb9b0; }
.rm-cal-day.free { cursor: pointer; }
.rm-cal-day.free:hover { background: #f5ece7; }
.rm-cal-day.free::after {
  content: ''; position: absolute; left: 50%; bottom: 3px; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 9999px; background: #2e9e5b;
}
.rm-cal-day.busy { color: #c9b8b0; text-decoration: line-through; cursor: pointer; }
.rm-cal-day.busy:hover { background: #fbf1f1; }
.rm-cal-day.busy::after {
  content: ''; position: absolute; left: 50%; bottom: 3px; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 9999px; background: #d64545;
}
.rm-cal-day.sel { background: #6f3418 !important; color: #ffffff !important; text-decoration: none; }
.rm-cal-day.sel::after { background: #ffffff; }
.rm-cal-day.inrange { background: #f5ece7; color: #6f3418; }
.rm-cal-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-family: 'Manrope', sans-serif; font-size: 12px; color: #86736c; }
.rm-cal-legend i.dot { display: inline-block; width: 8px; height: 8px; border-radius: 9999px; margin-right: 5px; }
.rm-cal-legend i.dot.free { background: #2e9e5b; }
.rm-cal-legend i.dot.busy { background: #d64545; }
.rm-cal-legend i.dot.sel { background: #6f3418; }
.rm-cal-status { font-family: 'Manrope', sans-serif; font-size: 12.5px; color: #86736c; margin-top: 10px; display: flex; align-items: center; gap: 8px; }
.rm-cal-status a { color: #6f3418; font-weight: 700; text-decoration: underline; }
.rm-spinner {
  width: 14px; height: 14px; border-radius: 9999px;
  border: 2px solid rgba(111,52,24,0.2); border-top-color: #6f3418;
  animation: rmSpin 0.7s linear infinite;
}
@keyframes rmSpin { to { transform: rotate(360deg); } }
.rm-summary {
  font-family: 'Manrope', sans-serif; font-size: 13.5px; color: #53433d;
  background: #f5ece7; border-radius: 10px; padding: 10px 14px;
}
.rm-summary strong { color: #6f3418; }
.rm-reserve-btn {
  width: 100%; margin-top: 4px; padding: 15px 20px; border: 0; border-radius: 10px;
  background: #6f3418; color: #ffffff; cursor: pointer;
  font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 800;
  letter-spacing: 0.5px; text-transform: uppercase;
  transition: background 0.2s, transform 0.2s;
}
.rm-reserve-btn:hover:not(:disabled) { background: #5a2a13; transform: translateY(-1px); }
.rm-reserve-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.rm-others-btn {
  width: 100%; margin-top: 8px; padding: 13px 20px;
  border: 1.5px solid #6f3418; border-radius: 10px; background: transparent;
  color: #6f3418; cursor: pointer;
  font-family: 'Manrope', sans-serif; font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.4px; text-transform: uppercase;
  transition: background 0.2s, transform 0.2s;
}
.rm-others-btn:hover { background: #fdf3ed; transform: translateY(-1px); }
body.room-open { overflow: hidden; }

@media (max-width: 900px) {
  .room-modal-scroll { grid-template-columns: 1fr; max-height: 94vh; }
  .room-modal-box { max-height: 94vh; }
  .room-modal-stage { min-height: 260px; }
  .room-modal-info { padding: 26px 22px 34px; }
  .rm-amenities { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .room-modal { padding: 0; }
  .room-modal-box { max-width: 100%; max-height: 100vh; height: 100vh; border-radius: 0; }
  .room-modal-scroll { max-height: 100vh; }
  .room-detail-btn { left: 12px; bottom: 12px; padding: 7px 12px 7px 8px; font-size: 12px; }
}
