/* ===========================================================================
   Tema "Sitio Web 4" (familia 7)
   ---------------------------------------------------------------------------
   Tercer diseño propio (8/9/2026). El modelo es la web de Sforza Propiedades
   (sforzapropiedades.com.ar) según la guía que armó Stitch: barra azul sólida
   con el logo a la izquierda y el menú a la derecha, foto a pantalla completa
   con el título centrado, y el buscador como una PÍLDORA blanca flotando sobre
   la foto —con las solapas Venta / Alquiler encima y el botón Buscar en rojo—,
   franja institucional en itálica, propiedades destacadas, bloque de tasación
   y pie azul de cuatro columnas.

   Comparte con Nova (familia 5) las páginas internas: listado, ficha,
   contacto, equipo y las páginas del customizador usan las clases .nv-* y acá
   se visten con esta paleta. Lo propio de este tema lleva prefijo .sw-. El
   body lleva las dos clases: "nv sw".

   El color son variables: cada skin de css/skins/ redefine las --sw-* y acá se
   derivan las que esperan las páginas de Nova.
   =========================================================================== */

:root {
    /* Paleta original de la web de referencia: azul y rojo. */
    --sw-primary: #1c3e95;
    --sw-primary-dark: #093b90;
    --sw-accent: #f00000;
    --sw-accent-hover: #c40000;
    --sw-background: #f5f6f9;
    --sw-surface: #ffffff;
    --sw-text-main: #1f2430;
    --sw-text-muted: #7a7f8c;
    --sw-border: #e4e6ee;

    /* Lo que esperan las páginas internas compartidas con Nova. */
    --acento: var(--sw-primary);
    --acento-claro: var(--sw-accent);
    --acento-texto: #ffffff;
    --tinta: var(--sw-primary-dark);
    --tinta-2: var(--sw-primary);
    --gris-borde: var(--sw-border);
    --gris-suave: var(--sw-background);
    --gris-texto: var(--sw-text-muted);
    --gris-fuerte: var(--sw-text-main);
    --papel: var(--sw-surface);
}

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

/* --------------------------------------------------------------- cabecera */
.sw-top { background: var(--sw-primary); position: sticky; top: 0; z-index: 60; }
.sw-top .sw-contenedor { display: flex; align-items: center; gap: 18px; min-height: 78px; }
.sw-marca { display: flex; align-items: center; margin-right: auto; }
.sw-marca img { max-height: 54px; width: auto; }
.sw-marca span { color: #fff; font-weight: 800; font-size: 20px; letter-spacing: .02em; }
.sw-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.sw .sw-link {
    color: #fff; font-weight: 700; font-size: 15px;
    padding: 10px 14px; border-radius: 6px; white-space: nowrap;
}
.sw .sw-link:hover, .sw .sw-link.sw-activo { background: rgba(255,255,255,.14); }
.sw-redes { display: flex; gap: 4px; align-items: center; margin-left: 6px; }
.sw .sw-redes a {
    color: #fff; width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.sw .sw-redes a:hover { background: rgba(255,255,255,.18); }
.sw-menu-boton {
    display: none; background: none; border: 0; color: #fff;
    font-size: 26px; line-height: 1; padding: 10px 6px; cursor: pointer;
}

/* ---------------------------------------------------------------- portada */
.sw-hero {
    position: relative; min-height: 660px;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: #fff; background: var(--sw-primary-dark);
}
.sw-hero-fotos { position: absolute; inset: 0; overflow: hidden; }
.sw-hero-fotos > div {
    position: absolute; inset: 0; background: center/cover no-repeat;
    opacity: 0; transition: opacity 1.2s ease;
}
.sw-hero-fotos > div.sw-visible { opacity: 1; }
.sw-hero::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(9,59,144,.42) 0%, rgba(15,23,42,.48) 100%);
}
.sw-hero-texto { position: relative; z-index: 2; width: 100%; padding: 90px 20px 110px; }
.sw-hero h1 {
    font-size: 52px; line-height: 1.1; margin: 0 0 10px; font-weight: 800;
    text-shadow: 0 3px 20px rgba(0,0,0,.4);
}
.sw-hero p.sw-bajada {
    font-size: 18px; margin: 0 auto 34px; max-width: 720px; color: #eef1f8;
    text-shadow: 0 2px 12px rgba(0,0,0,.35);
}

