
@font-face {
    font-family: 'Futura';
    src: url("../fuentes/futura/futura\ light\ bt.ttf");
    font-weight: lighter;
    font-style: normal;
}

:root {
    --pf-bg: #F9F6F3;
    --pf-texto: #303030;
    --pf-suave: #8A8279;
    --pf-linea: rgba(48, 48, 48, 0.14);
    --pf-dorado: #B29C6F;
    --pf-fuente: 'Futura', sans-serif;
    --pf-ancho: min(90%, 1400px);
}

* {
    margin: 0;
    padding: 0;
    border: 0;
    vertical-align: baseline;
    text-decoration: none;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

html,
body {
    width: 100%;
    min-width: 320px;
}

.body {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--pf-bg);
    color: var(--pf-texto);
    font-family: var(--pf-fuente);
    font-weight: lighter;
    text-align: left;
    letter-spacing: normal;
    overflow-x: hidden;
}

.pf-page [hidden] { display: none !important; }

/* =========================================================
   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; }
}

/* =========================================================
   PORTADA
   ========================================================= */
.pf-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100svh;
    min-height: 34rem;
    overflow: hidden;
    background: #1c1a18;
    color: #F9F6F3;
}

.pf-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
    opacity: 0;
    transition: opacity 1.2s ease, transform 6s ease;
}
.pf-hero__img.is-cargada { opacity: 1; transform: scale(1); }

/* Oscurece la foto para que el texto se lea bien */
.pf-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(0,0,0,.45) 0%, rgba(0,0,0,.18) 28%, rgba(0,0,0,.22) 60%, rgba(0,0,0,.68) 100%),
        rgba(0, 0, 0, 0.18);
    pointer-events: none;
}

.pf-hero__centro,
.pf-hero__pie {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: min(88%, 60rem);
    text-align: center;
    z-index: 2;
}

.pf-hero__centro { top: 50%; transform: translate(-50%, -50%); }

.pf-hero__titulo {
    font-family: var(--pf-fuente);
    font-size: clamp(2rem, 1.2rem + 3.6vw, 4.6rem);
    font-weight: lighter;
    line-height: 1.05;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #F9F6F3;
}

.pf-hero__etiquetas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1.1rem;
    font-family: var(--pf-fuente);
    font-size: clamp(0.7rem, 0.62rem + 0.3vw, 0.85rem);
    font-weight: lighter;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(249, 246, 243, 0.9);
}
.pf-hero__etiquetas span + span::before {
    content: "";
    display: inline-block;
    width: 1px;
    height: 0.95em;
    margin: 0 1.1em;
    vertical-align: -0.12em;
    background: rgba(249, 246, 243, 0.7);
}

.pf-hero__pie { bottom: clamp(2rem, 6vh, 3.5rem); }

.pf-hero__resumen {
    max-width: 44rem;
    margin: 0 auto;
    font-family: var(--pf-fuente);
    font-size: clamp(0.78rem, 0.68rem + 0.3vw, 0.92rem);
    font-weight: lighter;
    line-height: 1.7;
    color: rgba(249, 246, 243, 0.86);
}
.pf-hero__resumen a { color: #F9F6F3; border-bottom: 1px solid currentColor; }

.pf-hero__bajar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.2rem;
    height: 1.8rem;
    margin-top: 1.4rem;
    border: 1px solid rgba(249, 246, 243, 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #F9F6F3;
    transition: background 0.3s ease, transform 0.3s ease;
}
.pf-hero__bajar svg { width: 0.95rem; height: 0.95rem; }
.pf-hero__bajar:hover { background: rgba(255, 255, 255, 0.32); transform: translateY(3px); }

/* Entrada suave del texto */
.pf-hero__centro > *,
.pf-hero__pie > * { opacity: 0; transform: translateY(14px); transition: opacity .9s ease, transform .9s ease; }
.pf-hero.is-lista .pf-hero__centro > *,
.pf-hero.is-lista .pf-hero__pie > * { opacity: 1; transform: none; }
.pf-hero.is-lista .pf-hero__etiquetas { transition-delay: .15s; }
.pf-hero.is-lista .pf-hero__resumen { transition-delay: .3s; }
.pf-hero.is-lista .pf-hero__bajar { transition-delay: .45s; }

/* =========================================================
   BLOQUES GENERALES
   ========================================================= */
.pf-ancho { width: var(--pf-ancho); }

.pf-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.78rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--pf-dorado);
}
.pf-eyebrow::before {
    content: "";
    width: 2.2rem;
    height: 1px;
    background: var(--pf-dorado);
}

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* =========================================================
   FICHA + DESCRIPCIÓN
   ========================================================= */
