/* ============================
   RESET BÁSICO
   ============================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #050508;
  color: #f5f5f5;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  padding: 0;
  margin: 0;
  list-style: none;
}

/* ============================
   VARIABLES
   ============================ */
:root {
  --bg-main: #050508;
  --bg-alt: #0e0f13;
  --bg-light: #f6f6f6;
  --text-main: #f5f5f5;
  --text-muted: #b4b4c0;
  --text-dark: #111111;
  --gold: #d4af37;
  --gold-soft: #f1d787;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.45);
}

/* ============================
   LAYOUT BASE
   ============================ */
.container {
  width: min(1120px, 100% - 2.8rem);
  margin-inline: auto;
}

.section {
  padding: 5rem 0;
}

.section-light {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.section-dark {
  background: radial-gradient(circle at top left, #26211a 0, #050508 45%, #050508 100%);
  color: var(--text-main);
}

.section-cta {
  background: linear-gradient(135deg, #111111, #26211a);
  color: var(--text-main);
}

/* ============================
   HEADER / NAV
   ============================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(5,5,8,0.96), rgba(5,5,8,0.88), rgba(5,5,8,0.0));
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.85rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.6);
  position: relative;
  overflow: hidden;
}

.logo-mark::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  background: radial-gradient(circle at 20% 0, rgba(241,215,135,0.9), transparent 55%),
              radial-gradient(circle at 80% 100%, rgba(212,175,55,0.9), transparent 60%);
}

.logo-text {
  font-weight: 600;
}

/* NAV */
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.9rem;
}

.main-nav a {
  position: relative;
  color: var(--text-muted);
  transition: color 0.2s ease-out;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  border-radius: 999px;
  transition: width 0.2s ease-out;
}

.main-nav a:hover {
  color: #ffffff;
}

.main-nav a:hover::after {
  width: 22px;
}

.nav-cta {
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.75);
  color: #fff;
  background: radial-gradient(circle at 0 0, rgba(241,215,135,0.16), transparent 60%);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  margin-block: 4px;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ============================
   HERO
   ============================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 5.5rem 0 4rem;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image: url("https://images.pexels.com/photos/439391/pexels-photo-439391.jpeg");
  background-size: cover;
  background-position: center;
  filter: grayscale(20%) contrast(1.05);
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(5,5,8,0.85), rgba(5,5,8,0.92), rgba(5,5,8,0.9)),
    radial-gradient(circle at 0 0, rgba(241,215,135,0.2), transparent 65%);
  mix-blend-mode: multiply;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: var(--gold-soft);
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.2rem, 4vw, 3.3rem);
  max-width: 34rem;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  max-width: 32rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.hero-note {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-stats {
  display: flex;
  gap: 1.8rem;
  flex-wrap: wrap;
}

.stat {
  padding-block: 0.4rem;
}

.stat-value {
  display: block;
  font-size: 1.4rem;
  font-weight: 600;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================
   BOTONES
   ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, background 0.2s ease-out, border-color 0.2s ease-out;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: #111;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.55);
}

.btn-outline {
  border-color: rgba(212, 175, 55, 0.7);
  color: var(--gold-soft);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(212, 175, 55, 0.08);
}

.btn-large {
  padding-inline: 1.9rem;
  padding-block: 1rem;
  font-size: 1rem;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--gold);
}

.btn-link::after {
  content: "↗";
  font-size: 0.85em;
}

/* ============================
   SECCIONES GENERALES
   ============================ */
.section-header {
  text-align: left;
  margin-bottom: 2.4rem;
}

.section-header h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
}

.section-header p {
  max-width: 32rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.section-light .section-header p {
  color: #6b6b77;
}

.section-grid {
  display: grid;
  gap: 2.4rem;
}

.section-text p {
  margin-bottom: 1rem;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
}

.check-list li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.check-list li::before {
  content: "▪";
  position: absolute;
  left: 0;
  top: 0.18rem;
  color: var(--gold);
}

.section-card {
  padding: 1.5rem 1.6rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.section-light .section-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
}

.section-card h3 {
  margin-top: 0;
  margin-bottom: 0.65rem;
  font-size: 1.1rem;
}

.mini-highlight {
  margin-top: 1.2rem;
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  background: radial-gradient(circle at 0 0, rgba(212,175,55,0.18), transparent 60%);
  font-size: 0.86rem;
  display: inline-flex;
  gap: 0.5rem;
}

.mini-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.mini-value {
  font-weight: 500;
}

/* ============================
   CARDS CARACTERÍSTICAS
   ============================ */
.card-grid {
  display: grid;
  gap: 1.6rem;
}

.feature-card {
  padding: 1.5rem 1.6rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: radial-gradient(circle at 0 0, rgba(212,175,55,0.12), rgba(14,15,19,0.92));
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
}

.feature-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.feature-card p {
  font-size: 0.94rem;
  color: var(--text-muted);
}

/* ============================
   UNIDADES
   ============================ */
.unit-grid {
  display: grid;
  gap: 1.8rem;
}

.unit-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
  display: grid;
}

.unit-media {
  position: relative;
  min-height: 160px;
  background-size: cover;
  background-position: center;
}

