:root {
  --bg:      #f7f4ee;
  --white:   #ffffff;
  --dark:    #12100e;
  --gold:    #b89a3a;
  --gold-lt: rgba(184,154,58,0.15);
  --text:    #12100e;
  --muted:   #8a8278;
  --line:    rgba(18,16,14,0.1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  mix-blend-mode: normal;
}
nav.scrolled {
  background: rgba(247,244,238,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 0.5px solid var(--line);
}
.logo {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 200;
  letter-spacing: 0.28em;
  color: var(--white);
  text-transform: uppercase;
  transition: color 0.3s;
}
nav.scrolled .logo { color: var(--dark); }
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 400;
  transition: color 0.2s;
}
nav.scrolled .nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--white); }
nav.scrolled .nav-links a:hover { color: var(--dark); }
.nav-cta {
  background: var(--white) !important;
  color: var(--dark) !important;
  padding: 0.5rem 1.25rem !important;
  font-weight: 500 !important;
  opacity: 1 !important;
}
nav.scrolled .nav-cta {
  background: var(--dark) !important;
  color: var(--white) !important;
}

/* ── HERO ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-image: url('img/hero/hero-1.jpg');
  transform: scale(1.03);
  transition: opacity 1.2s ease;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(18,16,14,0.72) 0%,
    rgba(18,16,14,0.28) 45%,
    rgba(18,16,14,0.08) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 3rem 5rem;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.hero-left { max-width: 620px; }
.hero-eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  font-weight: 400;
}
.hero-h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 200;
  line-height: 0.96;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}
.hero-h1 em { font-style: italic; color: rgba(255,255,255,0.65); }
.hero-cta {
  display: inline-block;
  background: var(--white);
  color: var(--dark);
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 1rem 2.25rem;
  transition: background 0.2s, color 0.2s;
}
.hero-cta:hover { background: var(--gold); color: var(--white); }
.hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.5rem;
  padding-bottom: 0.25rem;
}
.hero-stat { text-align: right; }
.hero-stat-num {
  font-family: 'Fraunces', serif;
  font-size: 2.8rem;
  font-weight: 200;
  color: var(--white);
  line-height: 1;
  display: block;
}
.hero-stat-label {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  display: block;
  margin-top: 0.2rem;
}
.hero-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
  align-self: center;
}

/* ── INTRO BAND ── */
.intro-band {
  background: var(--dark);
  padding: 2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
.intro-band p {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  font-weight: 400;
}
.intro-band strong {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
}
.intro-band-line { width: 1px; height: 24px; background: rgba(255,255,255,0.12); flex-shrink: 0; }

/* ── SECCIONES ── */
.section { padding: 7rem 3rem; }
.section-label {
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-label::after { content: ''; display: block; width: 2rem; height: 0.5px; background: var(--gold); opacity: 0.5; }
.section-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 200;
  line-height: 1.05;
  color: var(--dark);
  letter-spacing: -0.01em;
}
.section-title em { font-style: italic; color: var(--muted); }

/* ── SPLIT (texto + foto) ── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}
.split-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 4rem 5rem 3rem;
}
.split-text p {
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--muted);
  margin-top: 1.75rem;
  max-width: 400px;
}
.split-text .btn-dark {
  display: inline-block;
  margin-top: 2.5rem;
  background: var(--dark);
  color: var(--white);
  text-decoration: none;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  transition: background 0.2s;
  align-self: flex-start;
}
.split-text .btn-dark:hover { background: var(--gold); }
.split-img {
  position: relative;
  overflow: hidden;
}
.split-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

/* ── PORTFOLIO ── */
.portfolio-section { padding: 0; display: none; }
.portfolio-section.revealed { display: block; }
.portfolio-header { padding: 5rem 3rem 3rem; display: flex; justify-content: space-between; align-items: flex-end; }

/* ── NOSOTRAS ── */
.nosotras { display: grid; grid-template-columns: 1fr 1fr; }
.nosotras-img {
  position: relative;
  overflow: hidden;
  min-height: 600px;
}
.nosotras-img img { width: 100%; height: 100%; object-fit: cover; }
.nosotras-content {
  background: var(--dark);
  padding: 5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.nosotras-label {
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  font-weight: 400;
}
.nosotras-title {
  font-family: 'Fraunces', serif;
  font-size: 2.8rem;
  font-weight: 200;
  line-height: 1.08;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 2.5rem;
}
.nosotras-title em { font-style: italic; color: rgba(255,255,255,0.45); }
.diff-item {
  padding: 1.5rem 0;
  border-bottom: 0.5px solid rgba(255,255,255,0.08);
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.diff-item:first-of-type { padding-top: 0; }
.diff-item:last-of-type { border-bottom: none; }
.diff-icon { color: var(--gold); font-size: 1rem; flex-shrink: 0; margin-top: 0.1rem; }
.diff-text strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0.25rem;
  letter-spacing: 0.02em;
}
.diff-text span { font-size: 0.75rem; color: rgba(255,255,255,0.4); line-height: 1.65; }
.team-row { display: flex; gap: 0.75rem; margin-top: 2.5rem; }
.team-chip {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 0.5px solid rgba(255,255,255,0.12);
  padding: 0.65rem 1rem;
}
.team-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(184,154,58,0.2);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 0.65rem; color: var(--gold);
}
.team-info strong { display: block; font-size: 0.7rem; font-weight: 500; color: var(--white); }
.team-info span { font-size: 0.6rem; color: rgba(255,255,255,0.35); }

/* ── CTA FINAL ── */
.cta-section {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.cta-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-image: url('https://a0.muscache.com/im/pictures/hosting/Hosting-1041553401349908006/original/9e9762ff-1d96-47f3-90e5-482f6a1794e5.jpeg?im_w=1440');
}
.cta-overlay {
  position: absolute; inset: 0;
  background: rgba(18,16,14,0.62);
}
.cta-content { position: relative; z-index: 2; padding: 4rem 2rem; }
.cta-label {
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  font-weight: 400;
}
.cta-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 200;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 2.5rem;
  letter-spacing: -0.01em;
}

