/* ============ PENSIÓN SEÑORA MYRIAM · STYLES (Bootstrap 5) ============ */
:root {
  --sand: #e1dcd2;
  --sand-deep: #ebdcbe;
  --terracotta: #D9583B;
  --terracotta-deep: #731D0A;
  --cactus: #1EAD50;
  --cactus-deep: #1EAD50;
  --ink: #2a2418;
  --card: #fffaf1;
  --border: #ddd0b3;
  --muted: #7a6f5a;
  --shadow: 0 12px 28px -16px rgba(160, 79, 40, 0.4);
  --font-display:  Georgia, serif;
  --font-sans: "DM Sans", system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--sand);
  color: var(--ink);
  line-height: 1.6;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(199, 106, 63, 0.06) 0, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(107, 146, 105, 0.05) 0, transparent 40%);
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
em { font-style: italic; }

.accent { color: var(--terracotta); font-family: var(--font-display); font-style: italic; }
.cactus { color: var(--cactus-deep); font-family: var(--font-display); font-style: italic; }

/* ---------- NAVBAR (Bootstrap) ---------- */
.navbar-custom {
  background: rgba(245, 236, 217, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(221, 208, 179, 0.6);
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}
.nav__logo { height: 62px; width: auto; }
.navbar-custom .nav-link { color: rgba(42, 36, 24, 0.75); font-size: 14px; font-weight: 500; transition: color .2s; }
.navbar-custom .nav-link:hover, .navbar-custom .nav-link:focus { color: var(--terracotta); }
.navbar-toggler { width: 48px; height: 48px; border-radius: 50%; border-color: var(--border); box-shadow: none !important; }
.navbar-toggler:focus { box-shadow: 0 0 0 0.15rem rgba(199, 106, 63, 0.35) !important; }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(199, 106, 63, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
@media (max-width: 991.98px) {
  .navbar-collapse { background: var(--sand); border-top: 1px solid var(--border); margin: 0.65rem -0.75rem -0.65rem; padding: 1rem 1.75rem 1.25rem; border-radius: 0 0 1rem 1rem; }
}
.icon-whatsapp { width: 17px; height: 17px; flex-shrink: 0; object-fit: contain; display: inline-block; vertical-align: middle; }
.icon-whatsapp--contact { width: 20px; height: 20px; }
.contact__icon--wa { background: var(--terracotta); box-shadow: 0 6px 16px -6px rgba(199, 106, 63, 0.55); }
.nav__cta { padding: 0.55rem 1.15rem !important; font-size: 14px; }

/* ---------- BUTTONS (Bootstrap variable overrides) ---------- */
.btn-primary {
  --bs-btn-bg: var(--terracotta);
  --bs-btn-border-color: var(--terracotta);
  --bs-btn-hover-bg: var(--terracotta-deep);
  --bs-btn-hover-border-color: var(--terracotta-deep);
  --bs-btn-active-bg: var(--terracotta-deep);
  --bs-btn-active-border-color: var(--terracotta-deep);
  --bs-btn-disabled-bg: var(--terracotta);
  --bs-btn-disabled-border-color: var(--terracotta);
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-color: #fff;
  --bs-btn-focus-shadow-rgb: 199, 106, 63;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn-primary:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 16px 30px -12px rgba(160, 79, 40, 0.6);
}
.btn-primary:active { transform: translateY(0) scale(0.99); }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100svh; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.35) 60%, rgba(245,236,217,0.7)); }
.hero__content { position: relative; z-index: 1; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 7rem 1.5rem 4.5rem; }
.hero__logo { width: min(480px, 78vw); filter: drop-shadow(0 8px 24px rgba(0,0,0,0.25)); }
.hero__lead { margin-top: 1.5rem; max-width: 42rem; font-size: clamp(1.05rem, 2vw, 1.25rem); color: rgba(255,255,255,0.95); font-weight: 500; }
.hero__lead em { font-family: var(--font-display); }
.hero__sub { margin-top: 0.6rem; max-width: 36rem; color: rgba(255,255,255,0.85); }
.hero .btn { margin-top: 2rem; }
.hero__pin { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.8); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translate(-50%,0);} 50% { transform: translate(-50%,-8px);} }

/* ---------- SECTIONS ---------- */
.section { padding: 4.25rem 0; position: relative; }
.section--alt { background: color-mix(in oklab, var(--sand-deep) 55%, var(--sand)); }
@media (min-width: 768px) { .section { padding: 5.5rem 0; } }

.eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--terracotta); font-weight: 600; }
.eyebrow span { width: 32px; height: 1px; background: rgba(199, 106, 63, 0.6); }
.h2 { margin-top: 0.65rem; font-size: clamp(2rem, 4vw, 3rem); }
.lead { margin-top: 0.9rem; font-size: 1.1rem; color: rgba(42, 36, 24, 0.75); }
.lead--max { max-width: 42rem; }

