

@font-face {
    font-family: 'Futura';
    src: url("../fuentes/futura/futura\ light\ bt.ttf");
    font-weight: lighter;
    font-style: normal;
}

:root {
    --c-bg: #F9F6F3;
    --c-texto: #303030;
    --c-suave: #8A8279;
    --c-linea: rgba(48, 48, 48, 0.16);
    --c-dorado: #B29C6F;
    --c-error: #A5483A;
    --c-ok: #4F6B4A;
    --c-fuente: 'Futura', sans-serif;
    --c-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(--c-bg);
    color: var(--c-texto);
    font-family: var(--c-fuente);
    font-weight: lighter;
    text-align: left;
    letter-spacing: normal;
    overflow-x: hidden;
}

.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; }
}


/* =========================================================
   ENCABEZADO
   ========================================================= */
.c-header {
    width: var(--c-ancho);
    padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem);
}

.c-eyebrow,
.c-label {
    font-family: var(--c-fuente);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-dorado);
}

.c-eyebrow { margin-bottom: 0.8rem; }

.c-titulo {
    font-family: var(--c-fuente);
    font-size: clamp(2.4rem, 1.4rem + 4.2vw, 5.5rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--c-texto);
}

.c-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(--c-suave);
}

/* =========================================================
   INFO + FORMULARIO
   ========================================================= */
.c-contacto {
    display: grid;
    grid-template-columns: 4fr 7fr;
    gap: clamp(2.5rem, 6vw, 6rem);
    width: var(--c-ancho);
    padding-top: clamp(2rem, 4vw, 3rem);
    border-top: 1px solid var(--c-linea);
}

/* ---------- Datos de contacto ---------- */
.c-info {
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
}

.c-dato {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.c-label { margin-bottom: 0.3rem; }

.c-valor {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--c-texto);
    overflow-wrap: anywhere;
}

.c-valor-link {
    width: fit-content;
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0% 1px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.35s ease, color 0.3s ease;
}

.c-valor-link:hover {
    color: var(--c-dorado);
    background-size: 100% 1px;
}

.c-nota {
    font-size: 0.85rem;
    color: var(--c-suave);
}

.c-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    margin-top: 0.5rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid var(--c-texto);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--c-texto);
    transition: gap 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.c-link:hover {
    gap: 0.9rem;
    color: var(--c-dorado);
    border-color: var(--c-dorado);
}

.c-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    width: fit-content;
    padding: 0.95rem 1.5rem;
    border: 1px solid var(--c-texto);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-texto);
    transition: background 0.3s ease, color 0.3s ease;
}

.c-whatsapp img {
    width: 1.3rem;
    height: 1.3rem;
    padding: 0.15rem;
    border-radius: 50%;
    background: #ABA097;
    object-fit: contain;
}

.c-whatsapp:hover {
    background: var(--c-texto);
    color: var(--c-bg);
}

/* ---------- Caja del formulario ---------- */
.c-form-caja {
    padding: clamp(1.8rem, 4vw, 3.2rem);
    border-radius: 4px;
    background: #FFFFFF;
    box-shadow: 0 24px 60px rgba(48, 48, 48, 0.07);
}

.c-form-titulo {
    margin-bottom: 1.8rem;
    font-family: var(--c-fuente);
    font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-texto);
}

.c-form {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.c-fila {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.6rem;
}

/* Campo con etiqueta que sube al escribir */
.c-campo {
    position: relative;
    display: flex;
    flex-direction: column;
}

.c-campo input,
.c-campo textarea {
    width: 100%;
    padding: 1.35rem 0 0.55rem;
    border-bottom: 1px solid var(--c-linea);
    border-radius: 0;
    background: transparent;
    font-family: var(--c-fuente);
    font-size: 1.02rem;
    font-weight: lighter;
    letter-spacing: 0.02em;
    color: var(--c-texto);
    outline: none;
    transition: border-color 0.3s ease;
}

.c-campo textarea {
    min-height: 7rem;
    resize: vertical;
    line-height: 1.6;
}

.c-campo label {
    position: absolute;
    left: 0;
    top: 1.35rem;
    font-size: 1rem;
    color: var(--c-suave);
    pointer-events: none;
    transform-origin: left top;
    transition: transform 0.25s ease, color 0.25s ease, letter-spacing 0.25s ease;
}

.c-campo input:focus + label,
.c-campo input:not(:placeholder-shown) + label,
.c-campo textarea:focus + label,
.c-campo textarea:not(:placeholder-shown) + label {
    transform: translateY(-1.25rem) scale(0.74);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-dorado);
}

.c-campo input:focus,
.c-campo textarea:focus { border-color: var(--c-texto); }

/* Error */
.c-error {
    max-height: 0;
    overflow: hidden;
    margin-top: 0.4rem;
    font-size: 0.78rem;
    color: var(--c-error);
    opacity: 0;
    transition: opacity 0.25s ease, max-height 0.25s ease;
}

.c-campo.is-error input,
.c-campo.is-error textarea { border-color: var(--c-error); }

.c-campo.is-error label { color: var(--c-error); }

.c-campo.is-error .c-error {
    max-height: 2rem;
    opacity: 1;
}

.c-trampa {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

/* Botón enviar */
.c-enviar-fila {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    margin-top: 0.6rem;
}

.c-enviar {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.7rem;
    border-radius: 999px;
    background: var(--c-texto);
    font-family: var(--c-fuente);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--c-bg);
    cursor: pointer;
    transition: background 0.3s ease, gap 0.3s ease, opacity 0.3s ease;
}

.c-enviar svg {
    width: 1rem;
    height: 1rem;
}

.c-enviar:hover {
    gap: 1.2rem;
    background: #000;
}

.c-enviar:focus-visible {
    outline: 1px solid var(--c-texto);
    outline-offset: 4px;
}

.c-enviar:disabled {
    opacity: 0.55;
    cursor: wait;
}

.c-enviar.is-enviando svg { animation: c-flecha 0.9s ease-in-out infinite; }

@keyframes c-flecha {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(5px); }
}

.c-estado {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--c-suave);
}

.c-estado.is-ok { color: var(--c-ok); }
.c-estado.is-mal { color: var(--c-error); }

/* =========================================================
   MAPA
   ========================================================= */
.c-mapa {
    width: var(--c-ancho);
    margin-top: clamp(4rem, 8vw, 6.5rem);
    overflow: hidden;
    border-radius: 4px;
}

.c-mapa iframe {
    display: block;
    width: 100%;
    height: clamp(320px, 45vw, 460px);
    border: 0;
    filter: grayscale(0.6) contrast(1.05);
    transition: filter 0.6s ease;
}

.c-mapa:hover iframe { filter: grayscale(0); }

/* =========================================================
   APARICIÓN AL HACER SCROLL
   ========================================================= */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

.c-form-caja.reveal { transition-delay: 0.12s; }

/* =========================================================
   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 rgba(48, 48, 48, 0.14);
    letter-spacing: normal;
    text-align: center;
}

.pie_pagina p {
    font-size: 0.78rem;
    color: var(--c-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: 960px) {
    .c-contacto { grid-template-columns: 1fr; }

    .c-info {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .c-whatsapp { grid-column: 1 / -1; }
}

@media screen and (max-width: 600px) {
    .c-info { grid-template-columns: 1fr; }
    .c-fila { grid-template-columns: 1fr; }
    .c-form-caja { padding: 1.6rem 1.3rem 2rem; }
    .c-whatsapp,
    .c-enviar { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .whatsapp-link,
    .whatsapp-link::before { animation: none; }
}