/* ===========================================================================
   Tema Nova (familia 5)
   ---------------------------------------------------------------------------
   Diseño propio, escrito a mano: no viene de una plantilla comprada, así que
   acá NO hay Bootstrap ni jQuery. Son ~600 líneas de CSS plano con grid y
   flex, y el JS que necesita (pestañas del buscador y menú de celular) son
   veinte líneas en el pie.

   El color de la inmobiliaria entra por variables: este archivo usa siempre
   var(--acento) y cada skin de css/skins/ solo redefine esas tres variables.
   Agregar un color es agregar un archivo de tres líneas.

   Todas las clases van con prefijo .nv- para no chocar con nada de las otras
   familias ni con el buscador compartido (.zf-).
   =========================================================================== */

:root {
    --acento: #312e81;
    --acento-claro: #4f46e5;
    --acento-texto: #ffffff;

    --tinta: #111827;
    --tinta-2: #1f2937;
    --gris-borde: #e5e7eb;
    --gris-suave: #f3f4f6;
    --gris-texto: #6b7280;
    --gris-fuerte: #374151;
    --papel: #ffffff;
}

.nv * { box-sizing: border-box; }
.nv {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--gris-fuerte);
    background: var(--papel);
    line-height: 1.6;
}
.nv img { max-width: 100%; display: block; }
.nv a { color: inherit; text-decoration: none; }
.nv-contenedor { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Los botones y el globo de WhatsApp van con .nv adelante a propósito: son
   etiquetas <a>, y `.nv a { color: inherit }` de arriba le gana en
   especificidad a una clase sola. Sin esto el texto del botón sale gris sobre
   el fondo de color. */

/* --------------------------------------------------------------- cabecera */
.nv-datos {
    background: var(--tinta);
    color: #d1d5db;
    font-size: 13px;
    padding: 10px 0;
}
.nv-datos .nv-contenedor {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 28px;
}
.nv-marca { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.nv-marca img { max-height: 46px; width: auto; }
.nv-marca span { color: #fff; font-weight: 600; font-size: 16px; }
.nv-datos-lista { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.nv-dato { display: flex; align-items: center; gap: 7px; }
.nv-dato svg { width: 15px; height: 15px; flex: 0 0 auto; opacity: .8; }
.nv-datos a:hover { color: #fff; }

.nv-nav { background: var(--tinta-2); position: sticky; top: 0; z-index: 50; }
.nv-nav .nv-contenedor { display: flex; align-items: center; gap: 8px; }
.nv-nav a.nv-link {
    color: #e5e7eb;
    padding: 15px 14px;
    font-size: 15px;
    border-bottom: 3px solid transparent;
}
.nv-nav a.nv-link:hover, .nv-nav a.nv-link.nv-activo {
    color: #fff;
    border-bottom-color: var(--acento-claro);
}
.nv-menu-boton {
    display: none;
    margin-left: auto;
    background: none;
    border: 0;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    padding: 12px 6px;
    cursor: pointer;
}
.nv-redes { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.nv-redes a {
    color: #d1d5db;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
}
.nv-redes a:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---------------------------------------------------------------- portada */
.nv-hero {
    position: relative;
    min-height: 640px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background: var(--tinta) center/cover no-repeat;
}
.nv-hero::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(17,24,39,.55) 0%, rgba(17,24,39,.65) 100%);
}
.nv-hero-fotos { position: absolute; inset: 0; overflow: hidden; }
.nv-hero-fotos > div {
    position: absolute; inset: 0;
    background: center/cover no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.nv-hero-fotos > div.nv-visible { opacity: 1; }
.nv-hero-texto { position: relative; z-index: 2; width: 100%; padding: 90px 20px; }
.nv-hero h1 {
    font-size: 56px;
    line-height: 1.1;
    margin: 0 0 14px;
    font-weight: 800;
    text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.nv-hero p.nv-bajada {
    font-size: 18px;
    margin: 0 auto 34px;
    max-width: 760px;
    color: #f3f4f6;
}

/* buscador flotante de la portada */
.nv-buscador { max-width: 900px; margin: 0 auto; text-align: left; }
.nv-solapas { display: flex; gap: 4px; }
.nv-solapa {
    background: rgba(255,255,255,.85);
    color: var(--gris-fuerte);
    border: 0;
    padding: 11px 26px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
}
.nv-solapa.nv-activa { background: var(--acento); color: var(--acento-texto); }
.nv-buscador form {
    background: #fff;
    border-radius: 0 14px 14px 14px;
    padding: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    box-shadow: 0 18px 40px rgba(0,0,0,.25);
}
.nv-campo { position: relative; flex: 1 1 320px; }
.nv-campo svg {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    width: 18px; height: 18px; color: var(--gris-texto);
}
.nv-buscador input[type="text"], .nv-buscador select {
    width: 100%;
    height: 46px;
    border: 1px solid var(--gris-borde);
    border-radius: 9px;
    padding: 0 14px;
    font-size: 15px;
    color: var(--gris-fuerte);
    background: #fff;
}
.nv-buscador input[type="text"] { padding-left: 38px; }
.nv-buscador select { flex: 1 1 190px; width: auto; min-width: 180px; }
.nv .nv-boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    padding: 0 28px;
    border: 0;
    border-radius: 9px;
    background: var(--acento);
    color: var(--acento-texto);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}
.nv .nv-boton:hover { background: var(--acento-claro); color: var(--acento-texto); }
.nv .nv-boton-borde {
    background: transparent;
    border: 1px solid var(--acento);
    color: var(--acento);
}
.nv .nv-boton-borde:hover { background: var(--acento); color: var(--acento-texto); }

/* --------------------------------------------------------------- secciones */
.nv-seccion { padding: 72px 0; }
.nv-seccion.nv-gris { background: var(--gris-suave); }
.nv-titulo { text-align: center; margin-bottom: 42px; }
.nv-titulo h2 {
    font-size: 34px;
    margin: 0 0 10px;
    color: var(--tinta);
    font-weight: 800;
}
.nv-titulo p { margin: 0; color: var(--gris-texto); font-size: 16px; }
.nv-centro { text-align: center; margin-top: 40px; }

/* tarjetas de propiedad */
.nv-grilla { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.nv-tarjeta {
    background: #fff;
    border: 1px solid var(--gris-borde);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s ease, transform .2s ease;
}
.nv-tarjeta:hover { box-shadow: 0 14px 30px rgba(17,24,39,.12); transform: translateY(-3px); }
.nv-foto { position: relative; aspect-ratio: 4 / 3; background: var(--gris-suave); }
.nv-foto img { width: 100%; height: 100%; object-fit: cover; }
.nv-etiquetas { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.nv-etiqueta {
    background: var(--acento);
    color: var(--acento-texto);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 999px;
}
.nv-etiqueta.nv-gris-etq { background: rgba(17,24,39,.82); color: #fff; }
.nv-precio-foto {
    position: absolute; bottom: 12px; left: 12px;
    background: rgba(17,24,39,.86);
    color: #fff;
    font-weight: 700;
    padding: 7px 13px;
    border-radius: 9px;
    font-size: 16px;
}
.nv-cuerpo { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.nv-cuerpo h3 { font-size: 17px; margin: 0 0 6px; color: var(--tinta); font-weight: 700; }
.nv-lugar { color: var(--gris-texto); font-size: 14px; display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.nv-lugar svg { width: 15px; height: 15px; flex: 0 0 auto; }
.nv-medidas {
    margin: auto 0 0;
    padding-top: 13px;
    border-top: 1px solid var(--gris-borde);
    display: flex;
    gap: 16px;
    color: var(--gris-texto);
    font-size: 14px;
    list-style: none;
}
.nv-medidas li { display: flex; align-items: center; gap: 6px; }
.nv-medidas svg { width: 16px; height: 16px; }

/* tipos y barrios */
.nv-fichas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.nv-ficha {
    background: #fff;
    border: 1px solid var(--gris-borde);
    border-radius: 14px;
    padding: 26px 18px;
    text-align: center;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.nv-ficha:hover { border-color: var(--acento); box-shadow: 0 10px 24px rgba(17,24,39,.08); }
.nv-ficha .nv-icono {
    width: 52px; height: 52px;
    margin: 0 auto 14px;
    border-radius: 14px;
    background: var(--gris-suave);
    color: var(--acento);
    display: flex; align-items: center; justify-content: center;
}
.nv-ficha .nv-icono svg { width: 26px; height: 26px; }
.nv-ficha h3 { margin: 0 0 4px; font-size: 16px; color: var(--tinta); }
.nv-ficha span { color: var(--gris-texto); font-size: 14px; }

/* --------------------------------------------------------- páginas y ficha */
.nv-encabezado {
    background: var(--tinta);
    color: #fff;
    padding: 54px 0;
}
.nv-encabezado h1 { margin: 0; font-size: 34px; font-weight: 800; }
.nv-encabezado p { margin: 8px 0 0; color: #d1d5db; }

.nv-dos-columnas { display: grid; grid-template-columns: 2fr 1fr; gap: 34px; align-items: start; }
.nv-caja {
    background: #fff;
    border: 1px solid var(--gris-borde);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 26px;
}
.nv-caja h2, .nv-caja h3 { margin-top: 0; color: var(--tinta); }
.nv-lateral { position: sticky; top: 78px; }

.nv-galeria-principal {
    border-radius: 14px;
    overflow: hidden;
    background: var(--gris-suave);
    aspect-ratio: 16 / 10;
}
.nv-galeria-principal img { width: 100%; height: 100%; object-fit: cover; }
.nv-miniaturas { display: flex; gap: 9px; overflow-x: auto; padding: 10px 2px 2px; }
.nv-miniaturas img {
    width: 104px; height: 74px; object-fit: cover;
    border-radius: 8px; cursor: pointer;
    border: 2px solid transparent; opacity: .75; flex: 0 0 auto;
}
.nv-miniaturas img:hover, .nv-miniaturas img.nv-activa { opacity: 1; border-color: var(--acento); }

.nv-datos-prop { list-style: none; padding: 0; margin: 0; }
.nv-datos-prop li {
    display: flex; justify-content: space-between; gap: 14px;
    padding: 10px 0; border-bottom: 1px solid var(--gris-borde);
    font-size: 15px;
}
.nv-datos-prop li:last-child { border-bottom: 0; }
.nv-datos-prop span { color: var(--gris-texto); }
.nv-caracteristicas { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 18px; }
.nv-caracteristicas li { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.nv-caracteristicas li::before { content: "✓"; color: var(--acento); font-weight: 700; }

.nv-formulario { display: grid; gap: 12px; }
.nv-formulario input, .nv-formulario select, .nv-formulario textarea {
    width: 100%;
    border: 1px solid var(--gris-borde);
    border-radius: 9px;
    padding: 11px 13px;
    font-size: 15px;
    font-family: inherit;
    color: var(--gris-fuerte);
    background: #fff;
}
.nv-formulario textarea { resize: vertical; min-height: 110px; }
.nv-fila { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.nv-fila-3 { display: grid; grid-template-columns: 80px 80px 1fr; gap: 12px; }
.nv-error { color: #dc2626; font-size: 13px; }
.nv-aviso {
    border-radius: 10px; padding: 13px 16px; margin-bottom: 18px;
    background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0;
}
.nv-aviso.nv-malo { background: #fef2f2; color: #991b1b; border-color: #fecaca; }

.nv-equipo { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.nv-agente { text-align: center; }
.nv-agente img {
    width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
    border-radius: 14px; margin-bottom: 12px;
}
.nv-agente strong { display: block; color: var(--tinta); }
.nv-agente span { color: var(--gris-texto); font-size: 14px; }

.nv-orden { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.nv-orden select { height: 42px; border: 1px solid var(--gris-borde); border-radius: 9px; padding: 0 12px; background: #fff; }
.nv-paginado { margin-top: 38px; }
.nv-paginado ul, .nv-paginado .pagination { display: flex; gap: 6px; list-style: none; padding: 0; justify-content: center; flex-wrap: wrap; }
.nv-paginado li a, .nv-paginado li span {
    display: block; padding: 8px 14px; border: 1px solid var(--gris-borde);
    border-radius: 9px; background: #fff; color: var(--gris-fuerte);
}
.nv-paginado li.active span { background: var(--acento); color: var(--acento-texto); border-color: var(--acento); }

/* ------------------------------------------------------------------ pie */
.nv-pie { background: var(--tinta); color: #9ca3af; padding: 60px 0 0; }
.nv-pie h3 { color: #fff; font-size: 16px; margin: 0 0 16px; font-weight: 700; }
.nv-pie a:hover { color: #fff; }
.nv-pie-grilla { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 34px; }
.nv-pie ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: 15px; }
.nv-pie img.nv-pie-logo { max-height: 54px; width: auto; margin-bottom: 16px; }
.nv-pie-abajo {
    margin-top: 46px;
    border-top: 1px solid rgba(255,255,255,.12);
    padding: 20px 0;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.nv .nv-whatsapp {
    position: fixed; right: 20px; bottom: 20px; z-index: 90;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25d366; color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 18px rgba(0,0,0,.28);
}
.nv .nv-whatsapp svg { width: 30px; height: 30px; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1024px) {
    .nv-grilla { grid-template-columns: repeat(2, 1fr); }
    .nv-fichas { grid-template-columns: repeat(3, 1fr); }
    .nv-equipo { grid-template-columns: repeat(3, 1fr); }
    .nv-dos-columnas { grid-template-columns: 1fr; }
    .nv-lateral { position: static; }
    .nv-pie-grilla { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    .nv-hero h1 { font-size: 36px; }
    .nv-hero { min-height: 520px; }
    .nv-grilla, .nv-fichas, .nv-equipo { grid-template-columns: 1fr; }
    .nv-pie-grilla { grid-template-columns: 1fr; }
    .nv-menu-boton { display: block; }
    .nv-nav .nv-contenedor { flex-wrap: wrap; }
    .nv-enlaces { display: none; width: 100%; flex-direction: column; }
    .nv-enlaces.nv-abierto { display: flex; }
    .nv-nav a.nv-link { width: 100%; border-bottom: 1px solid rgba(255,255,255,.08); }
    .nv-datos .nv-contenedor { justify-content: center; text-align: center; }
    .nv-marca { margin-right: 0; width: 100%; justify-content: center; }
    .nv-buscador select, .nv-campo { flex: 1 1 100%; }
    .nv-fila, .nv-fila-3 { grid-template-columns: 1fr; }
}