/* ---------- STATS ---------- */
.stats { margin-top: 1.5rem; max-width: 28rem; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: 1rem; padding: 1rem; text-align: center; height: 100%; }
.stat__n { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--terracotta); }
.stat__l { margin-top: 0.25rem; font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); line-height: 1.2; }

/* ---------- FRAMED IMG ---------- */
.framed { position: relative; }
.framed__bg { position: absolute; inset: -1rem; background: rgba(199, 106, 63, 0.1); border-radius: 2rem; transform: rotate(-2deg); }
.framed__img { position: relative; border-radius: 1.75rem; width: 100%; aspect-ratio: 4/5; object-fit: cover; box-shadow: var(--shadow); }
.framed--tall .framed__img { aspect-ratio: 4/5; }
.framed__badge { position: absolute; bottom: -1.5rem; left: -1.5rem; background: var(--card); border: 1px solid var(--border); border-radius: 1rem; padding: 0.75rem 1rem; display: flex; align-items: center; gap: 0.75rem; font-size: 1.5rem; box-shadow: var(--shadow); }
.framed__badge-t { font-size: 14px; font-weight: 600; font-family: var(--font-sans); }
.framed__badge-s { font-size: 12px; color: var(--muted); }
.framed__tag { position: absolute; top: -1rem; right: -1rem; background: var(--cactus); color: #fff; border-radius: 999px; padding: 0.5rem 1rem; font-size: 11px; text-transform: uppercase; letter-spacing: 0.15em; box-shadow: var(--shadow); }
@media (max-width: 600px) { .framed__badge { display: none; } .framed__tag { right: 1rem; top: -0.75rem; } }

/* ---------- HABITACIONES ---------- */
.rooms__img-el { border-radius: 1.5rem; aspect-ratio: 4/3; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.rooms__carousel { border-radius: 1.5rem; overflow: hidden; box-shadow: var(--shadow); }
.rooms__carousel .rooms__img-el { box-shadow: none; border-radius: 0; }
.rooms__carousel .carousel-control-prev,
.rooms__carousel .carousel-control-next { width: 3rem; }
.rooms__carousel .carousel-control-prev-icon,
.rooms__carousel .carousel-control-next-icon { width: 1.75rem; height: 1.75rem; background-color: rgba(42, 36, 24, 0.35); border-radius: 50%; padding: 0.4rem; background-size: 60%; }
.rooms__carousel .carousel-indicators [data-bs-target] { background-color: var(--terracotta); width: 8px; height: 8px; border-radius: 50%; border: none; margin: 0 4px; }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: 1rem; padding: 1.25rem; display: flex; gap: 1rem; }
.feature__icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 0.75rem; background: rgba(199, 106, 63, 0.12); display: grid; place-items: center; font-size: 1.25rem; }
.feature__t { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; }
.feature p { margin-top: 0.25rem; font-size: 14px; color: rgba(42, 36, 24, 0.7); }

/* ---------- MENÚ ---------- */
.menu { margin-top: 1.5rem; background: var(--card); border: 1px solid var(--border); border-radius: 1.5rem; padding: 1.5rem; box-shadow: var(--shadow); }
.menu__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 0.85rem; border-bottom: 1px dashed var(--border); }
.menu__eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 0.25em; color: var(--terracotta); }
.menu__title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; margin-top: 0.25rem; }
.menu__icon { width: 2rem; height: 2rem; object-fit: contain; }
.menu__list { list-style: none; margin-top: 1rem; display: grid; gap: 0.85rem; padding: 0; }
@media (min-width: 600px) { .menu__list { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; } }
.menu__row { display: flex; align-items: baseline; gap: 0.5rem; }
.menu__item { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; }
.menu__dots { flex: 1; border-bottom: 1px dotted rgba(221, 208, 179, 0.7); transform: translateY(-4px); }
.menu__list p { font-size: 14px; color: rgba(42, 36, 24, 0.7); margin-top: 0.25rem; }

/* ---------- PAPOSO ---------- */
.paposo { overflow: hidden; }
.paposo__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.9; z-index: -1; }
.paposo__overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, var(--sand), rgba(245,236,217,0.7), var(--sand)); z-index: -1; }
.pm-card { background: var(--card); border: 1px solid var(--border); border-radius: 1rem; padding: 1.5rem; transition: transform .3s; }
.pm-card:hover { transform: translateY(-4px); }
.card__icon { width: 44px; height: 44px; border-radius: 0.75rem; background: rgba(107, 146, 105, 0.15); object-fit: cover; }
.card__icon--round { border-radius: 50%; }
.card__t { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; margin-top: 1rem; }
.pm-card p { margin-top: 0.5rem; font-size: 14px; color: rgba(42, 36, 24, 0.7); }

