:root {
  --purple: #58167d;
  --purple-2: #7a3aa0;
  --orange: #d78a00;
  --orange-2: #f0a94a;
  --teal: #17a98f;
  --teal-2: #6dad95;
  --teal-soft: #e8f6f2;
  --ink: #1f1830;
  --text: #3d3650;
  --muted: #6f6880;
  --line: #ece8f1;
  --bg: #ffffff;
  --wa: #1fa855;
  --radius: 20px;
  --shadow: 0 18px 40px -24px rgba(40, 14, 70, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: 'Quicksand', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.15;
  margin: 0;
}

a {
  color: var(--purple);
}

svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.wrap {
  width: min(1180px, 100% - 32px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: #fff;
  padding: 8px 14px;
  border-radius: 8px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 15px;
}

.btn-lg {
  padding: 15px 26px;
  font-size: 17px;
}

.btn-wa {
  background: var(--wa);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(31, 168, 85, 0.8);
}

.btn-primary {
  background: var(--purple);
  color: #fff;
}

.btn-ghost {
  background: #fff;
  color: var(--purple);
  border-color: rgba(88, 22, 125, 0.18);
}

/* ---------- Barra superior (píldora morada flotante) ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 76px;
  /* La barra flota sobre la portada (sin franja blanca arriba). */
  margin-bottom: -76px;
  padding: 12px 16px 0;
}

.glass-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 8px 8px 8px 22px;
  border-radius: 999px;
  /* Mismo verde del pie de página. */
  background: linear-gradient(135deg, rgba(15, 127, 108, 0.95), rgba(11, 104, 88, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 40px -22px rgba(6, 60, 50, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand img {
  height: 44px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 600;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.nav-links a:hover {
  color: #fff;
}

/* Píldora con flecha */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 6px 6px 6px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease;
}

.pill:hover {
  transform: translateY(-2px);
}

.pill-accent {
  background: #f4b13e;
  color: var(--ink);
}

.pill-arrow {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  transition: transform 0.25s ease;
}

.pill-arrow svg {
  width: 18px;
  height: 18px;
}

.pill:hover .pill-arrow {
  transform: rotate(45deg);
}

/* ---------- Portada ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #f6f1fa 0%, #ffffff 55%, var(--teal-soft) 100%);
}

.hero-shapes .arc {
  position: absolute;
  border-radius: 50%;
}

.arc-purple {
  width: 520px;
  height: 520px;
  left: -330px;
  bottom: -360px;
  border: 70px solid var(--purple);
  opacity: 0.9;
}

.arc-orange {
  width: 420px;
  height: 420px;
  left: -280px;
  bottom: -330px;
  border: 26px solid var(--orange);
}

.hero-in {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  padding: 140px 0 80px;
}

.hero h1 {
  font-size: clamp(38px, 5.4vw, 64px);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.hero h1 strong {
  display: block;
  font-weight: 700;
  color: var(--purple);
}

.lead {
  max-width: 520px;
  margin: 20px 0 30px;
  font-size: 19px;
  color: var(--muted);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.facts {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.facts li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 700;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
}

.facts svg {
  color: var(--teal);
}

.facts small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-photo {
  position: relative;
  margin: 0;
  justify-self: center;
  width: min(420px, 100%);
}

.hero-photo > img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 55%;
  border-radius: 200px 200px var(--radius) var(--radius);
  box-shadow: var(--shadow);
  border: 6px solid #fff;
}

.hero-photo figcaption {
  position: absolute;
  left: -28px;
  bottom: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 10px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow);
  font-weight: 700;
  color: var(--ink);
}

.hero-photo figcaption img {
  width: 36px;
  height: 36px;
}

/* ---------- Secciones ---------- */
.section {
  padding: 88px 0;
}

.section-tint {
  background: linear-gradient(180deg, var(--teal-soft), #f7fbfa);
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-head h2,
.location h2 {
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 700;
}

.section-head p:last-child {
  color: var(--muted);
}

/* Habitaciones */
.rooms {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.room {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.room:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.room > img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.room-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 18px;
}

.room h3 {
  font-size: 21px;
}

.room p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.tags {
  list-style: none;
  margin: 4px 0 8px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tags li {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: #0d7a66;
  font-size: 12px;
  font-weight: 700;
}

.link-wa {
  margin-top: auto;
  font-weight: 700;
  text-decoration: none;
  color: var(--purple);
}

.link-wa:hover {
  color: var(--orange);
}

.note {
  margin: 28px 0 0;
  text-align: center;
  color: var(--muted);
}

/* Servicios */
.services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.services li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}

.services strong {
  color: var(--ink);
  font-size: 17px;
}

.services small {
  color: var(--muted);
  font-size: 14px;
}

.services .ic {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 8px;
  border-radius: 14px;
  background: var(--purple);
  color: #fff;
}

.services li:nth-child(3n + 2) .ic {
  background: var(--teal);
}

.services li:nth-child(3n) .ic {
  background: var(--orange);
}

/* Galería */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 210px;
  grid-auto-flow: dense;
  gap: 12px;
}

.g {
  padding: 0;
  border: 0;
  overflow: hidden;
  border-radius: 16px;
  cursor: zoom-in;
  background: var(--line);
}

.g-tall {
  grid-row: span 2;
}

.g-wide {
  grid-column: span 2;
}

.g img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.g:hover img {
  transform: scale(1.05);
}

.lightbox {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: 92vw;
  max-height: 92vh;
}

.lightbox::backdrop {
  background: rgba(20, 8, 32, 0.85);
}

.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 14px;
}

.lb-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

/* Ubicación */
.location {
  display: grid;
  grid-template-columns: 0.85fr 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.location > div:first-child {
  align-self: center;
}

/* Ruta desde el terminal (ilustración junto al mapa) */
.route {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 18px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.route figcaption strong {
  display: block;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.25;
}

.route-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}

.route-map {
  width: 100%;
  height: auto;
}

.route-line {
  animation: route-dash 1.6s linear infinite;
}

@keyframes route-dash {
  to {
    stroke-dashoffset: -26;
  }
}

.route-times {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.route-times li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--teal-soft);
  font-size: 14px;
  color: var(--text);
}

.route-times svg {
  color: var(--teal);
}

.route-times strong {
  color: var(--ink);
}

.route-note {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.route .pill {
  justify-content: space-between;
  margin-top: auto;
}

address {
  margin: 18px 0;
  font-style: normal;
  font-size: 19px;
}

.contact {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact svg {
  color: var(--teal);
}

.map iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Llamado final */
.cta {
  padding: 80px 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(215, 138, 0, 0.35), transparent 40%),
    linear-gradient(135deg, var(--purple), #3d0d59);
  color: #f2e9f8;
  text-align: center;
}

.cta-in {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.cta img {
  width: 64px;
  height: 64px;
}

.cta h2 {
  color: #fff;
  font-size: clamp(30px, 4vw, 44px);
}

.cta p {
  margin: 0 0 12px;
  font-size: 18px;
}

/* Pie */
.footer {
  padding: 40px 0 96px;
  background: #0f7f6c;
  color: #dff3ee;
  font-size: 15px;
}

.footer-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer img {
  height: 64px;
  width: auto;
}

.footer p {
  margin: 0;
}

.footer a {
  color: #fff;
}

.small {
  font-size: 13px;
  opacity: 0.85;
}

/* WhatsApp flotante */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s ease;
}

.wa-float:hover {
  transform: scale(1.08);
}

.wa-float svg {
  width: 32px;
  height: 32px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .location {
    grid-template-columns: 1fr 1fr;
  }

  .location > div:first-child {
    grid-column: 1 / -1;
  }

  .rooms,
  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .glass-nav {
    justify-content: space-between;
  }

  .hero-in,
  .location {
    grid-template-columns: minmax(0, 1fr);
  }

  .map iframe {
    min-height: 300px;
  }

  .hero-in {
    gap: 40px;
    padding: 104px 0 64px;
  }

  .hero-photo {
    order: -1;
    width: min(320px, 80%);
  }

  .hero-photo figcaption {
    left: -12px;
  }

  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section {
    padding: 64px 0;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .brand img {
    height: 36px;
  }

  .topbar {
    padding: 8px 8px 0;
  }

  .rooms,
  .services {
    grid-template-columns: minmax(0, 1fr);
  }

  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services li {
    padding: 16px;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 160px;
  }

  .g-wide {
    grid-column: span 2;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .map iframe {
    height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .route-line {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* Servicios con foto */
.services li {
  padding: 0;
  gap: 0;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.services li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.services li > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.services li > img.pos-top {
  object-position: center 10%;
}

.svc-body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 34px 20px 20px;
}

.svc-body .ic {
  position: absolute;
  top: -23px;
  left: 20px;
  margin: 0;
  border: 3px solid #fff;
  box-sizing: content-box;
}

@media (max-width: 560px) {
  .svc-body {
    padding: 30px 14px 16px;
  }

  .svc-body .ic {
    left: 14px;
  }
}

/* Contador de visitas (pie) */
.visits {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 13px;
  color: #fff;
}

.visits[hidden] {
  display: none;
}

.visits svg {
  width: 16px;
  height: 16px;
}
