@font-face {
    font-family: 'Futura';
    src: url("../fuentes/futura/futura\ light\ bt.ttf");
    font-weight: lighter;
    font-style: normal;
}
:root {
    --n-bg: #F9F6F3;
    --n-texto: #303030;
    --n-suave: #8A8279;
    --n-linea: rgba(48, 48, 48, 0.14);
    --n-dorado: #B29C6F;
    --n-oscuro: #1c1a18;
    --n-claro: #F9F6F3;
    --n-display: 'Futura', sans-serif;
    --n-body: 'Futura', sans-serif;
    --n-ancho: min(90%, 1400px);
    --n-car-tiempo: 5s;   /* tiempo de cada imagen del carrusel */
}
*{
    margin: 0;
    padding: 0;
    border: 0;
    vertical-align: baseline;
    text-decoration: none;
}
html, body {
    width: 100%;
    min-width: 365px;
  }
.body{
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    text-align: center;
    align-items: center;
    background-color: #F9F6F3;
    font-family: 'Futura';
    font-weight: lighter;
    font-style: normal;
    letter-spacing: 0.1rem;
}

.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;
    flex-direction: row;
    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; }
}


.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);
  }
}


/* =========================================================
   NAV CLARO (páginas sin imagen detrás)
   ========================================================= */
.nav.nav-hero.nav-fija {
    position: relative;
    border-bottom-color: rgba(0, 0, 0, 0.15);
    margin-bottom: 0;
}
.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: #B29C6F; }

.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: #B29C6F; }

/* =========================================================
   PORTAFOLIO
   ========================================================= */
:root {
    --p-texto: #303030;
    --p-suave: #8A8279;
    --p-linea: rgba(48, 48, 48, 0.14);
    --p-dorado: #B29C6F;
    --p-display: 'Poppins', sans-serif;
    --p-body: 'Inter', sans-serif;
}

/* ---------- Encabezado ---------- */
.port-header {
    width: min(90%, 1600px);
    padding: clamp(1rem, 2.5vw, 2.2rem) 0 clamp(0.5rem, 1vw, 0.5rem);
    text-align: left;
    letter-spacing: normal;
}

.port-eyebrow {
    margin-bottom: 0.8rem;
    font-family: var(--p-display);
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--p-dorado);
}

.port-titulo {
    font-family: var(--p-display);
    font-size: clamp(2.4rem, 1.6rem + 3.5vw, 5rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--p-texto);
}

.port-intro {
    max-width: 34rem;
    margin-top: 1.1rem;
    font-family: var(--p-body);
    font-size: clamp(0.88rem, 0.8rem + 0.25vw, 1rem);
    font-weight: 300;
    line-height: 1.7;
    color: var(--p-suave);
}

/* ---------- Filtro ---------- */
.filtro {
    width: min(90%, 1600px);
    display: flex;
    gap: clamp(1.2rem, 3vw, 2.6rem);
    margin-bottom: clamp(1.8rem, 3vw, 2.6rem);
    /*border-bottom: 1px solid var(--p-linea);*/
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.filtro::-webkit-scrollbar { display: none; }

.filtro-btn {
    position: relative;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: flex-start;
    gap: 0.35rem;
    height: auto;
    padding: 0.9rem 0;
    background: transparent;
    color: var(--p-suave);
    font-family: var(--p-display);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.3s ease;
}

.filtro-btn::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: var(--p-texto);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.filtro-btn:hover { color: var(--p-texto); }

.filtro-btn.is-active { color: var(--p-texto); }
.filtro-btn.is-active::after { transform: scaleX(1); }

.filtro-num {
    font-family: var(--p-body);
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--p-dorado);
}

.filtro-btn:focus-visible {
    outline: 1px solid var(--p-texto);
    outline-offset: 4px;
}

/* ---------- Galería ---------- */
.galeria {
    width: min(90%, 1600px);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(1.8rem, 3vw, 2.6rem) clamp(1rem, 1.6vw, 1.5rem);
    text-align: left;
    letter-spacing: normal;
}

.proyecto[hidden] { display: none; }

.proyecto {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.proyecto.visible {
    opacity: 1;
    transform: none;
}

/* Animación al cambiar de filtro */
.proyecto.entra { animation: proyecto-entra 0.55s ease both; }

@keyframes proyecto-entra {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
}

.proyecto-link {
    display: block;
    color: var(--p-texto);
}

.proyecto-img {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 3px;
    background: #E9E4DE;
}

.proyecto-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.proyecto-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.1) 45%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.proyecto-ver {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 1.8rem;
    border: 1px solid rgba(249, 246, 243, 0.4);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #F9F6F3;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.proyecto-ver svg { width: 1rem; height: 1rem; }

.proyecto-info {
    padding-top: 0.95rem;
    border-top: 1px solid transparent;
}

.proyecto-tipo {
    margin-bottom: 0.3rem;
    font-family: var(--p-body);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--p-suave);
}

.proyecto-nombre {
    font-family: var(--p-display);
    font-size: clamp(0.95rem, 0.85rem + 0.3vw, 1.1rem);
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--p-texto);
    transition: color 0.3s ease;
}

/* Hover solo en equipos con mouse */
@media (hover: hover) {
    .proyecto-link:hover .proyecto-img img { transform: scale(1.05); }
    .proyecto-link:hover .proyecto-img::after { opacity: 1; }
    .proyecto-link:hover .proyecto-ver { opacity: 1; transform: none; }
    .proyecto-link:hover .proyecto-nombre { color: var(--p-dorado); }
}

.proyecto-link:focus-visible {
    outline: 1px solid var(--p-texto);
    outline-offset: 6px;
}

/* =========================================================
   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(5rem, 10vw, 8rem);
    border-top: 1px solid var(--n-linea);
    font-family: var(--n-body);
    letter-spacing: normal;
    text-align: center;
}

.pie_pagina p {
    font-size: 0.78rem;
    color: var(--n-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; }

/* ---------- Responsive ---------- */
@media screen and (max-width: 1216px) {
    .galeria { grid-template-columns: repeat(3, 1fr); }
}

@media screen and (max-width: 895px) {
    .galeria { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (max-width: 480px) {
    .galeria { grid-template-columns: 1fr; }
    .proyecto-img { aspect-ratio: 4 / 3.6; }
}

@media (prefers-reduced-motion: reduce) {
    .proyecto,
    .proyecto.entra,
    .proyecto-img img {
        animation: none !important;
        transition: none !important;
        opacity: 1;
        transform: none;
    }
}