
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1a2a33;
  background-color: #f5f7fb;
  line-height: 1.6;
}

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

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

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 47, 73, 0.96);
  backdrop-filter: blur(8px);
  color: #fff;
}

.navbar {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
}

.navbar .brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar .brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid #38bdf8;
}

.navbar .brand-text {
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 0.95rem;
}

.nav-links {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
}

.nav-links a {
  opacity: 0.85;
}

.nav-links a:hover {
  opacity: 1;
}

/* Hero */

.hero {
  position: relative;
  color: #fff;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(8, 47, 73, 0.9), rgba(37, 99, 235, 0.65));
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../img/banner_casa_propia.jpg");
  background-size: cover;
  background-position: center;
  filter: brightness(0.5);
  transform: scale(1.05);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.7rem);
  margin-bottom: 1rem;
}

.hero p.lead {
  font-size: 1rem;
  max-width: 32rem;
  margin-bottom: 1.5rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.badge {
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.btn-primary {
  background: #22c55e;
  color: #022c22;
  box-shadow: 0 10px 20px rgba(22, 163, 74, 0.4);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(22, 163, 74, 0.45);
}

.btn-outline {
  background: transparent;
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.8);
}

.btn-outline:hover {
  background: rgba(15, 23, 42, 0.4);
}

.hero-contact-note {
  font-size: 0.8rem;
  opacity: 0.85;
}

.hero-card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 1.25rem;
  padding: 1.6rem 1.5rem 1.4rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(10px);
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.hero-card-header img {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid #38bdf8;
}

.hero-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.hero-card-subtitle {
  font-size: 0.8rem;
  opacity: 0.75;
}

.hero-card-body {
  font-size: 0.8rem;
  opacity: 0.9;
  margin-bottom: 1rem;
}

.hero-card-tagline {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #38bdf8;
  margin-bottom: 0.4rem;
}

.hero-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(30, 64, 175, 0.8);
  padding-top: 0.6rem;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: #cbd5f5;
}

/* Sections */

section {
  padding: 4rem 1.5rem;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 2rem;
  text-align: left;
}

.section-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #0f766e;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 1.7rem;
  margin-bottom: 0.5rem;
  color: #0f172a;
}

.section-subtitle {
  font-size: 0.95rem;
  color: #475569;
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  gap: 2rem;
  align-items: start;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.highlight-card {
  background: #ffffff;
  border-radius: 0.95rem;
  padding: 0.9rem 0.95rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(203, 213, 225, 0.8);
}

.highlight-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #0f766e;
  margin-bottom: 0.3rem;
}

.highlight-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.highlight-text {
  font-size: 0.8rem;
  color: #64748b;
}

.about-media {
  display: grid;
  gap: 0.8rem;
}

.about-media-main {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
}

.about-media-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.8rem;
}

.about-media-row img {
  border-radius: 0.75rem;
  object-fit: cover;
}

/* Gallery */

.gallery {
  background: radial-gradient(circle at top left, #e0f2fe, #f5f7fb 55%);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
}

.gallery-item {
  position: relative;
  border-radius: 0.9rem;
  overflow: hidden;
  cursor: pointer;
  background: #020617;
}

.gallery-item img {
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.gallery-item::after {
  content: "Ver más";
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
  color: #e5e7eb;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
  text-align: right;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
  opacity: 0.9;
}

.gallery-item:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1.5rem;
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  position: relative;
}

.lightbox-img {
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 0.75rem;
}

.lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0.25rem;
  font-size: 1.4rem;
  color: #e5e7eb;
  cursor: pointer;
}

/* Video & Facebook */

.media-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.3fr);
  gap: 1.5rem;
}

.responsive-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
}

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

/* Financing */

.financing-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 2.2fr);
  gap: 2rem;
  align-items: center;
}

.financing-steps {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.step {
  background: #fff;
  border-radius: 0.9rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(203, 213, 225, 0.9);
  box-shadow: 0 10px 25px rgba(15,23,42,0.04);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem;
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid #0f766e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #0f766e;
}

.step-body-title {
  font-weight: 600;
  font-size: 0.9rem;
}

.step-body-text {
  font-size: 0.8rem;
  color: #64748b;
}

/* Contact */

.contact {
  background: #0f172a;
  color: #e5e7eb;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.4fr);
  gap: 2.2rem;
}

.contact .section-title {
  color: #e5e7eb;
}

.contact .section-subtitle {
  color: #cbd5f5;
}

.contact-details {
  font-size: 0.9rem;
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.contact-details a {
  color: #e5e7eb;
}

.contact-details strong {
  color: #facc15;
}

.contact-form-card {
  background: #020617;
  border-radius: 1.2rem;
  padding: 1.5rem 1.4rem 1.3rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(51, 65, 85, 0.9);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.8rem;
}

label {
  font-size: 0.8rem;
  color: #e5e7eb;
}

input,
textarea {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.65rem;
  border: 1px solid #1f2937;
  background: #020617;
  color: #e5e7eb;
  font-size: 0.85rem;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 2px solid #38bdf8;
  border-color: transparent;
}

.contact-small {
  font-size: 0.7rem;
  color: #9ca3af;
  margin-top: 0.4rem;
}

/* Footer */

footer {
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  padding: 1rem 1.5rem 1.4rem;
  background: #020617;
  color: #9ca3af;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  justify-content: space-between;
}

footer a {
  color: #e5e7eb;
}

/* Floating WhatsApp */

.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 80;
}

.whatsapp-float a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 15px 35px rgba(22, 163, 74, 0.55);
  color: #022c22;
  font-size: 1.6rem;
}

/* Utilities */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: #0f766e;
  border: 1px solid rgba(34, 197, 94, 0.55);
}

/* Responsive */

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 4.5rem;
  }
  .hero-card {
    margin-top: -0.5rem;
  }
  .about-grid,
  .media-grid,
  .financing-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .hero {
    min-height: 80vh;
  }
  section {
    padding-inline: 1.1rem;
  }
  .hero-content {
    padding-inline: 1.2rem;
  }
}