/* ── CONTACTO ── */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
}
.contact-left { padding: 6rem 4rem 6rem 3rem; border-right: 0.5px solid var(--line); }
.contact-right { padding: 6rem 3rem 6rem 4rem; }
.contact-title {
  font-family: 'Fraunces', serif;
  font-size: 2.8rem;
  font-weight: 200;
  line-height: 1.05;
  color: var(--dark);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}
.contact-sub { font-size: 0.85rem; color: var(--muted); line-height: 1.8; }
.form-group { margin-bottom: 1.5rem; }
.form-label {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
  font-weight: 400;
}
.form-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 0.5px solid var(--line);
  color: var(--dark);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  padding: 0.6rem 0;
  outline: none;
  transition: border-color 0.2s;
  font-weight: 300;
}
.form-input:focus { border-bottom-color: var(--dark); }
.form-input::placeholder { color: var(--muted); opacity: 0.45; }
select.form-input option { background: var(--white); }
.form-submit {
  background: var(--dark);
  color: var(--white);
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1rem 2.25rem;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.2s;
}
.form-submit:hover { background: var(--gold); }

/* ── FOOTER ── */
footer {
  background: var(--dark);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  align-items: end;
  border-top: 0.5px solid rgba(255,255,255,0.06);
}
.footer-logo {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 200;
  letter-spacing: 0.24em;
  color: var(--white);
  text-transform: uppercase;
  opacity: 0.5;
}
.footer-center { text-align: center; }
.footer-copy { font-size: 0.62rem; color: rgba(255,255,255,0.28); letter-spacing: 0.08em; line-height: 1.8; }
.footer-contact { font-size: 0.62rem; color: var(--gold); letter-spacing: 0.06em; line-height: 1.8; margin-top: 0.75rem; opacity: 0.85; }
.footer-right { text-align: right; }
.footer-armani { font-size: 0.55rem; color: var(--gold); letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.65; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 1.25rem 1.5rem; }
  .nav-links { display: none; }
  .hero-content { padding: 0 1.5rem 3.5rem; flex-direction: column; gap: 2rem; }
  .hero-right { flex-direction: row; }
  .split { grid-template-columns: 1fr; }
  .split-text { padding: 3rem 1.5rem; }
  .split.reverse { direction: ltr; }
  .split-img { min-height: 300px; }
  .portfolio-header { flex-direction: column; align-items: flex-start; gap: 1.5rem; padding: 3rem 1.5rem 2rem; }
  .units-grid { grid-template-columns: 1fr; }
  .nosotras { grid-template-columns: 1fr; }
  .nosotras-content { padding: 3rem 1.5rem; }
  .contact-section { grid-template-columns: 1fr; }
  .contact-left { padding: 3rem 1.5rem; border-right: none; border-bottom: 0.5px solid var(--line); }
  .contact-right { padding: 3rem 1.5rem; }
  .section { padding: 4rem 1.5rem; }
  footer { grid-template-columns: 1fr; text-align: center; padding: 2rem 1.5rem; }
  .footer-right { text-align: center; }
  .intro-band { flex-direction: column; gap: 0.75rem; padding: 1.5rem; text-align: center; }
  .intro-band-line { display: none; }
}

  /* ── WHATSAPP FLOTANTE ── */
  .wa-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 500;
    background: #25d366;
    color: white;
    border-radius: 50%;
    padding: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    box-shadow: 0 4px 20px rgba(37,211,102,0.35);
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .wa-float:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(37,211,102,0.45);
  }
  .wa-icon {
    width: 20px;
    height: 20px;
    fill: white;
    flex-shrink: 0;
  }

  /* ── BLOQUES DE BARRIO ── */
  .barrios-section { padding: 0; }

  .barrio-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 580px;
  }
  .barrio-block.reverse { direction: rtl; }
  .barrio-block.reverse > * { direction: ltr; }

  .barrio-img {
    position: relative;
    overflow: hidden;
    min-height: 480px;
  }
  .barrio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
  }
  .barrio-block:hover .barrio-img img { transform: scale(1.03); }

  .barrio-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(12,16,20,0.55) 0%, transparent 60%);
  }

  .barrio-img-tag {
    position: absolute;
    bottom: 1.75rem;
    left: 2rem;
    font-size: 0.58rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    font-family: 'Inter', sans-serif;
  }

  .barrio-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 3.5rem;
    background: var(--white);
    border-top: 0.5px solid var(--line);
  }

  .barrio-block:nth-child(2) .barrio-content {
    background: var(--bg);
  }

  .barrio-tag {
    font-size: 0.55rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 0.6rem;
  }
  .barrio-tag::after {
    content: '';
    display: block;
    width: 1.5rem;
    height: 0.5px;
    background: var(--gold);
    opacity: 0.5;
  }

  .barrio-title {
    font-family: 'Fraunces', serif;
    font-size: 2.5rem;
    font-weight: 200;
    line-height: 1.05;
    color: var(--dark);
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
  }

  .barrio-subtitle {
    font-family: 'Fraunces', serif;
    font-size: 1.1rem;
    font-weight: 200;
    font-style: italic;
    color: var(--gold);
    margin-bottom: 1.75rem;
  }

  .barrio-desc {
    font-size: 0.85rem;
    line-height: 1.85;
    color: var(--muted);
    margin-bottom: 2rem;
    max-width: 380px;
  }

  .barrio-highlights {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 2rem;
  }

  .barrio-highlights li {
    font-size: 0.72rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 0.6rem;
  }

  .barrio-highlights li::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
  }

  .barrio-units {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .barrio-unit-pill {
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 0.5px solid var(--line);
    color: var(--muted);
    padding: 0.3rem 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
  }

  .barrio-unit-pill:hover {
    border-color: var(--dark);
    color: var(--dark);
  }

  /* Armani badge */
  .armani-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 0.5px solid rgba(184,154,58,0.35);
    padding: 0.5rem 0.85rem;
    margin-bottom: 1.5rem;
    align-self: flex-start;
  }
  .armani-badge span {
    font-size: 0.55rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 400;
  }
  .armani-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0.6;
  }

  @media (max-width: 768px) {
    .barrio-block { grid-template-columns: 1fr; }
    .barrio-block.reverse { direction: ltr; }
    .barrio-img { min-height: 280px; }
    .barrio-content { padding: 3rem 1.5rem; }
    .barrio-title { font-size: 2rem; }
  }


  .barrio-slider { position: relative; width: 100%; height: 100%; overflow: hidden; }
  .barrio-slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1.2s ease-in-out;
  }
  .barrio-slide.active { opacity: 1; }
  .barrio-slider-dots {
    position: absolute; bottom: 1.25rem; right: 1.25rem;
    z-index: 3; display: flex; flex-direction: column; gap: 5px;
  }
  .barrio-slider-dot {
    width: 1.5px; height: 14px;
    background: rgba(255,255,255,0.4);
    border: none; cursor: pointer; padding: 0; transition: all 0.3s;
  }
  .barrio-slider-dot.active { background: white; height: 22px; }


  .unit-search {
    background: var(--white);
    border: 0.5px solid var(--line);
    padding: 1.5rem 2rem;
  }
  .search-row {
    display: flex;
    gap: 2rem;
    align-items: flex-end;
  }
  .search-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
  }
  .search-label {
    font-size: 0.58rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .search-select {
    background: transparent;
    border: none;
    border-bottom: 0.5px solid var(--line);
    color: var(--dark);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    padding: 0.5rem 0;
    padding-right: 1.5rem;
    outline: none;
    min-width: 160px;
    cursor: pointer;
    transition: border-color 0.2s;
  }
  .search-select:focus { border-bottom-color: var(--dark); }
  .search-btn {
    background: var(--dark);
    color: var(--white);
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 0.85rem 1.75rem;
    cursor: pointer;
    transition: background 0.2s;
    margin-left: auto;
  }
  .search-btn:hover { background: var(--gold); }

  .units-grid {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.4s ease;
  }
  .units-grid.visible {
    max-height: 4000px;
    opacity: 1;
  }

  .login-error {
    display: none;
    font-size: 0.65rem;
    color: #b8493a;
    margin-top: 0.75rem;
    letter-spacing: 0.04em;
  }

  /* ── FICHA (paleta/morfología app supervisora) ── */
  #unitsGrid { display: block; }

  .ficha-layout {
    display: flex;
    min-height: 460px;
    background: #f4f0eb;
    border: 1px solid rgba(27,45,79,0.12);
    border-radius: 20px;
    overflow: hidden;
    margin: 0 3rem 2rem;
  }
  .ficha-selector {
    width: 260px;
    flex-shrink: 0;
    background: rgba(255,255,255,0.6);
    border-right: 1px solid rgba(27,45,79,0.12);
    padding: 2.25rem 1.75rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .ficha-select-group { margin-bottom: 1.75rem; }
  .ficha-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #6a7e9a;
    margin-bottom: 8px;
  }
  .ficha-select {
    width: 100%;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(27,45,79,0.12);
    border-radius: 12px;
    color: #1b2d4f;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    padding: 12px 34px 12px 14px;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%231b2d4f' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    transition: border-color 0.2s, box-shadow 0.2s;
  }
  .ficha-select:focus { border-color: #1b2d4f; box-shadow: 0 0 0 3px rgba(27,45,79,.1); }
  .ficha-select:disabled { opacity: 0.5; cursor: not-allowed; }

  .ficha-panel {
    flex: 1;
    padding: 2.75rem 3rem;
    background: #f4f0eb;
  }
  .ficha-empty {
    font-family: 'Inter', sans-serif;
    font-style: italic;
    font-weight: 400;
    font-size: 15px;
    color: #6a7e9a;
    text-align: center;
    padding-top: 3rem;
  }
  .ficha-header { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.75rem; }
  .ficha-title { font-family: 'Inter', sans-serif; font-weight: 400; font-style: italic; font-size: 22px; color: #1b2d4f; }
  .ficha-title em { font-style: italic; font-weight: 600; }
  .ficha-tag {
    font-family: 'Inter', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #1b2d4f;
    background: rgba(27,45,79,0.08);
    padding: 4px 12px;
    border-radius: 40px;
    border: 1px solid rgba(27,45,79,.15);
  }
  .ficha-gallery {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 6px;
    height: 420px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 0.6rem;
  }
  .gallery-hero, .gallery-thumb {
    background-size: cover;
    background-position: center;
    cursor: pointer;
    position: relative;
    transition: opacity 0.2s;
  }
  .gallery-hero:hover, .gallery-thumb:hover { opacity: 0.92; }
  .gallery-hero { grid-row: 1 / 3; grid-column: 1; }
  .gallery-more-overlay {
    position: absolute; inset: 0;
    background: rgba(27,45,79,0.66);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    line-height: 1.6;
  }
  .gallery-more-overlay span { font-size: 10px; font-weight: 400; opacity: 0.75; }

  .lightbox-overlay {
    position: fixed; inset: 0;
    background: rgba(18,16,14,0.92);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
  }
  .lightbox-overlay.open { display: flex; }
  .lightbox-img {
    max-width: 84vw;
    max-height: 84vh;
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  }
  .lightbox-close {
    position: absolute; top: 24px; right: 28px;
    background: none; border: none; color: #fff;
    font-size: 22px; cursor: pointer; opacity: 0.75;
    transition: opacity 0.2s;
  }
  .lightbox-close:hover { opacity: 1; }
  .lightbox-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-size: 28px;
    width: 48px; height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
  }
  .lightbox-arrow:hover { background: rgba(255,255,255,0.2); }
  .lightbox-prev { left: 24px; }
  .lightbox-next { right: 24px; }
  .lightbox-counter {
    position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,0.75);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    letter-spacing: 0.5px;
  }

  @media (max-width: 1024px) {
    .search-row { flex-wrap: wrap; }
    .portfolio-header { flex-wrap: wrap; }
    .ficha-gallery { grid-template-columns: 1.2fr 1fr 1fr; height: 340px; }
    .lightbox-arrow { width: 40px; height: 40px; font-size: 22px; }
  }
  .ficha-price-block {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
    align-items: flex-end;
    padding-bottom: 1.5rem;
    margin-bottom: 0.5rem;
  }
  .ficha-price { display: flex; flex-direction: column; gap: 3px; }
  .ficha-price-label {
    font-family: 'Inter', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #6a7e9a;
  }
  .ficha-price-value {
    font-family: 'Inter', sans-serif;
    font-size: 26px;
    font-weight: 600;
    color: #1b2d4f;
  }
  .ficha-price-empty {
    font-family: 'Inter', sans-serif;
    font-style: italic;
    font-size: 13px;
    color: #6a7e9a;
  }
  .ficha-price-fine {
    width: 100%;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: #6a7e9a;
    font-style: italic;
    margin-top: 0.5rem;
  }

  .ficha-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 1px solid rgba(27,45,79,.1);
  }
  .ficha-field {
    padding: 14px 0;
    border-bottom: 1px solid rgba(27,45,79,.08);
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .ficha-field:nth-child(odd) { padding-right: 2rem; }
  .ficha-field.full { grid-column: 1 / -1; padding-right: 0; }
  .ficha-field-label {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #6a7e9a;
  }
  .ficha-field-value { font-family: 'Inter', sans-serif; font-size: 15px; color: #1b2d4f; font-weight: 400; font-style: italic; }
  .ficha-field-value.muted { color: #6a7e9a; font-weight: 400; font-style: italic; }
  .ficha-link {
    display: inline-block;
    margin-top: 1.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: #1b2d4f;
    padding: 12px 24px;
    border-radius: 40px;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: background 0.2s;
  }
  .ficha-link:hover { background: #243a62; }
  .ficha-link.disabled {
    background: none;
    color: #6a7e9a;
    border: 1px solid rgba(27,45,79,.15);
  }

  @media (max-width: 768px) {
    .ficha-layout { flex-direction: column; margin: 0 1.5rem 2rem; }
    .ficha-selector { width: auto; border-right: none; border-bottom: 1px solid rgba(27,45,79,0.12); }
    .ficha-panel { padding: 2rem 1.5rem; }
    .ficha-fields { grid-template-columns: 1fr; }
    .ficha-field:nth-child(odd) { padding-right: 0; }
  }

  .search-hint {
    padding: 1.25rem 2rem;
    font-size: 0.75rem;
    color: var(--muted);
    text-align: center;
    font-style: italic;
  }

  @media (max-width: 768px) {
    .search-row { flex-direction: column; align-items: stretch; gap: 1.25rem; }
    .search-select { min-width: 100%; }
    .search-btn { margin-left: 0; }
  }


  .servicios-expand {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .servicios-expand.open { max-height: 3000px; }

  .servicio-full {
    position: relative;
    height: 70vh;
    min-height: 420px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    border-bottom: 0.5px solid var(--line);
  }
  .servicio-full-overlay {
    position: absolute; inset: 0;
    background: rgba(18,16,14,0.62);
  }
  .servicio-full-content {
    position: relative; z-index: 2;
    padding: 3.5rem 3.5rem 4rem;
    max-width: 560px;
  }
  .servicio-full-num {
    font-family: 'Fraunces', serif;
    font-size: 0.85rem;
    color: var(--gold);
    letter-spacing: 0.14em;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.85;
  }
  .servicio-full-title {
    font-family: 'Fraunces', serif;
    font-size: 2.4rem;
    font-weight: 200;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.05;
  }
  .servicio-full-desc {
    font-size: 0.85rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.75);
  }
  .servicio-full-link {
    display: inline-block;
    margin-top: 1.5rem;
    background: var(--white);
    color: var(--dark);
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 0.85rem 1.75rem;
    transition: background 0.2s, color 0.2s;
  }
  .servicio-full-link:hover { background: var(--gold); color: var(--white); }
  .btn-dark.active-toggle { background: var(--gold); }

  @media (max-width: 768px) {
    .servicio-full { height: 50vh; min-height: 320px; }
    .servicio-full-content { padding: 2rem 1.5rem 2.5rem; }
    .servicio-full-title { font-size: 1.8rem; }
  }