/* ---------- GALERÍA ---------- */
.gallery { margin-top: 2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
@media (min-width: 700px) { .gallery { gap: 1rem; } }
.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  aspect-ratio: 4/3;
  flex: 0 0 calc((100% - 0.75rem) / 2);
  box-shadow: 0 8px 20px -12px rgba(42, 36, 24, 0.35);
  transition: transform .45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow .45s ease;
}
@media (min-width: 700px) {
  .gallery__item { flex-basis: calc((100% - 3rem) / 4); }
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1), filter .6s ease;
  filter: saturate(1) brightness(1);
}
/* Overlay con degradado + ícono de lupa que aparece al pasar el mouse */
.gallery__item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(42, 36, 24, 0.65) 0%, rgba(42, 36, 24, 0) 45%);
  opacity: 0;
  transition: opacity .45s ease;
  z-index: 1;
  pointer-events: none;
}
.gallery__item::after {
  content: "🔍";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity .4s ease, transform .4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2;
  pointer-events: none;
  text-shadow: 0 4px 14px rgba(0,0,0,0.4);
}
.gallery__item:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 34px -14px rgba(42, 36, 24, 0.5);
  z-index: 3;
}
.gallery__item:hover img {
  transform: scale(1.15) rotate(-1deg);
  filter: saturate(1.15) brightness(1.05);
}
.gallery__item:hover::before { opacity: 1; }
.gallery__item:hover::after { opacity: 1; transform: scale(1); }
@media (prefers-reduced-motion: reduce) {
  .gallery__item, .gallery__item img, .gallery__item::before, .gallery__item::after { transition: none; }
}

.image-viewer {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 1rem;
  border: 0;
  background: rgba(25, 22, 18, 0.96);
  color: #fff;
}
.image-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.image-viewer::backdrop { background: rgba(25, 22, 18, 0.96); }
.image-viewer__minimize {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.image-viewer__minimize:hover,
.image-viewer__minimize:focus-visible { background: rgba(255, 255, 255, 0.24); }
.image-viewer__minimize span { font-size: 1.4rem; line-height: 1; }
.image-viewer__image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

/* ---------- CONTACTO ---------- */
.contacts { margin-top: 1.5rem; display: grid; gap: 0.75rem; }
.contact { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; background: var(--card); border: 1px solid var(--border); border-radius: 1rem; transition: border-color .2s, transform .2s; }
a.contact:hover { border-color: var(--terracotta); transform: translateX(2px); }
.contact__icon { width: 44px; height: 44px; border-radius: 0.75rem; background: rgba(199, 106, 63, 0.12); display: grid; place-items: center; font-size: 1.25rem; flex-shrink: 0; }
.contact__t { font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted); }
.contact__d { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; margin-top: 0.15rem; }
.map { border-radius: 1.5rem; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); min-height: 420px; height: 100%; }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; }

/* ---------- FOOTER ---------- */
.footer { background: var(--ink); color: var(--sand); padding: 4rem 0 2rem; }
.footer__logo { height: 48px; filter: brightness(0) invert(1); opacity: 0.9; }
.footer__text { margin-top: 1rem; font-size: 14px; color: rgba(245, 236, 217, 0.7); max-width: 20rem; }
.footer__eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 0.25em; color: var(--terracotta); }
.footer__t { font-family: var(--font-display); font-size: 1.1rem; margin-top: 0.75rem; }
.footer__s { font-size: 14px; color: rgba(245, 236, 217, 0.7); }
.footer__social { margin-top: 0.75rem; display: flex; gap: 0.75rem; }
.footer__social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(245, 236, 217, 0.25); display: grid; place-items: center; font-size: 12px; font-weight: 600; transition: all .2s; }
.footer__social a:hover { background: var(--terracotta); border-color: var(--terracotta); }
.footer__bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(245, 236, 217, 0.15); display: flex; flex-direction: column; gap: 0.5rem; align-items: center; justify-content: space-between; font-size: 12px; color: rgba(245, 236, 217, 0.6); }
@media (min-width: 600px) { .footer__bottom { flex-direction: row; } }

/* ---------- REVEAL ANIMATIONS ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-x { opacity: 0; transform: translateX(-32px); transition: opacity .9s ease, transform .9s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal-x.in { opacity: 1; transform: none; }

/* ---------- GRAIN TEXTURE ---------- */
.grain { position: relative; }
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.15; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.4  0 0 0 0 0.25  0 0 0 0 0.15  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  border-radius: inherit;
}
