

@font-face {
    font-family: 'Futura';
    src: url("../fuentes/futura/futura\ light\ bt.ttf");
    font-weight: lighter;
    font-style: normal;
}

:root {
    --pv-bg: #F9F6F3;
    --pv-blanco: #FFFFFF;
    --pv-texto: #303030;
    --pv-suave: #8A8279;
    --pv-linea: rgba(48, 48, 48, 0.14);
    --pv-dorado: #B29C6F;
    --pv-fuente: 'Futura', sans-serif;
    --pv-ancho: min(90%, 1400px);
}

* {
    margin: 0;
    padding: 0;
    border: 0;
    vertical-align: baseline;
    text-decoration: none;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-width: 320px;
}

.body {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--pv-bg);
    color: var(--pv-texto);
    font-family: var(--pv-fuente);
    font-weight: lighter;
    text-align: left;
    letter-spacing: normal;
    overflow-x: hidden;
}

/* =========================================================
   BARRA DE NAVEGACIÓN (base; el estilo va en hero.css)
   ========================================================= */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 93%;
    z-index: 100;
}

.barrayredes {
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: end;
}

.Redes {
    display: flex;
    align-items: center;
}

.logo {
    width: 25vw;
    max-width: 13rem;
}

.nav ul {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav ul li {
    display: inline-block;
    list-style: none;
}

.nav ul li a {
    display: flex;
    align-items: center;
}

.toggle-button {
    display: none;
    cursor: pointer;
}

.barra-small {
    display: none;
    flex-direction: column;
    list-style: none;
}

@media screen and (min-width: 895px) {
    .barra-small { display: none !important; }
}

@media screen and (max-width: 895px) {
    .barrayredes { display: none; }
    .toggle-button { display: block; }
}

/* ---------- Nav claro (sin imagen detrás) ---------- */
.nav.nav-hero.nav-fija {
    position: relative;
    border-bottom-color: rgba(0, 0, 0, 0.15);
}
.nav.nav-fija .barra > li > a,
.nav.nav-fija .toggle-button { color: #000; }
.nav.nav-fija .barra > li > a::after { background: #000; }
.nav.nav-fija .logo,
.nav.nav-fija .Redes img { filter: none; }

.nav.nav-fija .submenu {
    background: rgba(249, 246, 243, 0.95);
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
}
.nav.nav-fija .submenu li + li { border-top-color: rgba(0, 0, 0, 0.08); }
.nav.nav-fija .submenu li a { color: #000; }
.nav.nav-fija .submenu li a:hover { background: rgba(0, 0, 0, 0.05); }
.nav.nav-fija .submenu small { color: rgba(0, 0, 0, 0.55); }
.nav.nav-fija .submenu .submenu-all a { color: var(--pv-dorado); }

.nav-fija + .barra-small.menu-hero {
    background: rgba(249, 246, 243, 0.97);
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
}
.nav-fija + .barra-small.menu-hero > li + li { border-top-color: rgba(0, 0, 0, 0.08); }
.nav-fija + .barra-small.menu-hero > li > a,
.nav-fija + .barra-small.menu-hero .m-toggle,
.nav-fija + .barra-small.menu-hero .m-submenu a { color: #000; }
.nav-fija + .barra-small.menu-hero .m-submenu { background: rgba(0, 0, 0, 0.04); }
.nav-fija + .barra-small.menu-hero .m-submenu small { color: rgba(0, 0, 0, 0.55); }
.nav-fija + .barra-small.menu-hero .m-submenu .submenu-all a { color: var(--pv-dorado); }

/* =========================================================
   ENCABEZADO
   ========================================================= */
.pv-header {
    width: var(--pv-ancho);
    padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
}

.pv-eyebrow {
    margin-bottom: 0.8rem;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--pv-dorado);
}

.pv-titulo {
    font-family: var(--pv-fuente);
    font-size: clamp(2.3rem, 1.3rem + 4vw, 5.2rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--pv-texto);
}

.pv-titulo span { color: var(--pv-dorado); }

.pv-intro {
    max-width: 34rem;
    margin-top: 1.1rem;
    font-size: clamp(0.95rem, 0.88rem + 0.25vw, 1.08rem);
    line-height: 1.7;
    color: var(--pv-suave);
}

/* =========================================================
   CUADRÍCULA DE PROYECTOS
   Se acomoda sola: 1, 2, 3 o más proyectos.
   ========================================================= */
.pv-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(1.4rem, 2.5vw, 2.2rem);
    width: var(--pv-ancho);
}

/* 3 columnas como máximo */
.pv-card {
    flex: 1 1 320px;
    max-width: calc((100% - 2 * clamp(1.4rem, 2.5vw, 2.2rem)) / 3);
}

/* Si hay solo 2 proyectos, cada uno toma la mitad */
.pv-grid:has(> .pv-card:nth-of-type(2):last-of-type) .pv-card {
    max-width: calc((100% - clamp(1.4rem, 2.5vw, 2.2rem)) / 2);
}

/* =========================================================
   TARJETA
   ========================================================= */
.pv-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 4px;
    background: var(--pv-blanco);
    box-shadow: 0 1px 0 var(--pv-linea);
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.9s ease, transform 0.9s ease, box-shadow 0.4s ease;
}

.pv-card.visible {
    opacity: 1;
    transform: none;
}

.pv-card:hover { box-shadow: 0 24px 50px rgba(48, 48, 48, 0.1); }

/* ---------- Imagen ---------- */
.pv-img {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #E9E4DE;
}

.pv-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.pv-card:hover .pv-img img { transform: scale(1.05); }

/* ---------- Etiqueta de estado ---------- */
.pv-estado {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 1;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(28, 26, 24, 0.72);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--pv-bg);
}

.pv-card[data-estado="exito"]   .pv-estado { background: rgba(178, 156, 111, 0.92); }
.pv-card[data-estado="ultimas"] .pv-estado { background: rgba(165, 72, 58, 0.88); }
.pv-card[data-estado="pronto"]  .pv-estado { background: rgba(249, 246, 243, 0.9); color: var(--pv-texto); }
.pv-card[data-estado="vendido"] .pv-estado { background: rgba(110, 106, 101, 0.88); }
.pv-card[data-estado="vendido"] .pv-img img { filter: grayscale(1); opacity: 0.85; }

/* ---------- Cuerpo ---------- */
.pv-cuerpo {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: clamp(1.3rem, 2vw, 1.8rem);
}

.pv-tipo {
    margin-bottom: 0.4rem;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--pv-dorado);
}

