/* ==========================================================================
   Home – La Casa de Stella · Look estilo Airbnb
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

#hero-home,
#nuestros-servicios,
#quienes-somos,
#fotos,
#donde-encontrarnos,
#reservas {
  scroll-margin-top: 96px;
}

/* ================== BASE ================== */
.home-body {
  background: #ffffff !important;
  font-family: 'Quicksand', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #222222;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.home-body * {
  font-family: 'Quicksand', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.home-main {
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
}

/* ================== TOPBAR ================== */
.topbar-home {
  position: sticky;
  top: 0;
  z-index: 100;
  margin: 0;
  border-radius: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid #ebebeb;
  box-shadow: none;
}

.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #222;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-icon {
  color: var(--dorado, #B8976C);
  font-size: 1.25rem;
}

.brand-text {
  font-size: 1.05rem;
}

.topbar-home .menu {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  background: transparent;
  padding: 0;
  margin: 0;
}

.topbar-home .menu a {
  color: #222;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.topbar-home .menu a:hover {
  background: #f7f7f7;
  transform: none;
  border-color: transparent;
}

.btn-reservar-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--dorado, #B8976C) 0%, var(--dorado-hover, #A08060) 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(184, 151, 108, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-reservar-top:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(184, 151, 108, 0.35);
}

@media (max-width: 880px) {
  .topbar-home .menu {
    display: none;
  }
  .topbar-inner {
    padding: 12px 18px;
  }
}

/* ================== HERO BANNER ================== */
.hero-airbnb {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 24px 0;
}

.hero-banner {
  position: relative;
  width: 100%;
  min-height: clamp(340px, 46vh, 440px);
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.hero-banner-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/motoposada%20de%20frente.jpeg');
  background-size: cover;
  background-position: center 55%;
  background-repeat: no-repeat;
  transform: scale(1.02);
  z-index: 0;
  transition: transform 1.2s ease;
}

.hero-banner:hover .hero-banner-bg {
  transform: scale(1.05);
}

.hero-banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    120deg,
    rgba(20, 16, 12, 0.72) 0%,
    rgba(20, 16, 12, 0.45) 55%,
    rgba(20, 16, 12, 0.25) 100%
  );
}