.unit-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.35), rgba(0,0,0,0.65));
}

.unit-media-2 {
  background-image: url("https://images.pexels.com/photos/439227/pexels-photo-439227.jpeg");
}

.unit-media-3 {
  background-image: url("https://images.pexels.com/photos/439391/pexels-photo-439391.jpeg");
}

.unit-media-4 {
  background-image: url("https://images.pexels.com/photos/1571460/pexels-photo-1571460.jpeg");
}

.unit-tag {
  position: absolute;
  bottom: 1.1rem;
  left: 1.2rem;
  z-index: 2;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(255,255,255,0.88);
  color: #111;
}

.unit-body {
  padding: 1.6rem 1.6rem 1.5rem;
}

.unit-body h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
}

.unit-body p {
  margin-bottom: 0.8rem;
  font-size: 0.93rem;
}

.unit-note {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: #888899;
}

/* ============================
   DETALLES / LISTAS
   ============================ */
.details-grid {
  display: grid;
  gap: 1.8rem;
}

.detail-block {
  padding: 1.6rem 1.7rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(14,15,19,0.96);
}

.detail-block h3 {
  margin-top: 0;
  margin-bottom: 0.7rem;
}

.bullet-list li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.45rem;
  font-size: 0.93rem;
}

.bullet-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0.18rem;
  color: var(--gold);
}

.steps-list {
  counter-reset: step;
}

.steps-list li {
  counter-increment: step;
  margin-bottom: 0.55rem;
  padding-left: 1.6rem;
  position: relative;
  font-size: 0.93rem;
}

.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(212,175,55,0.9);
  font-size: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ============================
   CTA SECCIONES
   ============================ */
.section-cta .cta-inner {
  display: grid;
  gap: 1.4rem;
  align-items: center;
}

.section-cta h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.7rem;
  margin: 0 0 0.6rem;
}

.section-cta p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.section-light.section-cta p {
  color: #6b6b77;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}

.cta-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.final-cta {
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ============================
   UBICACIÓN
   ============================ */
.location-grid {
  display: grid;
  gap: 2rem;
}

.location-note {
  margin-top: 0.8rem;
  font-size: 0.86rem;
  color: #6b6b77;
}

.location-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,0.22);
}

.map-placeholder {
  background: linear-gradient(135deg, #111111, #26211a);
  padding: 2.6rem 2rem;
  color: #f5f5f5;
  text-align: left;
}

.map-placeholder p {
  margin: 0 0 0.4rem;
  font-weight: 500;
}

.map-placeholder span {
  font-size: 0.9rem;
  color: #c3c3cc;
}

/* ============================
   ASESORÍA / TESTIMONIOS
   ============================ */
.advisory-grid {
  display: grid;
  gap: 1.8rem;
  margin-bottom: 2rem;
}

.advisory-block {
  padding: 1.6rem 1.7rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(14,15,19,0.96);
}

.advisory-block h3 {
  margin-top: 0;
  margin-bottom: 0.7rem;
}

.testimonials {
  display: grid;
  gap: 1.2rem;
}

.testimonial {
  margin: 0;
}

.testimonial blockquote {
  margin: 0 0 0.5rem;
  font-size: 0.93rem;
  color: var(--text-muted);
}

.testimonial figcaption {
  font-size: 0.85rem;
  color: #d2d2dd;
}

.advisory-cta {
  text-align: left;
}

/* ============================
   FOOTER
   ============================ */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 2.8rem 0 2rem;
  background-color: #050508;
}

.footer-inner {
  display: grid;
  gap: 1.8rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 20rem;
}

.footer-contact h3 {
  margin-top: 0;
  font-size: 1rem;
}

.footer-contact ul li {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.footer-contact a {
  color: var(--gold);
}

.footer-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-copy {
  margin-bottom: 0.4rem;
}

.footer-small {
  margin: 0;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 767px) {
  .main-nav {
    position: fixed;
    inset: 56px 0 auto;
    transform: translateY(-120%);
    transition: transform 0.22s ease-out;
    background: rgba(5,5,8,0.98);
    flex-direction: column;
    padding: 0.8rem 1.6rem 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .main-nav a {
    padding-block: 0.45rem;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
  }

  .site-header.nav-open .main-nav {
    transform: translateY(0%);
  }

  .site-header.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(3px) rotate(45deg);
  }

  .site-header.nav-open .nav-toggle span:nth-child(2) {
    transform: translateY(-3px) rotate(-45deg);
  }

  .hero {
    text-align: left;
  }

  .hero-stats {
    gap: 1.2rem;
  }

  .section {
    padding: 3.6rem 0;
  }

  .section-card {
    order: -1;
  }

  .unit-card {
    grid-template-columns: 1fr;
  }

  .map-placeholder {
    padding: 2rem 1.6rem;
  }
}

@media (min-width: 768px) {
  .hero {
    padding: 6.3rem 0 5rem;
  }

  .hero-content {
    max-width: 42rem;
  }

  .section-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: center;
  }

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

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

  .unit-card {
    grid-template-rows: auto 1fr;
  }

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

  .section-cta .cta-inner {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  }

  .location-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
  }

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

  .footer-inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: flex-start;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3.1rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }
}
