/* Apartamento — landing estática (Hostinger) */

:root {
  --bg: #f6f4ef;
  --bg-elevated: #ffffff;
  --surface: rgba(28, 25, 23, 0.045);
  --border: rgba(28, 25, 23, 0.12);
  --text: #1c1917;
  --muted: #57534e;
  --accent: #9a6700;
  --accent-soft: rgba(154, 103, 0, 0.12);
  --accent-border: rgba(154, 103, 0, 0.35);
  --shadow: 0 20px 60px rgba(28, 25, 23, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --max: 1100px;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 10000;
  width: auto;
  height: auto;
  clip: auto;
  overflow: visible;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-elevated);
  border: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.page-gradient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 90% 70% at 50% -20%, rgba(154, 103, 0, 0.09), transparent 50%),
    radial-gradient(ellipse 55% 45% at 100% 40%, rgba(120, 150, 180, 0.07), transparent),
    radial-gradient(ellipse 50% 45% at 0% 85%, rgba(154, 103, 0, 0.05), transparent),
    linear-gradient(180deg, #faf8f4 0%, var(--bg) 45%, #f0ebe3 100%);
}

.hero {
  text-align: center;
  padding: clamp(2.5rem, 8vw, 5rem) 1.5rem 2rem;
  max-width: 42rem;
  margin: 0 auto;
}

.hero__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--muted);
  max-width: 32ch;
  margin-left: auto;
  margin-right: auto;
}

.hero__contact {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  max-width: 26rem;
  margin-left: auto;
  margin-right: auto;
}

.hero__contact-note {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--muted);
}

.hero__contact-note strong {
  color: var(--text);
  font-weight: 500;
}

.hero__contact-row {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  font-size: 1.1rem;
}

.hero__contact-sep {
  color: var(--muted);
  user-select: none;
}

.hero__tel {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.hero__tel:hover {
  color: var(--accent);
  text-decoration: underline;
}

.hero__wa {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: #128c7e;
  box-shadow: 0 2px 8px rgba(18, 140, 126, 0.35);
  transition: filter 0.2s, transform 0.15s;
}

.hero__wa:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.hero__wa:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.section {
  margin-bottom: clamp(3rem, 8vw, 5rem);
}

.section__head {
  text-align: center;
  margin-bottom: 1.75rem;
}

.section__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 600;
  color: var(--text);
}

.section__hint {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.section__hint code {
  font-size: 0.85em;
  padding: 0.15em 0.45em;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
}

/* ——— Carousel ——— */
.carousel {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.carousel__viewport {
  flex: 1 1 100%;
  order: 1;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}

.carousel__track {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: transform 0.45s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform;
}

.carousel__slide {
  flex: 0 0 100%;
  min-width: 0;
}

.carousel__thumb {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: #e7e5e0;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.carousel__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  image-rendering: auto;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.carousel__thumb:hover img,
.carousel__thumb:focus-visible img {
  transform: scale(1.03);
}

.carousel__thumb:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.carousel__btn {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.carousel__btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent-border);
}

.carousel__btn:active {
  transform: scale(0.96);
}

.carousel__btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.carousel__btn--prev {
  order: 2;
}

.carousel__btn--next {
  order: 3;
}

@media (min-width: 641px) {
  .carousel {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.5rem;
  }

  .carousel__viewport {
    flex: none;
    order: 0;
    grid-column: 2;
    grid-row: 1;
  }

  .carousel__btn--prev {
    order: 0;
    grid-column: 1;
    grid-row: 1;
  }

  .carousel__btn--next {
    order: 0;
    grid-column: 3;
    grid-row: 1;
  }
}

.carousel__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(28, 25, 23, 0.28);
  opacity: 1;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s, background 0.2s;
}

.carousel__dot[aria-current="true"] {
  opacity: 1;
  background: var(--accent);
  transform: scale(1.15);
}

.carousel__dot:hover {
  opacity: 0.8;
}

/* ——— Description ——— */
.section--description {
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.85), rgba(246, 244, 239, 0.5));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.description {
  max-width: 680px;
  margin: 0 auto;
}

.facts-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.fact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.25rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: 0 1px 3px rgba(28, 25, 23, 0.04);
}