.pv-nombre {
    font-family: var(--pv-fuente);
    font-size: clamp(1.4rem, 1.15rem + 0.8vw, 1.9rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: 0.03em;
    color: var(--pv-texto);
}

.pv-lugar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
    font-size: 0.88rem;
    color: var(--pv-suave);
}

/* Ícono de ubicación dibujado con CSS (no necesita imagen) */
.pv-lugar::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border: 1.5px solid var(--pv-dorado);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    flex: 0 0 auto;
}

/* Medidas */
.pv-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(5.5rem, 1fr));
    margin-top: 1.4rem;
    border-top: 1px solid var(--pv-linea);
    border-bottom: 1px solid var(--pv-linea);
    list-style: none;
}

.pv-specs li {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.9rem 0.9rem 0.9rem 0;
}

.pv-specs li + li {
    padding-left: 0.9rem;
    border-left: 1px solid var(--pv-linea);
}

.pv-specs span {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--pv-suave);
}

.pv-specs strong {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--pv-texto);
}

/* Etiquetas */
.pv-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    list-style: none;
}

.pv-tags li {
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--pv-linea);
    border-radius: 999px;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: var(--pv-texto);
}

/* Precio + botón (siempre pegados abajo, aunque los textos varíen) */
.pv-pie {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1.6rem;
}

.pv-precio {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: clamp(1.15rem, 1rem + 0.45vw, 1.4rem);
    font-weight: 500;
    color: var(--pv-texto);
    font-variant-numeric: tabular-nums;
}

.pv-precio span {
    font-size: 0.7rem;
    font-weight: lighter;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--pv-suave);
}

.pv-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    border-radius: 999px;
    background: var(--pv-texto);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pv-bg);
    white-space: nowrap;
    transition: background 0.3s ease, gap 0.3s ease;
}

/* Toda la tarjeta es clickeable */
.pv-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
}

.pv-card:hover .pv-cta {
    gap: 0.9rem;
    background: var(--pv-dorado);
}

.pv-cta:focus-visible {
    outline: none;
}

.pv-card:has(.pv-cta:focus-visible) {
    outline: 2px solid var(--pv-texto);
    outline-offset: 4px;
}

/* ---------- Un solo proyecto: tarjeta horizontal ---------- */
.pv-card:only-of-type {
    flex-direction: row;
    max-width: 100%;
}

.pv-card:only-of-type .pv-img {
    flex: 0 0 55%;
    aspect-ratio: auto;
    min-height: 26rem;
}

.pv-card:only-of-type .pv-cuerpo {
    justify-content: center;
    padding: clamp(1.8rem, 4vw, 3.5rem);
}

/* ---------- Sin proyectos ---------- */
.pv-vacio {
    display: none;
    width: var(--pv-ancho);
    padding: 3rem 0;
    border-top: 1px solid var(--pv-linea);
    border-bottom: 1px solid var(--pv-linea);
    font-size: 1.05rem;
    text-align: center;
    color: var(--pv-suave);
}

.pv-grid:not(:has(.pv-card)) { display: none; }
.pv-grid:not(:has(.pv-card)) + .pv-vacio { display: block; }