.hero-banner-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: clamp(22px, 4vw, 44px) clamp(20px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: #fff;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-badge i {
  color: var(--dorado-claro, #D4BE9A);
  font-size: 0.8rem;
}

.hero-banner-title {
  font-size: clamp(1.85rem, 4.2vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.hero-banner-lead {
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  max-width: 580px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.hero-features {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.hero-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 14px;
  min-width: 0;
}

.hero-features li i {
  font-size: 1.15rem;
  color: var(--dorado-claro, #D4BE9A);
  margin-top: 2px;
  flex-shrink: 0;
}

.hero-features li div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hero-features li strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.hero-features li span {
  display: block;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 4px;
  line-height: 1.35;
}

@media (max-width: 880px) {
  .hero-features {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 520px) {
  .hero-airbnb {
    padding: 16px 12px 0;
  }
  .hero-banner {
    border-radius: 18px;
    min-height: 380px;
  }
  .hero-banner-content {
    padding: 22px 18px;
    gap: 12px;
  }
}

/* ================== CONTENT ================== */
.content-wrapper {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  align-items: start;
}

.content-main {
  min-width: 0;
}

.content-main > section {
  padding: 36px 0;
  border-top: 1px solid #ebebeb;
}

.content-main > section:first-child {
  border-top: none;
  padding-top: 8px;
}

.section-title {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #222;
  margin: 0 0 12px 0;
}

.section-lead {
  font-size: 1rem;
  line-height: 1.55;
  color: #444;
  margin: 0 0 20px 0;
}

/* ================== HOST ================== */
.host-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border: 1px solid #ebebeb;
  border-radius: 16px;
  background: #fafafa;
}

.host-avatar-wrap {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  background: #eee;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.host-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.host-info {
  min-width: 0;
}

.host-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
  margin: 0 0 4px 0;
}

.host-role {
  color: #717171;
  font-size: 0.9rem;
  margin: 0 0 10px 0;
}

.host-bio {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 520px) {
  .host-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ================== SERVICIOS ================== */
.servicios-section {
  background: transparent;
  border: none;
  padding: 36px 0;
  max-width: none;
  margin: 0;
}

.servicios-lista {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 24px;
}

.servicios-lista li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  font-size: 0.98rem;
  color: #222;
  border-bottom: 1px solid #f0f0f0;
}

.servicios-lista li i {
  flex-shrink: 0;
  width: 28px;
  text-align: center;
  color: #4a4a4a;
  font-size: 1.15rem;
}

@media (max-width: 640px) {
  .servicios-lista {
    grid-template-columns: 1fr;
  }
}

/* ================== CARRUSELES ================== */
.carruseles-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

.carrusel-bloque {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.carrusel-subtitle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: #222;
  margin: 0;
}

.carrusel-subtitle i {
  color: var(--dorado, #B8976C);
  font-size: 1rem;
}

.abanico-container {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: transparent;
  min-width: 0;
}

.abanico-track {
  display: flex;
  gap: 10px;
  padding: 4px 2px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  background: transparent;
  scrollbar-width: none;
}

.abanico-track::-webkit-scrollbar {
  display: none;
}

.abanico-track img {
  flex: 0 0 auto;
  width: 220px;
  height: 155px;
  object-fit: cover;
  border-radius: 12px;
  scroll-snap-align: start;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.abanico-track img:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.carrusel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #fff;
  color: #222;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.2s ease;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
}

.abanico-container:hover .carrusel-nav,
.carrusel-nav:focus-visible {
  opacity: 1;
  pointer-events: auto;
}

.carrusel-nav:hover {
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.carrusel-nav[disabled] {
  opacity: 0 !important;
  pointer-events: none;
}

.carrusel-nav.prev {
  left: 8px;
}

.carrusel-nav.next {
  right: 8px;
}

@media (max-width: 640px) {
  .abanico-track img {
    width: 200px;
    height: 140px;
  }
  .carrusel-nav {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (hover: none) {
  .carrusel-nav {
    opacity: 1;
    pointer-events: auto;
  }
}

/* ================== MAPA ================== */
.mapa-container {
  position: relative;
  width: 100%;
  height: 340px;
  max-height: 50vh;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #ebebeb;
}

.mapa-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 640px) {
  .mapa-container {
    height: 280px;
  }
}

/* ================== RESERVAS CARD ================== */
.reservas-aside {
  position: sticky;
  top: 96px;
  align-self: start;
}

.reservas-card {
  background: #fff;
  border: 1px solid #dddddd;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.reservas-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.reservas-precio {
  font-size: 1.2rem;
  font-weight: 700;
  color: #222;
  letter-spacing: -0.01em;
}

.reservas-card-texto {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.btn-reservar-card {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, var(--dorado, #B8976C) 0%, var(--dorado-hover, #A08060) 100%);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 18px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(184, 151, 108, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-reservar-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(184, 151, 108, 0.4);
}

.btn-llamar-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  color: #222;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid #222;
  transition: background 0.2s ease;
}

.btn-llamar-card:hover {
  background: #f7f7f7;
}

.btn-llamar-card i {
  color: var(--dorado, #B8976C);
}

.reservas-card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #ebebeb;
  color: #717171;
  font-size: 0.85rem;
}

.reservas-card-footer i {
  color: #25d366;
  font-size: 1.1rem;
}

@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .reservas-aside {
    position: static;
  }
  .reservas-card {
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 520px) {
  .content-wrapper {
    padding: 24px 16px 60px;
  }
}

/* ================== FOOTER ================== */
.site-footer {
  background: #f7f7f7;
  border-top: 1px solid #ebebeb;
  padding: 28px 24px;
}

.site-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #222;
}

.footer-brand i {
  color: var(--dorado, #B8976C);
}

.footer-text {
  color: #717171;
  font-size: 0.9rem;
  margin: 0;
}

.footer-copy {
  color: #b0b0b0;
  font-size: 0.8rem;
  margin: 0;
}

.footer-admin-link {
  color: #b0b0b0;
  text-decoration: none;
  border-bottom: 1px dotted #cfcfcf;
  margin-left: 4px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-admin-link:hover {
  color: var(--marron-medio, #6b5344);
  border-bottom-color: var(--marron-medio, #6b5344);
}

/* ================== LIGHTBOX ================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.activo {
  display: flex;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  cursor: pointer;
}

.lightbox-img {
  position: relative;
  z-index: 2;
  max-width: 95vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.lightbox-cerrar {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.lightbox-cerrar:hover {
  background: rgba(255, 255, 255, 0.35);
}