.fact-card__value {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.fact-card__value--sm {
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-weight: 600;
}

.fact-card__label {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.fact-card--accent {
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.fact-card--accent .fact-card__value {
  color: var(--accent);
}

.fact-card--price {
  padding: 1.35rem 1.25rem;
}

.fact-card--price .fact-card__value {
  font-size: clamp(1.5rem, 4.2vw, 2rem);
  letter-spacing: -0.02em;
}

.fact-card__currency {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}

.fact-card__sub {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.45;
  color: var(--muted);
}

.fact-card__sub strong {
  color: var(--accent);
  font-weight: 600;
}

.prose {
  max-width: none;
}

.description__lead {
  font-size: 1.08rem;
  line-height: 1.7;
}

.description__subtitle {
  margin: 2rem 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}

.feature-list {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  margin: 0 0 0.75rem;
  padding-left: 1.35rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.55;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.9;
}

.feature-list strong {
  color: var(--text);
  font-weight: 500;
}

.prose p {
  margin: 0 0 1.15em;
  color: var(--muted);
  font-weight: 300;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose strong {
  color: var(--text);
  font-weight: 500;
}

.prose__cta {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-top: 1.75rem !important;
  font-size: 1.05rem;
}

.inline-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.inline-link:hover {
  color: #7c5300;
}

.inline-link strong {
  font-weight: 600;
}

/* ——— Video ——— */
.video-wrap {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #1a1a1a;
}

.video-wrap--hd {
  max-width: min(1080px, 100%);
}

.video-player {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
  object-fit: contain;
  background: #000;
}

.video-caption {
  margin: 0.85rem auto 0;
  max-width: 42rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--muted);
}

/* ——— Facebook / YouTube ——— */
.external-block {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.external-fb {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(24, 119, 242, 0.35);
  background: linear-gradient(135deg, rgba(24, 119, 242, 0.08), rgba(24, 119, 242, 0.02));
  color: #1877f2;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.35;
  transition: box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 2px 12px rgba(24, 119, 242, 0.12);
}

.external-fb:hover {
  box-shadow: 0 4px 20px rgba(24, 119, 242, 0.2);
  transform: translateY(-1px);
}

.external-fb:focus-visible {
  outline: 2px solid #1877f2;
  outline-offset: 3px;
}

.external-fb__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}

.external-fb__text {
  flex: 1;
  color: var(--text);
}

.external-fb__arrow {
  flex-shrink: 0;
  color: #1877f2;
  font-size: 1.1rem;
}

.external-yt__label {
  margin: 0 0 0.75rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}

.yt-short {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #0f0f0f;
}

.yt-short__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.external-yt__fallback {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.88rem;
}

/* ——— Mapa ——— */
.map-card {
  max-width: 900px;
  margin: 0 auto;
}

.map-wrap {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--bg-elevated);
  aspect-ratio: 16 / 10;
  min-height: 280px;
}

.map-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-actions {
  margin: 1rem 0 0;
  text-align: center;
}

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.map-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.map-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ——— Footer ——— */
.footer {
  text-align: center;
  padding: 2rem 1rem 5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer__title {
  margin: 0 0 0.5rem;
  color: var(--text);
  font-weight: 500;
}

.footer__contact {
  margin: 0 0 0.35rem;
}

.footer__contact a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.footer__contact a:hover {
  text-decoration: underline;
}

.footer__sep {
  margin: 0 0.35rem;
  color: var(--border);
}

.footer__hint {
  font-weight: 300;
  font-size: 0.82rem;
}

.footer__legal {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  opacity: 0.85;
}

/* Botón flotante WhatsApp */
.wa-float {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: #fff;
  background: #25d366;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}

.wa-float:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
}

.wa-float:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.wa-float__icon {
  width: 28px;
  height: 28px;
}

/* ——— Lightbox (fondo oscuro fijo: mejor contraste sobre fotos) ——— */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lightbox__stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: min(96vw, 1400px);
  max-height: calc(100vh - 5rem);
  min-height: 0;
}

.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 6rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  cursor: pointer;
  transition: background 0.2s;
}

.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lightbox__nav--prev {
  left: clamp(0.5rem, 3vw, 1.5rem);
}

.lightbox__nav--next {
  right: clamp(0.5rem, 3vw, 1.5rem);
}

@media (max-width: 640px) {
  .lightbox__nav {
    width: 44px;
    height: 44px;
  }

  .lightbox__nav--prev {
    left: 0.35rem;
  }

  .lightbox__nav--next {
    right: 0.35rem;
  }
}

.lightbox__counter {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: rgba(248, 250, 252, 0.75);
}

body.lightbox-open {
  overflow: hidden;
}
