/* =========================================
   INFINITUM – Marketing Inmobiliario
   Design System & Shared Styles
   ========================================= */

@import url('https://fonts.cdnfonts.com/css/gotham-rounded');
@import url('https://fonts.cdnfonts.com/css/gotham');

/* ---------- CSS Variables ---------- */
:root {
  color-scheme: dark;
  --clr-bg:        #07090f;
  --clr-bg2:       #0d1120;
  --clr-surface:   #111827;
  --clr-surface2:  #1a2235;
  --clr-gold:      #7acbea;
  --clr-gold-lt:   #a9deff;
  --clr-teal:      #BD90D3;
  --clr-teal-dk:   #a674bd;
  --clr-text:      #f3f4f6;
  --clr-muted:     #a1acc3;
  --clr-border:    rgba(122, 203, 234, 0.22);

  --ff-head: 'Gotham', sans-serif;
  --ff-body: 'Gotham Rounded', sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --shadow-gold: 0 0 40px rgba(122, 203, 234, 0.12);
  --shadow-card: 0 8px 40px rgba(0,0,0,0.45);

  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.7;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--clr-bg2); }
::-webkit-scrollbar-thumb { background: var(--clr-gold); border-radius: 3px; }

::selection { background: var(--clr-gold); color: var(--clr-bg); }

/* Custom Cursor */
.custom-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 10px; height: 10px;
  background: radial-gradient(circle, #fff 0%, var(--clr-gold) 80%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  box-shadow: 
    0 0 12px var(--clr-gold),
    0 0 24px rgba(122, 203, 234, 0.5);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              height 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.3s ease, 
              background 0.3s ease;
  will-change: transform;
}
.custom-cursor.hover {
  width: 50px; height: 50px;
  background: rgba(122, 203, 234, 0.1);
  border: 1px solid rgba(122, 203, 234, 0.5);
  box-shadow: 0 0 40px rgba(122, 203, 234, 0.2);
}
@media (min-width: 901px) {
  body, a, button, .btn { cursor: none !important; }
}
@media (max-width: 900px) {
  .custom-cursor { display: none !important; }
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 1400px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 80px;
  background: rgba(7, 9, 15, 0.35);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(122, 203, 234, 0.15);
  border-radius: 100px;
  transition: all var(--transition);
}
.navbar.scrolled {
  top: 12px;
  height: 70px;
  background: rgba(7, 9, 15, 0.65);
  border-color: var(--clr-gold);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  width: 95%;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo .nav-logo-img {
  height: 63px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  transition: filter var(--transition), transform var(--transition);
}
.nav-logo:hover .nav-logo-img {
  filter: drop-shadow(0 0 8px var(--clr-gold)) drop-shadow(0 0 15px rgba(122, 203, 234, 0.4)) brightness(1.3);
  transform: scale(1.04);
}
.nav-logo .logo-text {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--clr-gold-lt), var(--clr-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Nav links */
.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
}
.nav-links a {
  padding: 8px 22px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--clr-muted);
  letter-spacing: 0.03em;
  transition: color var(--transition), background var(--transition);
  position: relative;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--clr-text);
  background: rgba(122, 203, 234, 0.10);
}
.nav-links a.active {
  color: var(--clr-gold-lt);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 22px; right: 22px;
  height: 2px;
  background: linear-gradient(90deg, var(--clr-gold), var(--clr-teal));
  border-radius: 2px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  align-items: center;
  justify-content: center;
}
.hamburger span {
  display: block;
  width: 5px; height: 5px;
  background: var(--clr-gold-lt);
  border-radius: 50%;
  transition: var(--transition);
}
.hamburger.active span:nth-child(2) {
  background: var(--clr-teal);
}

/* Mobile nav */
.mobile-nav {
  display: flex;
  position: fixed;
  top: 100px; left: 5%; right: 5%;
  background: rgba(13, 17, 32, 0.95);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  padding: 24px 5% 32px;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  z-index: 999;
  flex-direction: column;
  gap: 4px;
  /* Initial hidden state for animation */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: all var(--transition);
  pointer-events: none;
}
.mobile-nav.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-nav a {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 500;
  color: var(--clr-muted);
  /* Link reveal animation */
  opacity: 0;
  transform: translateX(-15px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-nav.open a {
  opacity: 1;
  transform: translateX(0);
}
.mobile-nav.open a:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav.open a:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav.open a:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav.open a:nth-child(4) { transition-delay: 0.25s; }
.mobile-nav.open a:nth-child(5) { transition-delay: 0.3s; }
.mobile-nav.open a:nth-child(6) { transition-delay: 0.35s; }

.mobile-nav a:hover,
.mobile-nav a.active { color: var(--clr-gold-lt); background: rgba(122, 203, 234, 0.08); }

/* =========================================
   SHARED UTILITIES
   ========================================= */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}
.section { padding: 100px 0; }
.section--alt { background: var(--clr-bg2); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: 16px;
}


.section-title {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  color: var(--clr-text);
}
.section-title span {
  background: linear-gradient(90deg, var(--clr-gold-lt), var(--clr-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--clr-muted);
  max-width: 600px;
  margin-top: 16px;
  line-height: 1.8;
}

/* Gradient border card */
.card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(122, 203, 234, 0.05), rgba(189, 144, 211, 0.03));
  opacity: 0;
  transition: opacity var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card), var(--shadow-gold);
  border-color: rgba(122, 203, 234, 0.35);
}
.card:hover::before { opacity: 1; }

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--clr-gold), #4ba5c9);
  color: var(--clr-bg);
  box-shadow: 0 4px 24px rgba(122, 203, 234, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(122, 203, 234, 0.5);
}
.btn-outline {
  background: transparent;
  color: var(--clr-gold-lt);
  border: 1.5px solid var(--clr-gold);
}
.btn-outline:hover {
  background: rgba(122, 203, 234, 0.1);
  transform: translateY(-2px);
}

/* Divider */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clr-border), transparent);
  margin: 0;
}

/* Tag */
.tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: rgba(122, 203, 234, 0.12);
  color: var(--clr-gold-lt);
  border: 1px solid rgba(122, 203, 234, 0.2);
}

/* Center utility */
.center { text-align: center; }

/* =========================================
   FOOTER
   ========================================= */
.footer {
  position: relative;
  background: url('../assets/footer.png') center center / cover no-repeat;
  border-top: 1px solid var(--clr-border);
  padding: 60px 0 32px;
}
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(7, 9, 15, 0.75);
  z-index: 0;
}
.footer > * {
  position: relative;
  z-index: 1;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .footer-logo-img {
  height: 72px;
  width: auto;
  object-fit: contain;
  margin-bottom: 14px;
  display: block;
}
.footer-brand p {
  color: var(--clr-muted);
  font-size: 0.92rem;
  max-width: 300px;
  line-height: 1.8;
}
.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 0.92rem;
  color: var(--clr-muted);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--clr-gold-lt); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--clr-border);
  font-size: 0.82rem;
  color: var(--clr-muted);
}

/* =========================================
   REVEAL ANIMATIONS
   ========================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .section { padding: 72px 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
