
@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;
    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(--n-bg);
    color: var(--n-texto);
    font-family: var(--n-body);
    text-align: left;
    letter-spacing: normal;
    overflow-x: hidden;
}

img { max-width: 100%; }

/* =========================================================
   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;
    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; }
}

/* =========================================================
   ELEMENTOS COMPARTIDOS
   ========================================================= */
.n-seccion {
    width: var(--n-ancho);
    padding: clamp(4.5rem, 10vw, 8rem) 0 0;
}

.n-eyebrow {
    margin-bottom: 1rem;
    font-family: var(--n-display);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--n-dorado);
}

.n-titulo {
    font-family: var(--n-display);
    font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.7rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.005em;
    color: var(--n-texto);
}

.n-texto {
    font-family: var(--n-body);
    font-size: clamp(0.92rem, 0.85rem + 0.2vw, 1.02rem);
    font-weight: 300;
    line-height: 1.8;
    color: #5C5650;
}

.n-texto + .n-texto { margin-top: 1.2rem; }

.n-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.8rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--n-texto);
    font-family: var(--n-display);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--n-texto);
    transition: color 0.3s ease, border-color 0.3s ease, gap 0.3s ease;
}

.n-link:hover {
    gap: 1rem;
    color: var(--n-dorado);
    border-color: var(--n-dorado);
}

/* Dos columnas: título a la izquierda, contenido a la derecha */
.n-dos-col {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: clamp(2rem, 6vw, 6rem);
    align-items: start;
}

.n-col-izq {
    position: sticky;
    top: 2rem;
}

/* Aparición al hacer scroll */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* =========================================================
   PORTADA
   ========================================================= */
.n-portada {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    height: 100vh;
    height: 100svh;
    min-height: 560px;
    overflow: hidden;
    background: var(--n-oscuro);
    color: var(--n-claro);
}

.n-portada-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.08);
    animation: n-zoom 2.4s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.n-portada::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.25) 30%,
        rgba(0, 0, 0, 0.25) 55%,
        rgba(0, 0, 0, 0.65) 100%
    );
    pointer-events: none;
}

.n-portada-contenido {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    width: min(90%, 1600px);
    padding-bottom: clamp(3rem, 9vh, 5.5rem);
}

.n-portada-contenido > div > * {
    opacity: 0;
    transform: translateY(18px);
    animation: n-subir 0.9s ease forwards;
}

.n-portada .n-eyebrow {
    color: rgba(249, 246, 243, 0.8);
    animation-delay: 0.3s;
}

.n-portada-titulo {
    font-family: var(--n-display);
    font-size: clamp(3rem, 1.4rem + 7.5vw, 8.5rem);
    font-weight: 500;
    line-height: 0.95;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--n-claro);
    animation-delay: 0.45s !important;
}

.n-portada-lema {
    max-width: 28rem;
    margin-top: 1.3rem;
    font-family: var(--n-body);
    font-size: clamp(0.9rem, 0.82rem + 0.3vw, 1.05rem);
    font-weight: 300;
    line-height: 1.65;
    color: rgba(249, 246, 243, 0.86);
    animation-delay: 0.6s !important;
}

.n-scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    color: rgba(249, 246, 243, 0.8);
    font-family: var(--n-display);
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.n-scroll span { writing-mode: vertical-rl; }

.n-scroll i {
    position: relative;
    display: block;
    width: 1px;
    height: 3.5rem;
    overflow: hidden;
    background: rgba(249, 246, 243, 0.25);
}

.n-scroll i::after {
    content: "";
    position: absolute;
    left: 0;
    top: -100%;
    width: 100%;
    height: 100%;
    background: var(--n-claro);
    animation: n-linea 2.2s ease-in-out infinite;
}

@keyframes n-zoom  { to { transform: scale(1); } }
@keyframes n-subir { to { opacity: 1; transform: none; } }
@keyframes n-linea { 0% { top: -100%; } 60%, 100% { top: 100%; } }

/* =========================================================
   QUIÉNES SOMOS
   ========================================================= */
.n-firma {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-top: 2.2rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--n-linea);
    font-family: var(--n-body);
    font-size: 0.78rem;
    font-weight: 300;
    color: var(--n-suave);
}

.n-firma span {
    font-family: var(--n-display);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--n-texto);
}

/* =========================================================
   NÚMEROS
   ========================================================= */
.n-numeros {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: clamp(4.5rem, 10vw, 8rem);
    color: black;
}

.n-numeros-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: var(--n-ancho);
    margin: 0 auto;
    padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.n-num {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0.4rem clamp(1rem, 2.5vw, 2.2rem);
    border-left: 1px solid rgba(249, 246, 243, 0.16);
}

.n-num:first-child {
    padding-left: 0;
    border-left: 0;
}

.n-num:nth-child(2) { transition-delay: 0.1s; }
.n-num:nth-child(3) { transition-delay: 0.2s; }
.n-num:nth-child(4) { transition-delay: 0.3s; }

