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

    :root {
      --cream: #FAFAF8;
      --carbon: #1A1A1A;
      --gold: #ad8437;
      --gold-light: #E8D5B0;
      --stone: #6B6B6B;
      --stone-light: #D4D0C9;
      --white: #FFFFFF;
    }

    html { scroll-behavior: smooth; }
    #contacto { scroll-margin-top: 100px; }

    body {
      font-family: 'Inter', sans-serif;
      background: var(--cream);
      color: var(--carbon);
      overflow-x: hidden;
    }

    /* ── NAV ── */
    nav {
      position: fixed; top: 0; left: 0; right: 0; z-index: 100;
      display: flex; justify-content: space-between; align-items: center;
      padding: 1.2rem 3rem;
      background: rgba(228, 228, 228, 0.92);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--stone-light);
    }
    .nav-logo { font-family: 'Playfair Display', serif; font-size: 2.0rem; letter-spacing: 0.08em; color: var(--carbon); text-decoration: none; }
    .nav-logo span { color: var(--gold); }
    .nav-links { display: flex; gap: 2rem; list-style: none; }
    .nav-links a { font-size: 1.0rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stone); text-decoration: none; transition: color 0.2s; }
    .nav-links a:hover { color: var(--carbon); }
    .nav-cta { background: var(--carbon); color: var(--white); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.65rem 1.5rem; border: none; cursor: pointer; transition: background 0.2s; text-decoration: none; }
    .nav-cta:hover { background: var(--gold); }

    /* ── HERO ── */
    .hero {
      position: relative; height: 100vh; min-height: 640px;
      display: flex; align-items: flex-end;
      overflow: hidden;
    }
    .hero-img {
      position: absolute; inset: 0;
      background: url(Imagenes/fachada_principal.jpg) center/cover no-repeat;
    }
    .hero-overlay {
      position: absolute; inset: 0;
      background: linear-gradient(to top, rgba(10,10,10,0.75) 0%, rgba(10,10,10,0.1) 55%, transparent 100%);
    }
    .hero-content {
      position: relative; z-index: 2;
      padding: 0 3rem 4rem;
      max-width: 900px;
    }
    .hero-tag {
      display: inline-block;
      font-size: 0.9rem; letter-spacing: 0.18em; text-transform: uppercase;
      color: var(--gold); border: 1px solid var(--gold);
      padding: 0.35rem 0.9rem; margin-bottom: 1.2rem;
    }
    .hero-title {
      font-family: 'Playfair Display', serif;
      font-size: clamp(2.4rem, 5vw, 4rem);
      font-weight: 700; color: var(--white);
      line-height: 1.1; margin-bottom: 1rem;
    }
    .hero-sub {
      font-size: 0.95rem; color: rgba(218, 218, 218, 0.911);
      font-weight: 300; margin-bottom: 2rem; max-width: 480px;
    }
    .hero-contact-button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 150px;
      padding: 0.9rem 2rem;
    }
    .hero-contact-button:link,
    .hero-contact-button:visited {
      color: var(--white);
      text-decoration: none;
    }
    .hero-contact-button:hover {
      color: var(--white);
    }
    .hero-price-card {
      display: inline-flex; align-items: baseline; gap: 0.5rem;
      background: rgba(0, 0, 0, 0.952); backdrop-filter: blur(16px);
      border: 1px solid rgba(255,255,255,0.2);
      padding: 1rem 1.8rem;
    }
    .hero-price-label { font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); }
    .hero-price-value { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--white); font-weight: 600; }
    .hero-stats {
      position: absolute; bottom: 4rem; right: 3rem; z-index: 2;
      display: flex; gap: 2.5rem;
    }
    .stat { text-align: center; }
    .stat-num { font-family: 'Playfair Display', serif; font-size: 1.7rem; color: var(--white); display: block; }
    .stat-lbl { font-size: 1.2rem; letter-spacing: 0.10em; text-transform: uppercase; color: rgba(255,255,255,0.55); }

    /* ── GALLERY ── */
    .gallery-section {
      padding: 5rem 3rem;
    }

    .section-eyebrow {
      font-size: 2rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 2.5rem;
    }

    .section-title {
      font-family: 'Playfair Display', serif;
      font-size: clamp(1.6rem, 3vw, 2.4rem);
      margin-bottom: 2.5rem;
    }

    .gallery-grid {
      display: grid;
      grid-template-columns: 2fr 1fr 1fr;
      grid-template-rows: 240px 240px;
      gap: 8px;
    }

    .gallery-item {
      position: relative;
      overflow: hidden;
      cursor: pointer;
      background: #e8e4dc;
    }

    .gallery-item:first-child {
      grid-row: 1 / 3;
    }

    .gallery-item img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.5s ease;
    }

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

    .gallery-more {
      position: absolute;
      inset: 0;
      z-index: 3;
      width: 100%;
      border: 0;
      background: rgba(10, 10, 10, 0.58);
      color: var(--white);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      font-family: 'Inter', sans-serif;
      cursor: pointer;
      transition: background 0.25s ease;
    }

    .gallery-more:hover {
      background: rgba(10, 10, 10, 0.72);
    }

    .gallery-more span:first-child {
      font-family: 'Playfair Display', serif;
      font-size: 2.2rem;
      line-height: 1;
    }

    .gallery-more span:last-child {
      margin-top: 0.55rem;
      font-size: 0.72rem;
      font-weight: 600;
      letter-spacing: 0.15em;
      text-transform: uppercase;
    }

    /* ── CONTACTO AMPLIO ── */
    .details-section {
      padding: 5rem 3rem;
      border-top: 1px solid var(--stone-light);
      background: var(--cream);
    }

    .details-right {
      width: 100%;
      max-width: 1200px;
      margin: 0 auto;
    }

    .contact-card {
      position: relative;
      top: auto;
      display: grid;
      grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.5fr);
      gap: 3rem;
      align-items: start;
      background: var(--carbon);
      padding: 3.5rem;
    }

    .contact-intro {
      min-height: 100%;
      padding-right: 3rem;
      border-right: 1px solid rgba(255,255,255,0.14);
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .agent-photo {
      width: 72px;
      height: 72px;
      border-radius: 50%;
      object-fit: cover;
      border: 2px solid var(--gold);
      margin-bottom: 1.3rem;
    }

    .agent-name {
      font-family: 'Playfair Display', serif;
      font-size: 1.55rem;
      line-height: 1.25;
      color: var(--white);
      margin-bottom: 0.45rem;
    }

    .agent-title {
      font-size: 1.25rem;
      line-height: 1.35;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 1.6rem;
    }

    .price-note {
      font-size: 1.05rem;
      color: rgba(255,255,255,0.45);
      margin-bottom: 1.8rem;
    }

    .contact-phone {
      display: inline-flex;
      align-items: center;
      gap: 0.65rem;
      color: var(--white);
      text-decoration: none;
      font-size: 0.9rem;
      letter-spacing: 0.06em;
      border: 1px solid rgba(255,255,255,0.2);
      padding: 0.85rem 1rem;
      transition: border-color 0.2s, color 0.2s;
    }

    .contact-phone:hover {
      border-color: var(--gold);
      color: var(--gold);
    }

    .contact-form-wrap {
      width: 100%;
      display: flex;
      align-items: center;
    }

    .contact-form-title {
      font-family: 'Playfair Display', serif;
      font-size: 2rem;
      color: var(--white);
      margin-bottom: 1.5rem;
    }

    .contact-form {
      width: 100%;
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    .form-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1rem;
    }

    .contact-form input,
    .contact-form textarea {
      width: 100%;
      background: rgba(255,255,255,0.07);
      border: 1px solid rgba(255,255,255,0.18);
      color: var(--white);
      padding: 1rem 1.1rem;
      font-family: 'Inter', sans-serif;
      font-size: 1rem;
      outline: none;
      resize: vertical;
      transition: border-color 0.2s, background 0.2s;
    }

    .contact-form textarea {
      min-height: 150px;
    }

    .contact-form input::placeholder,
    .contact-form textarea::placeholder {
      color: rgba(255,255,255,0.35);
    }

    .contact-form input:focus,
    .contact-form textarea:focus {
      border-color: var(--gold);
      background: rgba(255,255,255,0.1);
    }

    .btn-primary {
      width: 100%;
      min-height: 62px;
      background: var(--gold);
      color: var(--carbon);
      border: 1px solid var(--gold-light);
      padding: 1.2rem 2rem;
      font-family: 'Inter', sans-serif;
      font-size: 0.92rem;
      line-height: 1.2;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      font-weight: 700;
      cursor: pointer;
      box-shadow: 0 10px 26px rgba(173, 132, 55, 0.34);
      transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
    }

    .btn-primary::after {
      content: '  →';
      font-size: 1.05rem;
    }

    .btn-primary:hover {
      background: var(--gold-light);
      color: var(--carbon);
      border-color: var(--white);
      transform: translateY(-3px);
      box-shadow: 0 14px 34px rgba(173, 132, 55, 0.45);
    }

    .btn-primary:active {
      transform: translateY(0);
      box-shadow: 0 7px 18px rgba(173, 132, 55, 0.28);
    }

    /* ── AMENITIES ── */
    .amenities-section { padding: 5rem 3rem; background: var(--white); }
    .amenities-grid {
      display: grid; grid-template-columns: repeat(4, 1fr);
      gap: 1px; background: var(--stone-light);
      margin-top: 3rem;
    }
    .amenity {
      background: var(--white); padding: 2rem 1.5rem;
      text-align: center;
    }
    .amenity-icon { font-size: 2.0rem; margin-bottom: 0.8rem; display: block; }
    .amenity-name { font-size: 1.5rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.3rem; }
    .amenity-desc { font-size: 1.2rem; color: var(--stone); line-height: 1.5; }

/* ── LOCATION ── */
  .location-section {
    padding: 5rem 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
  }
  .map-placeholder {
    aspect-ratio: 4 / 3;
    background: #e8e4dc;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--stone-light);
  }

/* Google Maps */
  .map-placeholder iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
  }