/* Buscador píldora: las solapas encima y la barra blanca redondeada. */
.sw-buscador { max-width: 1040px; margin: 0 auto; }
.sw-solapas { display: flex; gap: 10px; justify-content: center; margin-bottom: -22px; position: relative; z-index: 3; }
.sw-solapa {
    background: rgba(255,255,255,.88); color: var(--sw-text-main);
    border: 0; padding: 12px 34px; border-radius: 999px;
    font-size: 15px; font-weight: 700; cursor: pointer;
    box-shadow: 0 6px 16px rgba(0,0,0,.18);
}
.sw-solapa.sw-activa { background: #fff; color: var(--sw-primary); }
.sw-buscador form {
    background: #fff; border-radius: 999px; padding: 12px;
    display: flex; align-items: center; gap: 10px;
    box-shadow: 0 20px 46px rgba(0,0,0,.28);
}
.sw-campo { flex: 1 1 240px; min-width: 0; }
.sw-buscador select, .sw-buscador input[type="text"] {
    width: 100%; height: 52px; border: 1px solid var(--sw-border);
    border-radius: 999px; padding: 0 20px; font-size: 15px;
    color: var(--sw-text-main); background: #fff; font-family: inherit;
}
.sw-buscador .sw-campo-tipo { flex: 0 1 250px; }
.sw .sw-boton {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 52px; padding: 0 38px; border: 0; border-radius: 999px;
    background: var(--sw-accent); color: #fff; font-size: 16px; font-weight: 700;
    font-family: inherit; cursor: pointer; white-space: nowrap;
}
.sw .sw-boton:hover { background: var(--sw-accent-hover); color: #fff; }
.sw .sw-boton-azul { background: var(--sw-primary); }
.sw .sw-boton-azul:hover { background: var(--sw-primary-dark); }
.sw .sw-boton svg { width: 18px; height: 18px; }

/* Franja institucional en itálica, como la de la web de referencia. */
.sw-lema { background: var(--sw-surface); padding: 54px 0; }
.sw-lema p {
    max-width: 980px; margin: 0 auto; text-align: center;
    font-style: italic; font-size: 18px; color: var(--sw-text-muted); line-height: 1.75;
}
.sw-lema strong { color: var(--sw-primary); font-style: normal; }

/* --------------------------------------------------------------- secciones */
.sw-seccion { padding: 64px 0; }
.sw-seccion.sw-gris { background: var(--sw-background); }
.sw-titulo { text-align: center; margin-bottom: 38px; }
.sw-titulo h2 {
    font-size: 32px; margin: 0 0 10px; color: var(--sw-primary); font-weight: 800;
}
.sw-titulo h2::after {
    content: ""; display: block; width: 66px; height: 4px; border-radius: 2px;
    background: var(--sw-accent); margin: 14px auto 0;
}
.sw-titulo p { margin: 0; color: var(--sw-text-muted); font-size: 16px; }
.sw-centro { text-align: center; margin-top: 38px; }

/* Tarjetas de propiedad: las de Nova, vestidas con esta paleta. */
.sw .nv-grilla { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.sw .nv-tarjeta {
    background: var(--sw-surface); border: 1px solid var(--sw-border);
    border-radius: 14px; overflow: hidden; display: flex; flex-direction: column;
    transition: box-shadow .2s ease, transform .2s ease;
}
.sw .nv-tarjeta:hover { box-shadow: 0 16px 32px rgba(28,62,149,.16); transform: translateY(-4px); }
.sw .nv-foto { position: relative; aspect-ratio: 4 / 3; background: var(--sw-background); }
.sw .nv-foto img { width: 100%; height: 100%; object-fit: cover; }
.sw .nv-etiquetas { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.sw .nv-etiqueta {
    background: var(--sw-accent); color: #fff; font-size: 12px; font-weight: 700;
    padding: 5px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em;
}
.sw .nv-etiqueta.nv-gris-etq { background: var(--sw-primary); }
.sw .nv-precio-foto {
    position: absolute; bottom: 12px; left: 12px;
    background: var(--sw-primary); color: #fff; font-weight: 700;
    padding: 8px 14px; border-radius: 999px; font-size: 16px;
}
.sw .nv-cuerpo { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.sw .nv-cuerpo h3 { font-size: 17px; margin: 0 0 6px; color: var(--sw-text-main); font-weight: 700; }
.sw .nv-lugar { color: var(--sw-text-muted); font-size: 14px; display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.sw .nv-lugar svg { width: 15px; height: 15px; flex: 0 0 auto; }
.sw .nv-medidas {
    margin: auto 0 0; padding-top: 13px; border-top: 1px solid var(--sw-border);
    display: flex; gap: 16px; color: var(--sw-text-muted); font-size: 14px; list-style: none;
}
.sw .nv-medidas li { display: flex; align-items: center; gap: 6px; }
.sw .nv-medidas svg { width: 16px; height: 16px; }

/* Tipos y barrios (fichas de la portada de Nova). */
.sw .nv-fichas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sw .nv-ficha {
    background: var(--sw-surface); border: 1px solid var(--sw-border);
    border-radius: 14px; padding: 26px 18px; text-align: center;
}
.sw .nv-ficha:hover { border-color: var(--sw-primary); box-shadow: 0 10px 24px rgba(28,62,149,.12); }
.sw .nv-ficha .nv-icono {
    width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%;
    background: rgba(28,62,149,.08); color: var(--sw-primary);
    display: flex; align-items: center; justify-content: center;
}
.sw .nv-ficha .nv-icono svg { width: 26px; height: 26px; }
.sw .nv-ficha h3 { margin: 0 0 4px; font-size: 16px; color: var(--sw-text-main); }
.sw .nv-ficha span { color: var(--sw-text-muted); font-size: 14px; }

/* Tasación: la tarjeta blanca centrada de la web de referencia. */
.sw-tasacion { max-width: 720px; margin: 0 auto; text-align: center; background: var(--sw-surface);
    border: 1px solid var(--sw-border); border-radius: 16px; padding: 40px 30px;
    box-shadow: 0 12px 30px rgba(31,36,48,.06); }
.sw-tasacion h2 { margin: 0 0 10px; color: var(--sw-primary); font-size: 28px; font-weight: 800; }
.sw-tasacion p { color: var(--sw-text-muted); margin: 0 0 24px; }

/* ------------------------------------------------- páginas internas (Nova) */
.sw .nv-encabezado { background: var(--sw-primary); color: #fff; padding: 54px 0; }
.sw .nv-encabezado h1 { margin: 0; font-size: 32px; font-weight: 800; }
.sw .nv-encabezado p { margin: 8px 0 0; color: #e6ebf7; }
.sw .nv-seccion { padding: 60px 0; }
.sw .nv-seccion.nv-gris { background: var(--sw-background); }
.sw .nv-caja {
    background: var(--sw-surface); border: 1px solid var(--sw-border);
    border-radius: 14px; padding: 24px; margin-bottom: 24px;
}
.sw .nv-caja h2, .sw .nv-caja h3 { margin-top: 0; color: var(--sw-primary); }
.sw .nv-titulo h2 { color: var(--sw-primary); font-weight: 800; }
.sw .nv-boton {
    background: var(--sw-accent); color: #fff; border-radius: 999px;
    padding: 0 28px; font-weight: 700;
}
.sw .nv-boton:hover { background: var(--sw-accent-hover); color: #fff; }
.sw .nv-boton-borde {
    background: transparent; border: 1px solid var(--sw-primary); color: var(--sw-primary);
}
.sw .nv-boton-borde:hover { background: var(--sw-primary); color: #fff; }
.sw .nv-formulario input, .sw .nv-formulario select, .sw .nv-formulario textarea {
    border-radius: 10px; border-color: var(--sw-border);
}
.sw .nv-paginado li.active span { background: var(--sw-primary); border-color: var(--sw-primary); }
.sw .nv-caracteristicas li::before { color: var(--sw-accent); }
.sw .nv-miniaturas img.nv-activa, .sw .nv-miniaturas img:hover { border-color: var(--sw-primary); }

/* ------------------------------------------------------------------- pie */
.sw-pie { background: var(--sw-primary-dark); color: #d6def0; padding: 58px 0 0; }
.sw-pie h3 { color: #fff; font-size: 16px; margin: 0 0 16px; font-weight: 700; }
.sw .sw-pie a:hover { color: #fff; text-decoration: underline; }
.sw-pie-grilla { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 32px; }
.sw-pie ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: 15px; }
.sw-pie ul li { display: flex; gap: 8px; align-items: flex-start; }
.sw-pie ul svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 3px; }
.sw-pie-logo { max-height: 58px; width: auto; margin-bottom: 16px; }
.sw-pie-redes { display: flex; gap: 8px; margin-top: 14px; }
.sw .sw-pie-redes a {
    width: 38px; height: 38px; border-radius: 50%; color: #fff;
    background: rgba(255,255,255,.12);
    display: flex; align-items: center; justify-content: center;
}
.sw .sw-pie-redes a:hover { background: var(--sw-accent); }
.sw-pie-abajo {
    margin-top: 44px; border-top: 1px solid rgba(255,255,255,.14);
    padding: 18px 0; font-size: 14px;
    display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.sw-legal { font-size: 12.5px; color: #a9b6d4; padding-bottom: 18px; line-height: 1.6; }

.sw .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);
}
.sw .nv-whatsapp svg { width: 30px; height: 30px; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1024px) {
    .sw .nv-grilla { grid-template-columns: repeat(2, 1fr); }
    .sw .nv-fichas { grid-template-columns: repeat(3, 1fr); }
    .sw-pie-grilla { grid-template-columns: 1fr 1fr; }
    .sw-buscador form { flex-wrap: wrap; border-radius: 22px; }
    .sw-campo, .sw-buscador .sw-campo-tipo { flex: 1 1 100%; }
    .sw .sw-boton { width: 100%; }
}
@media (max-width: 720px) {
    .sw-hero h1 { font-size: 34px; }
    .sw-hero { min-height: 560px; }
    .sw .nv-grilla, .sw .nv-fichas { grid-template-columns: 1fr; }
    .sw-pie-grilla { grid-template-columns: 1fr; }
    .sw-menu-boton { display: block; }
    .sw-top .sw-contenedor { flex-wrap: wrap; min-height: 64px; }
    .sw-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 10px; }
    .sw-nav.sw-abierto { display: flex; }
    .sw-solapas { flex-wrap: wrap; }
}