/* =========================================================
   BANDA DE CONTACTO
   ========================================================= */
.pv-banda {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    width: var(--pv-ancho);
    margin-top: clamp(4rem, 8vw, 6.5rem);
    padding: clamp(2rem, 4vw, 3.2rem) clamp(1.5rem, 4vw, 3.5rem);
    border-radius: 4px;
    background: var(--pv-texto);
    color: var(--pv-bg);
}

.pv-banda-titulo {
    max-width: 30rem;
    font-family: var(--pv-fuente);
    font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem);
    font-weight: 500;
    line-height: 1.3;
    color: var(--pv-bg);
}

.pv-banda-acciones {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.pv-boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1.5rem;
    border: 1px solid var(--pv-bg);
    border-radius: 999px;
    background: var(--pv-bg);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pv-texto);
    transition: background 0.3s ease, color 0.3s ease;
}

.pv-boton:hover {
    background: var(--pv-dorado);
    border-color: var(--pv-dorado);
    color: var(--pv-bg);
}

.pv-boton-linea {
    background: transparent;
    color: var(--pv-bg);
}

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* =========================================================
   PIE DE PÁGINA
   ========================================================= */
.pie_pagina {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    width: min(90%, 1600px);
    height: 150px;
    margin-top: clamp(4rem, 8vw, 6rem);
    border-top: 1px solid var(--pv-linea);
    letter-spacing: normal;
    text-align: center;
}

.pie_pagina p {
    font-size: 0.78rem;
    color: var(--pv-suave);
}

.logosredes {
    display: flex;
    justify-content: center;
    gap: 0.9rem;
}

.logosredes img {
    width: 1.3rem;
    height: 1.3rem;
    opacity: 0.75;
    transition: opacity 0.3s ease;
}

.logosredes a:hover img { opacity: 1; }

/* =========================================================
   WHATSAPP FLOTANTE
   ========================================================= */
.lwhatsapp {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
}

.whatsapp-link {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.2rem;
    height: 4.2rem;
    padding: 0;
    border-radius: 50%;
    background-color: #ABA097;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    animation: wa-salto 4s ease-in-out infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-link::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background-color: #ABA097;
    z-index: -1;
    animation: wa-onda 4s ease-out infinite;
}

.whatsapp-link:hover {
    animation-play-state: paused;
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

@keyframes wa-salto {
    0%, 70%, 100% { transform: translateY(0); }
    76%           { transform: translateY(-10px); }
    82%           { transform: translateY(0); }
    87%           { transform: translateY(-5px); }
    92%           { transform: translateY(0); }
}

@keyframes wa-onda {
    0%, 70% { transform: scale(1);   opacity: 0; }
    75%     { transform: scale(1);   opacity: 0.45; }
    100%    { transform: scale(1.6); opacity: 0; }
}

/* =========================================================
   PANTALLA DE CARGA
   ========================================================= */
#loading-screen {
    position: fixed;
    inset: 0;
    z-index: 99999999;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f3f3f3;
}

.loader {
    position: relative;
    width: 33px;
    height: 33px;
    perspective: 67px;
}

.loader div {
    position: absolute;
    left: 50%;
    width: 100%;
    height: 100%;
    background-image: url("../iconos/icono1.png");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transform-origin: left;
    animation: loader 2s infinite;
}

.loader div:nth-child(1) { animation-delay: 0.15s; }
.loader div:nth-child(2) { animation-delay: 0.3s; }
.loader div:nth-child(3) { animation-delay: 0.45s; }
.loader div:nth-child(4) { animation-delay: 0.6s; }
.loader div:nth-child(5) { animation-delay: 0.75s; }

@keyframes loader {
    0%        { transform: rotateY(0deg); }
    50%, 80%  { transform: rotateY(-180deg); }
    90%, 100% { opacity: 0; transform: rotateY(-180deg); }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media screen and (max-width: 1100px) {
    .pv-card,
    .pv-grid:has(> .pv-card:nth-of-type(2):last-of-type) .pv-card {
        max-width: calc((100% - clamp(1.4rem, 2.5vw, 2.2rem)) / 2);
    }
}

@media screen and (max-width: 860px) {
    .pv-card:only-of-type { flex-direction: column; }
    .pv-card:only-of-type .pv-img { flex: none; aspect-ratio: 4 / 3; min-height: 0; }
}

@media screen and (max-width: 700px) {
    .pv-card,
    .pv-grid:has(> .pv-card:nth-of-type(2):last-of-type) .pv-card {
        max-width: 100%;
        flex-basis: 100%;
    }
}

@media screen and (max-width: 480px) {
    .pv-banda-acciones,
    .pv-boton { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .pv-card,
    .reveal { opacity: 1; transform: none; transition: none; }
    .pv-img img { transition: none; }
    .whatsapp-link,
    .whatsapp-link::before { animation: none; }
}