.pf-ficha {
    display: grid;
    grid-template-columns: minmax(16rem, 1fr) 2fr;
    gap: clamp(2.5rem, 7vw, 7rem);
    padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(3rem, 6vw, 5rem);
    scroll-margin-top: 1rem;
}
.pf-ficha--sola { grid-template-columns: 1fr; }

.pf-ficha__datos { align-self: start; position: sticky; top: 2rem; }

.pf-ficha__nombre {
    margin: 1.2rem 0 2rem;
    font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.8rem);
    font-weight: lighter;
    line-height: 1.15;
    letter-spacing: 0.02em;
}

.pf-datos { border-top: 1px solid var(--pf-linea); }
.pf-datos > div {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--pf-linea);
}
.pf-datos dt {
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--pf-suave);
}
.pf-datos dd { font-size: 0.98rem; text-align: right; }
.pf-ficha--sola .pf-datos { max-width: 34rem; }

.pf-descripcion { padding-top: 0.4rem; }
.pf-descripcion p {
    max-width: 46rem;
    font-size: clamp(1rem, 0.95rem + 0.2vw, 1.12rem);
    line-height: 1.85;
    color: #4a4642;
}
.pf-descripcion p + p { margin-top: 1.4rem; }

/* =========================================================
   GALERÍA — usa el mismo diseño de proyectos en venta
   (css/codigo galeria/app.css + js/galeria.js); aquí solo el espacio
   ========================================================= */
.pf-page .root.pf-galeria {
    width: 100%;
    margin-top: 0;
    padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
}

.pf-galeria__cab {
    margin-inline: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--pf-linea);
}
.pf-galeria__total { font-size: 0.85rem; letter-spacing: 0.1em; color: var(--pf-suave); }

.pf-page .pf-galeria .gallery { max-width: 100%; box-sizing: border-box; }
.pf-page .pf-galeria .gallery__item { min-width: 0; }
.pf-page .pf-galeria .gallery__img { max-width: 100%; }

/* La aparición al hacer scroll (movimiento_galeria_portafolio.js pone .visible).
   Es la misma regla que estaba en stylesPortafolio.css / enVenta.css */
.gallery .visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* =========================================================
   ANTERIOR / SIGUIENTE
   ========================================================= */
.pf-navegacion {
    padding: clamp(3rem, 6vw, 5rem) 0;
    border-top: 1px solid var(--pf-linea);
}

.pf-navegacion__cab {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.pf-volver {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.4rem;
    border: 1px solid var(--pf-linea);
    border-radius: 999px;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pf-texto);
    transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.pf-volver::before { content: "←"; }
.pf-volver:hover { background: var(--pf-texto); color: var(--pf-bg); border-color: var(--pf-texto); }

.pf-navegacion__tarjetas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.pf-nav {
    position: relative;
    display: block;
    aspect-ratio: 16 / 8;
    overflow: hidden;
    border-radius: 2px;
    color: #F9F6F3;
    background: #1c1a18;
}
.pf-nav__img,
.pf-nav__img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.pf-nav__img img { object-fit: cover; transition: transform 1.1s ease; }
.pf-nav__img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.15) 60%, rgba(0,0,0,.25) 100%);
    transition: background .5s ease;
}