/* Botón sobre el mapa */
  .map-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%);
    display: inline-block;
    background: var(--gold);
    color: var(--carbon);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.5rem 0.8rem;
    white-space: nowrap;
    z-index: 2;
    transition:
      background 0.3s ease,
      transform 0.3s ease;
  }

  .map-pin:hover {
    background: #b98d45;
    transform: translate(-50%, calc(-100% - 3px));
  }

  .map-pin::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--gold);
    border-bottom: none;
  }
  .map-pin:hover::after {
    border-top-color: #b98d45;
  }
  .poi-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .poi {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--stone-light);
  }
  .poi-name {
  font-size: 0.85rem;
  font-weight: 500;
  }
  .poi-dist {
    font-size: 0.78rem;
    color: var(--stone);
  }
    /* ── FOOTER ── */
    footer {
      background: var(--carbon); color: rgba(255,255,255,0.45);
      padding: 3rem; display: flex; justify-content: space-between; align-items: center;
      font-size: 0.78rem;
    }
    .footer-brand { font-family: 'Playfair Display', serif; color: var(--white); font-size: 1rem; }
    .footer-brand span { color: var(--gold); }

    /* ── LIGHTBOX / GALERÍA MODAL ── */
    #lightbox {
      display: none;
      position: fixed;
      inset: 0;
      z-index: 200;
      background: rgba(0, 0, 0, 0.96);
      padding: 1.2rem;
    }

    #lightbox.open {
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .lightbox-shell {
      width: min(1500px, 96vw);
      height: min(900px, 92vh);
      display: grid;
      grid-template-columns: minmax(0, 1fr) 260px;
      gap: 10px;
    }

    .lightbox-stage {
      position: relative;
      min-width: 0;
      min-height: 0;
      overflow: hidden;
      background: #080808;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    #lightbox-img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    .lightbox-caption {
      position: absolute;
      left: 1.4rem;
      right: 1.4rem;
      bottom: 1.2rem;
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 1rem;
      pointer-events: none;
    }

    #lightbox-title {
      display: inline-block;
      max-width: min(520px, 70%);
      padding: 0.75rem 1rem;
      background: rgba(0, 0, 0, 0.82);
      color: var(--gold-light);
      font-family: 'Playfair Display', serif;
      font-size: clamp(1.2rem, 2.4vw, 2rem);
      line-height: 1.15;
    }

    #lightbox-counter {
      padding: 0.55rem 0.75rem;
      background: rgba(0, 0, 0, 0.72);
      color: rgba(255, 255, 255, 0.82);
      font-size: 0.78rem;
      letter-spacing: 0.12em;
    }

    .lightbox-thumbs {
      min-height: 0;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      gap: 8px;
      padding-right: 4px;
      scrollbar-width: thin;
      scrollbar-color: var(--gold) #111;
    }

    .lightbox-thumb {
      position: relative;
      flex: 0 0 150px;
      width: 100%;
      overflow: hidden;
      border: 2px solid transparent;
      padding: 0;
      background: #111;
      cursor: pointer;
      opacity: 0.56;
      transition: opacity 0.2s ease, border-color 0.2s ease;
    }

    .lightbox-thumb:hover {
      opacity: 0.86;
    }

    .lightbox-thumb.active {
      opacity: 1;
      border-color: var(--gold);
    }

    .lightbox-thumb img {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: cover;
    }

    #lightbox-close {
      position: fixed;
      top: 1rem;
      right: 1.2rem;
      z-index: 205;
      width: 44px;
      height: 44px;
      display: grid;
      place-items: center;
      color: var(--white);
      background: rgba(0, 0, 0, 0.72);
      border: 1px solid rgba(255, 255, 255, 0.28);
      font-size: 1.8rem;
      line-height: 1;
      cursor: pointer;
      transition: border-color 0.2s ease, color 0.2s ease;
    }

    #lightbox-close:hover {
      color: var(--gold);
      border-color: var(--gold);
    }

    #lightbox-prev,
    #lightbox-next {
      position: absolute;
      top: 50%;
      z-index: 4;
      transform: translateY(-50%);
      width: 48px;
      height: 58px;
      display: grid;
      place-items: center;
      background: rgba(0, 0, 0, 0.66);
      border: 1px solid rgba(255, 255, 255, 0.28);
      color: var(--white);
      font-size: 1.7rem;
      cursor: pointer;
      transition: border-color 0.2s ease, background 0.2s ease;
    }

    #lightbox-prev {
      left: 1rem;
    }

    #lightbox-next {
      right: 1rem;
    }

    #lightbox-prev:hover,
    #lightbox-next:hover {
      border-color: var(--gold);
      background: rgba(0, 0, 0, 0.86);
    }

    @media (max-width: 900px) {
      nav { padding: 1rem 1.5rem; }
      .nav-links { display: none; }
      .hero-content { padding: 0 1.5rem 3rem; }
      .hero-stats { right: 1.5rem; bottom: 2rem; gap: 1.5rem; }
      .gallery-section, .amenities-section, .location-section { padding: 3rem 1.5rem; }
      .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, 180px);
      }
      .gallery-item:first-child { grid-row: auto; }
      .lightbox-shell {
        width: 96vw;
        height: 92vh;
        grid-template-columns: 1fr;
        grid-template-rows: minmax(0, 1fr) 110px;
      }

      .lightbox-thumbs {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        padding-right: 0;
        padding-bottom: 4px;
      }

      .lightbox-thumb {
        flex: 0 0 150px;
        height: 100%;
      }
      .details-section { padding: 3rem 1.5rem; }
      .contact-card {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
      }
      .contact-intro {
        padding-right: 0;
        padding-bottom: 2rem;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.14);
      }
      .form-row { grid-template-columns: 1fr; }
      .features-grid { grid-template-columns: 1fr; }
      .amenities-grid { grid-template-columns: repeat(2, 1fr); }
      .location-section { grid-template-columns: 1fr; gap: 2rem; }
      footer { flex-direction: column; gap: 1rem; text-align: center; }
    }

    @media (max-width: 560px) {
      .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, 260px);
      }
      .section-eyebrow {
        font-size: 1.25rem;
        line-height: 1.5;
      }
      #lightbox {
        padding: 0.5rem;
      }

      .lightbox-shell {
        width: 100%;
        height: 94vh;
        grid-template-rows: minmax(0, 1fr) 92px;
      }

      .lightbox-thumb {
        flex-basis: 120px;
      }

      #lightbox-prev,
      #lightbox-next {
        width: 42px;
        height: 50px;
      }

      #lightbox-prev {
        left: 0.45rem;
      }

      #lightbox-next {
        right: 0.45rem;
      }

      .lightbox-caption {
        left: 0.65rem;
        right: 0.65rem;
        bottom: 0.65rem;
      }

      #lightbox-title {
        max-width: 78%;
        font-size: 1.05rem;
      }
    }
  
    /* ── AJUSTES RESPONSIVE GENERALES ── */
    nav {
      min-height: 72px;
    }

    .nav-logo {
      flex-shrink: 0;
      white-space: nowrap;
      font-size: clamp(1.55rem, 2.1vw, 2rem);
    }

    .nav-links {
      min-width: 0;
      gap: clamp(1rem, 1.8vw, 2rem);
    }

    .nav-links a {
      white-space: nowrap;
      font-size: clamp(0.76rem, 0.9vw, 1rem);
    }

    .nav-cta {
      flex-shrink: 0;
      white-space: nowrap;
    }

    .hero-title {
      max-width: 760px;
      text-wrap: balance;
    }

    .hero-sub {
      line-height: 1.55;
    }

    /* En pantallas grandes, los datos se organizan en 3 columnas y 2 filas. */
    .hero-stats {
      width: min(620px, 46vw);
      display: grid;
      grid-template-columns: repeat(3, minmax(120px, 1fr));
      gap: 0.8rem 1rem;
    }

    .stat {
      min-width: 0;
      padding: 0.35rem;
    }

    .stat-num {
      font-size: 1.55rem;
      line-height: 1;
      margin-bottom: 0.35rem;
    }

    .stat-lbl {
      display: block;
      font-size: 0.68rem;
      line-height: 1.35;
      letter-spacing: 0.1em;
      overflow-wrap: anywhere;
    }

    /* Tablet, laptop pequeña y ventanas reducidas */
    @media (max-width: 1240px) {
      nav {
        padding: 1rem 1.5rem;
      }

      .nav-links {
        display: none;
      }

      .hero {
        height: auto;
        min-height: 100svh;
        padding-top: 72px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: stretch;
      }

      .hero-content {
        width: 100%;
        max-width: 780px;
        padding: 2.5rem 2rem 1.5rem;
      }

      .hero-title {
        font-size: clamp(2.35rem, 6vw, 3.7rem);
      }

      .hero-sub {
        max-width: 650px;
        margin-bottom: 1.4rem;
      }

      .hero-stats {
        position: relative;
        inset: auto;
        width: 100%;
        max-width: none;
        padding: 0 1.5rem 1.5rem;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1px;
      }

      .stat {
        padding: 0.9rem 0.6rem;
        background: rgba(0, 0, 0, 0.28);
        backdrop-filter: blur(4px);
      }
    }

    /* Celulares y ventanas estrechas */
    @media (max-width: 700px) {
      nav {
        min-height: 64px;
        padding: 0.8rem 1rem;
      }

      .nav-logo {
        font-size: clamp(1.35rem, 6vw, 1.65rem);
        letter-spacing: 0.04em;
      }

      .nav-cta {
        padding: 0.65rem 0.9rem;
        font-size: 0.66rem;
      }

      .hero {
        min-height: max(800px, 100svh);
        padding-top: 64px;
      }

      .hero-content {
        padding: 3.5rem 1rem 1.25rem;
      }

      .hero-tag {
        max-width: 100%;
        font-size: 0.68rem;
        line-height: 1.35;
        letter-spacing: 0.14em;
      }

      .hero-title {
        font-size: clamp(2.05rem, 10vw, 3.05rem);
        line-height: 1.04;
      }

      .hero-sub {
        max-width: 100%;
        font-size: 0.88rem;
        line-height: 1.5;
      }

      .hero-contact-button {
        min-width: 135px;
        padding: 0.8rem 1.35rem;
      }

      .hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 0 1rem 1rem;
      }

      .stat {
        padding: 0.8rem 0.4rem;
      }

      .stat-num {
        font-size: 1.35rem;
      }

      .stat-lbl {
        font-size: 0.62rem;
        letter-spacing: 0.08em;
      }
    }

    /* Celulares muy pequeños */
    @media (max-width: 410px) {
      .nav-logo {
        font-size: 1.25rem;
      }

      .nav-cta {
        padding: 0.6rem 0.7rem;
        font-size: 0.6rem;
      }

      .hero-title {
        font-size: 2rem;
      }

      .hero-stats {
        grid-template-columns: 1fr 1fr;
      }
    }