.n-num-valor {
    font-family: var(--n-display);
    font-size: clamp(2rem, 1.3rem + 2.4vw, 3.4rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    color: black;
}

.n-num-label {
    margin-top: 0.8rem;
    font-family: var(--n-body);
    font-size: 0.82rem;
    font-weight: 300;
    line-height: 1.5;
    color: black;
}

/* =========================================================
   LO QUE HEMOS HECHO (carrusel)
   ========================================================= */
.n-hecho {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: clamp(2rem, 6vw, 6rem);
    align-items: center;
}

.n-carrusel {
    position: relative;
    outline: none;
}

.n-carrusel:focus-visible {
    outline: 1px solid var(--n-texto);
    outline-offset: 6px;
}

.n-car-marco {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 3px;
    background: #E9E4DE;
}

.n-car-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 0s linear 1s;
}

.n-car-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
    transition: opacity 1s ease;
}

.n-car-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
    transition: transform 6s ease-out;
}

.n-car-slide.is-active img { transform: scale(1); }

/* Barra de progreso = temporizador del carrusel */
.n-car-progreso {
    height: 1px;
    margin-top: 1.1rem;
    background: var(--n-linea);
    overflow: hidden;
}

.n-car-progreso span {
    display: block;
    height: 100%;
    background: var(--n-texto);
    transform-origin: left;
    animation: n-progreso var(--n-car-tiempo) linear forwards;
}

.n-carrusel:hover .n-car-progreso span,
.n-carrusel:focus-within .n-car-progreso span,
.n-carrusel.is-paused .n-car-progreso span {
    animation-play-state: paused;
}

@keyframes n-progreso {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

.n-car-barra {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
}

.n-car-nombre {
    font-family: var(--n-display);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--n-texto);
}

.n-car-controles {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.n-car-contador {
    margin-right: 0.6rem;
    font-family: var(--n-body);
    font-size: 0.78rem;
    font-weight: 300;
    font-variant-numeric: tabular-nums;
    color: var(--n-suave);
}

.n-car-contador b {
    font-weight: 400;
    color: var(--n-texto);
}

.n-car-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border: 1px solid var(--n-linea);
    border-radius: 50%;
    background: transparent;
    color: var(--n-texto);
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.n-car-btn svg { width: 1rem; height: 1rem; }

.n-car-btn:hover {
    background: var(--n-texto);
    border-color: var(--n-texto);
    color: var(--n-claro);
}

.n-car-btn:focus-visible {
    outline: 1px solid var(--n-texto);
    outline-offset: 3px;
}

.n-hecho-texto .n-titulo { margin-bottom: 1.3rem; }

/* =========================================================
   SERVICIOS (acordeón)
   ========================================================= */
.n-acordeon { border-top: 1px solid var(--n-linea); }

.n-serv { border-bottom: 1px solid var(--n-linea); }

.n-serv h3 { margin: 0; font-size: inherit; }

.n-serv-btn {
    display: grid;
    grid-template-columns: 2.6rem 1fr auto;
    align-items: center;
    width: 100%;
    padding: 1.5rem 0;
    background: transparent;
    color: var(--n-texto);
    text-align: left;
    cursor: pointer;
}

.n-serv-num {
    font-family: var(--n-body);
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--n-dorado);
}

.n-serv-nombre {
    font-family: var(--n-display);
    font-size: clamp(1rem, 0.9rem + 0.45vw, 1.3rem);
    font-weight: 400;
    letter-spacing: 0.01em;
    transition: color 0.3s ease, transform 0.35s ease;
}

.n-serv-btn:hover .n-serv-nombre { transform: translateX(6px); }

.n-serv-btn:focus-visible {
    outline: 1px solid var(--n-texto);
    outline-offset: 4px;
}

/* Ícono + que se convierte en − */
.n-serv-icono {
    position: relative;
    width: 0.9rem;
    height: 0.9rem;
}

.n-serv-icono::before,
.n-serv-icono::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--n-texto);
    transition: transform 0.35s ease;
}

.n-serv-icono::after { transform: rotate(90deg); }
.n-serv.is-open .n-serv-icono::after { transform: rotate(0deg); }

/* Panel que se abre suave */
.n-serv-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.45s ease;
}

.n-serv-panel > div {
    overflow: hidden;
    padding-left: 2.6rem;
}

.n-serv.is-open .n-serv-panel { grid-template-rows: 1fr; }

.n-serv.is-open .n-serv-panel > div { padding-bottom: 1.8rem; }

.n-serv-panel .n-link { margin-top: 1.3rem; }

/* =========================================================
   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; }

/* =========================================================
   WHATSAPP
   ========================================================= */
.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: 1024px) {
    .n-hecho { grid-template-columns: 1fr; }
}

@media screen and (max-width: 895px) {
    .n-dos-col { grid-template-columns: 1fr; gap: 1.8rem; }
    .n-col-izq { position: static; }

    .n-numeros-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 2.6rem;
    }
    .n-num:nth-child(3) { padding-left: 0; border-left: 0; }

    .n-scroll { display: none; }
}

@media screen and (max-width: 480px) {
    .n-num { padding: 0.4rem 0 0.4rem 1rem; }
    .n-num-label { font-size: 0.76rem; }
    .n-car-contador { display: none; }
    .n-serv-btn { grid-template-columns: 2.2rem 1fr auto; }
    .n-serv-panel > div { padding-left: 2.2rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    .reveal,
    .n-portada-img,
    .n-portada-contenido > div > *,
    .n-car-slide img {
        opacity: 1;
        transform: none;
        animation: none !important;
        transition: none !important;
    }

    .n-car-progreso span { animation: none; transform: scaleX(0); }
    .n-scroll i::after,
    .whatsapp-link,
    .whatsapp-link::before { animation: none; }
}