/* ============================================================
   Inmobiliaria Nova — Landing Page Styles
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1a365d;
  --primary-light: #2b4c7e;
  --accent: #c9a84c;
  --accent-light: #d4b96a;
  --text: #2d3748;
  --text-light: #718096;
  --bg: #ffffff;
  --bg-alt: #f7fafc;
  --bg-dark: #0f2440;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --radius: 12px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 { line-height: 1.2; color: var(--primary); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }

.section-subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 12px auto 0;
  text-align: center;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--primary);
}
.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.3);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}

.nav-logo .logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 900;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-light);
  transition: var(--transition);
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--primary); }

.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 8px;
}
.nav-cta:hover {
  background: var(--primary-light) !important;
  color: #fff !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  margin: 6px 0;
  transition: var(--transition);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  overflow: hidden;
  padding-top: 72px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(201,168,76,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(43,76,126,0.3) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.hero-content h1 {
  color: #fff;
  margin-bottom: 20px;
}

.hero-content h1 span {
  color: var(--accent);
}

.hero-content p {
  color: rgba(255,255,255,0.8);
  font-size: 1.2rem;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.hero-stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}

.hero-stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}

/* Geometric decoration */
.hero-decoration {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  opacity: 0.08;
  z-index: 1;
}
.hero-decoration div {
  position: absolute;
  border: 2px solid #fff;
  border-radius: 20px;
}
.hero-decoration .shape-1 { width: 300px; height: 300px; top: 50px; left: 100px; transform: rotate(15deg); }
.hero-decoration .shape-2 { width: 200px; height: 200px; top: 150px; left: 20px; transform: rotate(-10deg); }
.hero-decoration .shape-3 { width: 250px; height: 250px; top: 0; left: 200px; transform: rotate(30deg); }

/* --- Section shared --- */
.section {
  padding: 96px 0;
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 12px;
}

/* --- Properties Grid --- */
.properties-section {
  background: var(--bg-alt);
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.property-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.property-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.property-img {
  height: 220px;
  position: relative;
  overflow: hidden;
}

.property-img-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}
.property-card:hover .property-img-bg {
  transform: scale(1.05);
}

/* Gradient overlay on image */
.property-img::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
}

.property-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-venta { background: var(--accent); color: var(--primary); }
.badge-alquiler { background: var(--primary); color: #fff; }

.property-price {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 2;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.property-price .currency {
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.9;
}

.property-info {
  padding: 20px 24px 24px;
}

.property-type {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 6px;
}

.property-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.property-location {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

.property-features {
  display: flex;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.property-feature {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.property-feature svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--text-light);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Services --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 { margin-bottom: 10px; }

.service-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* --- About --- */
.about-section { background: var(--bg-alt); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-image-placeholder {
  width: 100%;
  height: 420px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-image-placeholder::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 30% 70%, rgba(201,168,76,0.2), transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(255,255,255,0.05), transparent 50%);
}

.about-image-text {
  position: relative;
  text-align: center;
  color: #fff;
}
.about-image-text .big-number {
  font-size: 4rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.about-image-text p {
  font-size: 1.1rem;
  opacity: 0.8;
  margin-top: 8px;
}

.about-floating-card {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: #fff;
  border-radius: var(--radius);
  padding: 20px 28px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 16px;
}
.about-floating-card .afc-icon {
  width: 48px;
  height: 48px;
  background: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.about-floating-card .afc-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}
.about-floating-card .afc-label {
  font-size: 0.8rem;
  color: var(--text-light);
}

.about-text .section-tag { text-align: left; }
.about-text h2 { text-align: left; margin-bottom: 20px; }
.about-text p {
  color: var(--text-light);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.about-features {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-feature .check {
  width: 28px;
  height: 28px;
  background: rgba(201,168,76,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.about-feature .check svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- CTA / Contact --- */
.cta-section {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary) 100%);
  text-align: center;
}
.cta-section h2 { color: #fff; margin-bottom: 16px; }
.cta-section p {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto 36px;
}

.contact-cards {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.contact-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 28px 32px;
  text-align: center;
  min-width: 200px;
  transition: var(--transition);
}
.contact-card:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-4px);
}
.contact-card svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 12px;
}
.contact-card .cc-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
}
.contact-card .cc-value {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
}

/* --- Footer --- */
.footer {
  background: var(--bg-dark);
  padding: 48px 0 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}
.footer-logo .logo-icon {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 900;
  font-size: 0.9rem;
}

.footer-text {
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
}

/* --- Scroll reveal --- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 968px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-visual { order: -1; }
  .hero-decoration { display: none; }
  .hero-stats { gap: 32px; }
}

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

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 24px;
    gap: 20px;
    box-shadow: var(--shadow);
    border-top: 1px solid var(--border);
  }

  .hero { min-height: 80vh; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { justify-content: center; }
  .properties-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .contact-cards { flex-direction: column; align-items: center; }
  .about-floating-card { right: 10px; bottom: -10px; }
}
