/* ===================================
   IVANKA BOLKOVIC — Inversiones Inmobiliarias
   =================================== */

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

:root {
  --cream:    #f5f0ea;
  --cream-dk: #ede8e0;
  --black:    #111111;
  --gray:     #555555;
  --gray-lt:  #999999;
  --border:   #ddd8d0;
  --white:    #ffffff;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--black);
  font-size: 15px;
  line-height: 1.6;
}

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  height: 84px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

.logo-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0;
  text-align: justify;
  text-align-last: justify;
  color: var(--black);
}

.logo-sub {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--gray);
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}

.nav a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray);
  transition: color .2s;
}

.nav a:hover { color: var(--black); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.btn-tasaciones {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--black);
  padding: 8px 18px;
  color: var(--black);
  transition: background .2s, color .2s;
}

.btn-tasaciones:hover {
  background: var(--black);
  color: var(--white);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--black);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-start;
  padding-top: 84px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,.45) 0%,
    rgba(0,0,0,.15) 55%,
    rgba(0,0,0,0) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 120px;
  padding-bottom: 180px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
  max-width: 560px;
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
}

.hero-location {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 28px;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}

.btn-dark {
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--black);
}

.btn-dark:hover {
  background: #333;
  border-color: #333;
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.7);
}

.btn-outline-light:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--white);
}

/* BUSCADOR */
.search-bar {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1240px;
  padding: 0 32px;
  z-index: 3;
}

.search-bar-inner {
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: stretch;
  box-shadow: 0 12px 48px rgba(0,0,0,.18);
}

.search-field {
  flex: 1;
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.search-field label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
}

.search-field select {
  border: none;
  outline: none;
  background: none;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--black);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 20px;
  width: 100%;
}

.search-divider {
  width: 1px;
  align-self: center;
  height: 44px;
  background: rgba(0,0,0,.12);
  flex-shrink: 0;
}

.btn-buscar {
  flex-shrink: 0;
  background: var(--black);
  color: var(--white);
  border: none;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 40px;
  cursor: pointer;
  transition: background .2s;
}

.btn-buscar:hover { background: #333; }

/* ===== DESTACADAS ===== */
.destacadas {
  padding: 80px 0 80px;
  background: var(--cream);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}

.section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 400;
  color: var(--black);
  line-height: 1.1;
}

.link-ver-todas {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--black);
  border-bottom: 1px solid var(--black);
  padding-bottom: 2px;
  white-space: nowrap;
  transition: opacity .2s;
}

.link-ver-todas:hover { opacity: .6; }

/* CARDS GRID */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Skeleton */
.card-skeleton {
  background: var(--cream-dk);
  height: 420px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .5; }
}

/* Propiedad card */
.card {
  background: var(--white);
  overflow: hidden;
  transition: box-shadow .3s;
}

.card:hover { box-shadow: 0 12px 40px rgba(0,0,0,.1); }

.card-img {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.card:hover .card-img img { transform: scale(1.04); }

.card-tag {
  position: absolute;
  top: 16px; left: 16px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--white);
  color: var(--black);
  padding: 5px 10px;
}

.card-estado {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  background: rgba(0,0,0,.7);
  color: var(--white);
}

.card-body {
  padding: 20px 20px 24px;
}

.card-titulo {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 16px;
  color: var(--black);
}

.card-specs {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--gray);
}

.card-spec {
  display: flex;
  align-items: center;
  gap: 5px;
}

.card-spec svg {
  width: 14px;
  height: 14px;
  stroke: var(--gray-lt);
  stroke-width: 1.5;
  fill: none;
}

.card-precio {
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: 0.02em;
}

.card-cod {
  font-size: 11px;
  color: #888;
  margin-top: 4px;
  display: block;
}

/* ===== ÚLTIMAS PROPIEDADES ===== */
.ultimas {
  padding: 80px 0;
  background: var(--white);
}

/* ===== VENDER ===== */
.vender {
  position: relative;
  padding: 96px 0;
  background: url('ivankanosotros.webp') center top / cover no-repeat fixed;
}

.vender-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,.72) 0%,
    rgba(0,0,0,.55) 50%,
    rgba(0,0,0,.25) 100%
  );
}

.vender-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.vender-label {
  color: rgba(255,255,255,.6) !important;
}

.vender-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--white);
  margin-top: 12px;
}

.vender-title em {
  font-style: italic;
}

.vender-cta {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.vender-icon {
  width: 64px;
  height: 64px;
  color: rgba(255,255,255,.7);
}

.vender-icon svg {
  width: 100%;
  height: 100%;
}

.vender-cta p {
  font-size: 18px;
  color: rgba(255,255,255,.85);
  line-height: 1.7;
  max-width: 400px;
  font-weight: 300;
}

.link-conocer {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
  border-bottom: 1px solid var(--black);
  padding-bottom: 2px;
  display: inline-block;
  transition: opacity .2s;
}

.link-conocer:hover { opacity: .6; }

.vender-link {
  color: var(--white) !important;
  border-bottom-color: rgba(255,255,255,.6) !important;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--cream);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

.footer-logo .social-icons {
  margin-top: 16px;
}


.footer-nav {
  display: flex;
  gap: 48px;
  flex: 1;
  padding-left: 48px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-col a {
  font-size: 13px;
  color: var(--gray);
  transition: color .2s;
}

.footer-col a:hover { color: var(--black); }

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 0;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--gray);
  transition: color .2s;
}

.footer-contact-item svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  opacity: .6;
}

a.footer-contact-item:hover { color: var(--black); }

.footer-social {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.social-icons {
  display: flex;
  gap: 14px;
  align-items: center;
}

.social-icons a {
  width: 18px;
  height: 18px;
  color: var(--gray);
  transition: color .2s;
  display: flex;
  align-items: center;
}

.social-icons a:hover { color: var(--black); }

.social-icons svg {
  width: 100%;
  height: 100%;
}

.btn-whatsapp {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--black);
  border: 1px solid var(--black);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 11px 20px;
  transition: background .2s, color .2s;
  white-space: nowrap;
}

.btn-whatsapp:hover {
  background: var(--black);
  color: var(--white);
}

.btn-whatsapp svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.footer-bottom p {
  font-size: 11px;
  color: var(--gray-lt);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav { display: none; }
  .hamburger { display: flex; }

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

  .vender-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-inner {
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    height: auto;
    min-height: 55vh;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 24px;
    align-items: stretch;
  }

  .search-bar {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    padding: 0 16px;
    margin-top: 24px;
    width: 100%;
  }

  .search-bar-inner {
    flex-direction: column;
    align-items: stretch;
    border-radius: 4px;
    overflow: hidden;
  }

  .search-field {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(0,0,0,.08);
  }

  .search-field:last-of-type {
    border-bottom: none;
  }

  .search-divider { display: none; }

  .btn-buscar {
    min-height: 52px;
    padding: 16px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 32px;
  }

  .footer-nav {
    padding-left: 0;
  }

  .footer-social {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