.pf-nav__texto {
    position: absolute;
    left: clamp(1.2rem, 3vw, 2.2rem);
    right: clamp(1.2rem, 3vw, 2.2rem);
    bottom: clamp(1.2rem, 3vw, 2rem);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.pf-nav--sig .pf-nav__texto { text-align: right; align-items: flex-end; }

.pf-nav__texto small {
    font-family: var(--pf-fuente);
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(249, 246, 243, 0.8);
}
.pf-nav__texto strong {
    font-family: var(--pf-fuente);
    font-size: clamp(1.1rem, 0.9rem + 0.8vw, 1.7rem);
    font-weight: lighter;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.pf-nav__texto em {
    font-style: normal;
    font-size: 0.85rem;
    color: rgba(249, 246, 243, 0.78);
}

@media (hover: hover) {
    .pf-nav:hover .pf-nav__img img { transform: scale(1.05); }
    .pf-nav:hover .pf-nav__img::after { background: linear-gradient(to top, rgba(0,0,0,.8) 0%, rgba(0,0,0,.3) 100%); }
}
.pf-nav:focus-visible { outline: 1px solid var(--pf-texto); outline-offset: 5px; }

/* =========================================================
   LLAMADO
   ========================================================= */
.pf-banda {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: clamp(2rem, 4vw, 3rem) 0;
    border-top: 1px solid var(--pf-linea);
    border-bottom: 1px solid var(--pf-linea);
}
.pf-banda h2 {
    font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.2rem);
    font-weight: lighter;
}
.pf-boton {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.95rem 1.9rem;
    border-radius: 999px;
    background: var(--pf-texto);
    color: var(--pf-bg);
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: background .3s ease;
}
.pf-boton:hover { background: var(--pf-dorado); }

/* =========================================================
   WHATSAPP, PIE DE PÁGINA Y PANTALLA DE CARGA
   ========================================================= */
.lwhatsapp {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
}

.whatsapp-link {
    position: fixed;
    width: 4.2rem;
    height: 4.2rem;
    bottom: 1.5rem;
    right: 1.5rem;

    background-color: #ABA097;
    color: white;
    text-decoration: none;
    border-radius: 50%;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    box-sizing: border-box;
}
/* Animación del botón de WhatsApp */
.whatsapp-link {
    animation: wa-salto 4s ease-in-out infinite;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Onda suave detrás del botón */
.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);
}

/* Salta dos veces seguidas y luego descansa */
@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; }
}

/* Sin animación para quien la tenga desactivada en su equipo */
@media (prefers-reduced-motion: reduce) {
    .whatsapp-link,
    .whatsapp-link::before {
        animation: none;
    }
}


/* Estilo para la pantalla de carga */
#loading-screen {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #f3f3f3;
    z-index: 99999999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader {
  position: relative;
  width: 33px;
  height: 33px;
  perspective: 67px;
}

.loader div {
  width: 100%;
  height: 100%;
  background-image: url("../iconos/icono1.png");
  align-items: center;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: absolute;
  left: 50%;
  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);
  }
}


/* ---------- Pie de página (igual al de los proyectos en venta) ---------- */
.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 rgba(48, 48, 48, 0.14);
    letter-spacing: normal;
    text-align: center;
}

.pie_pagina p { font-size: 0.78rem; color: var(--pf-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;
}

.logosredes a:hover img { opacity: 1; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media screen and (max-width: 895px) {
    .pf-ficha { grid-template-columns: 1fr; gap: 2.5rem; }
    .pf-ficha__datos { position: static; }
    .pf-navegacion__tarjetas { grid-template-columns: 1fr; }
    .pf-nav { aspect-ratio: 16 / 9; }
}

@media screen and (max-width: 560px) {
    .pf-hero__etiquetas { letter-spacing: 0.16em; }
    .pf-hero__resumen { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .pf-hero__img, .pf-hero__centro > *, .pf-hero__pie > *,
    .reveal, .pf-nav__img img {
        transition: none !important;
        opacity: 1;
        transform: none;
    }
}