:root {
    --primario: #f2ce1b;
    --secundario: #3d4138;
    --gris: #545655;
    --negro: #161f28;
}

/* ===== ORBITRON (títulos / acentos futuristas) ===== */
@font-face {
    font-family: "Orbitron";
    src: url("../../fonts/Orbitron-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Orbitron";
    src: url("../../fonts/Orbitron-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Orbitron";
    src: url("../../fonts/Orbitron-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Orbitron";
    src: url("../../fonts/Orbitron-Black.ttf") format("truetype");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ===== NOTO SANS (texto de párrafos, variable font) ===== */
@font-face {
    font-family: "Noto Sans";
    src: url("../../fonts/NotoSans.ttf") format("truetype-variations");
    font-weight: 100 900;
    font-stretch: 75% 125%;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Noto Sans";
    src: url("../../fonts/NotoSans-Italic.ttf") format("truetype-variations");
    font-weight: 100 900;
    font-stretch: 75% 125%;
    font-style: italic;
    font-display: swap;
}

/* ===== RESET BÁSICO ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Noto Sans", "Segoe UI", Arial, sans-serif;

    color: #fff;
    line-height: 1.6;
}

/* ===== HEADER / NAVBAR ===== */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    align-items: center;

    background: var(--negro);
    height: 95px;
    padding-left: 2.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(242, 206, 27, 0.15);
    border-radius: 0 0 30px 30px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw; /* Evita que crezca más allá del ancho visible */
    box-sizing: border-box;
    margin-top: 0;
}

/* ===== LINKS DE NAVEGACIÓN ===== */
.nav-links {
    list-style: none;
    display: flex;
    gap: 2vw;
    flex: 1;
    justify-content: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--primario);
    font-family: "Orbitron", sans-serif;
    font-weight: 400;
    font-size: clamp(0.8rem, calc(0.5rem + 0.6vw), 3rem);

    letter-spacing: 1px;

    transition:
        color 0.25s ease,
        text-shadow 0.25s ease;
    white-space: nowrap;
}

.nav-links a:hover {
    text-shadow: 0 0 8px rgba(242, 206, 27, 0.7);
}

.nav-links a.active {
    color: var(--secundario);
}

/* ===== BOTONES DE ACCIÓN (WhatsApp / Llamada) ===== */
.nav-actions {
    display: flex;
    height: 100%;
    width: 250px;
    position: relative;
}

.btn-action {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 100%;
    background: transparent;
    transition:
        filter 0.2s ease,
        transform 0.2s ease;
}

.btn-action:hover {
    filter: brightness(1.15);
}
.btn-whatsapp {
    position: relative;

    background-color: #25d366;
    width: 130px;
    border-radius: 0px 0px 30px 30px;
    z-index: 2;
    left: 40px;
}
.btn-telefono {
    background-color: var(--primario);
    width: 190px;
    border-radius: 0 0px 30px 0px;
    z-index: 1;
}
.btn-whatsapp .icono-btn-grande {
    width: 54px; /* antes 38px */
    height: 54px;
    object-fit: contain;
}

.btn-telefono .icono-btn-grande {
    position: relative;
    left: 10px;
    width: 45px; /* antes 38px */
    height: 45px;
    object-fit: contain;
}

.icono-btn-grande:hover {
    transform: scale(1.05);
}
/* ===== BOTÓN HAMBURGUESA (oculto en escritorio) ===== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 1rem;
}

.hamburger span {
    width: 26px;
    height: 3px;
    background: var(--primario);
    border-radius: 2px;
    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

.hamburger.activo span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.activo span:nth-child(2) {
    opacity: 0;
}
.hamburger.activo span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ===== TÍTULOS GENERALES DEL SITIO ===== */
h1,
h2,
h3,
.titulo-destacado {
    font-family: "Orbitron", sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--primario);
}

/* ===== RESPONSIVE: TABLET Y MÓVIL ===== */
@media (max-width: 1121px) {
    .navbar {
        padding-left: 1rem;
        flex-wrap: wrap;
    }

    .nav-links {
        order: 3;
        position: fixed;
        top: 82px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: var(--negro);
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }

    .nav-links.abierto {
        max-height: 506px;
        border-top: 1px solid rgba(242, 206, 27, 0.15);
    }

    .nav-links li {
        border-bottom: 1px solid rgba(242, 206, 27, 0.1);
    }

    .nav-links a {
        display: block;
        padding: 1rem 2rem;
    }

    .nav-actions {
        order: 1;
        margin-left: auto;
    }

    .hamburger {
        order: 1;
        display: flex;
    }
    .btn-action {
        height: 90px;
    }
}

@media (max-width: 480px) {
    .btn-action {
        width: 130px;
        height: 88px;
    }

    .btn-telefono .icono-btn-grande {
        width: 30px;
        height: 30px;
    }
    .btn-whatsapp .icono-btn-grande {
        width: 40px;
        height: 40px;
    }

    .nav-links a {
        font-size: 1rem;
        padding: 0.9rem 1.5rem;
    }
}
/* 
footer */

.site-footer {
    background: #ffffff;

    min-height: 420px;
    display: flex;

    margin: 80px 0 0px 0;
    justify-content: space-between;
    width: 100vw;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

/* Bloque de contacto */
.datos-contacto {
    display: flex;
    flex-direction: column;

    max-width: 563px;
}

.datos-contacto-item {
    display: flex;
    align-items: center;
    gap: 18px;
}

.datos-contacto-item .icono {
    height: 60px;
    width: auto;
    flex-shrink: 0;
}

.datos-contacto-item a,
.datos-contacto-item span {
    color: #545655;
    font-size: clamp(1.125rem, 0.4rem + 1.04vw, 2.25rem);
    text-decoration: none;
}
.datos-contacto-fotter {
    margin: 50px 0;
    display: flex;
    flex-direction: column;
    gap: 51px;
}

.redes {
    display: flex;
    gap: calc(3rem + 1vw);
    margin-top: 10px;
}

.redes a {
    width: 100px;

    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s ease;
}
.redes a img {
    width: calc(3rem + 2vw);
    height: auto;
}
.redes a:hover {
    background: #f2ce1b;
}

/* Figura decorativa, ahora dentro del flujo normal */
.figura {
    width: calc(100px + 17vw);
    flex-shrink: 0;
}
.figura img {
    width: 100%;
    height: auto;
    display: block;
}

/* Logo */
.logo-wrap {
    text-align: center;
    margin-right: 20px;
}
.logo-wrap .logo {
    width: calc(100px + 13vw);
    height: auto;
}

.copyright {
    text-align: center;
    margin-top: 60px;
    font-size: 1rem;
    color: #3d4138;
}

.aviso-privacidad a {
    color: var(--secundario);
    text-decoration: auto;
    font-size: 1rem;
}

/* ===== TABLET ===== */
@media (max-width: 1024px) {
    .site-footer {
        position: relative;
        flex-direction: column-reverse;
        gap: 0;
        padding: 50px 24px 30px;
        margin: 150px 0 33px 0;
        overflow: hidden;
    }

    /* La figura pasa a ser fondo decorativo, sale del flujo normal */
    .figura {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
        opacity: 0.15;
        pointer-events: none;
    }
    .figura img {
        width: 100%;
        height: 100%;
    }

    /* Todo el contenido real queda por encima del fondo */
    .footer-inner {
        position: relative;
        z-index: 1;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 40px;
    }

    .datos-contacto {
        align-items: center;
        gap: 20px;
    }
    .datos-contacto-item {
        flex-direction: column;
        gap: 8px;
    }
    .datos-contacto-item .icono {
        height: 34px;
    }
    .datos-contacto-item a,
    .datos-contacto-item span {
        font-size: 1rem;
    }
    .datos-contacto-fotter {
        margin: 0;
        gap: 24px;
    }

    .redes {
        gap: 24px;
        margin-top: 0;
    }
    .redes a,
    .redes a img {
        width: 56px;
    }

    .logo-wrap {
        margin-right: 0;
    }
    .logo-wrap .logo {
        max-width: 300px;
    }

    .copyright {
        margin-top: 10px;
        font-size: 1rem;
    }
}

/* ===== MOBILE ===== */
@media (max-width: 720px) {
    .site-footer {
        position: relative;

        gap: 0;
        padding: 50px 24px 30px;
        margin: 50px 0 33px 0;
        overflow: hidden;
    }

    /* La figura pasa a ser fondo decorativo, sale del flujo normal */
    .figura {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
        opacity: 0.15;
        pointer-events: none;
    }
    .figura img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Todo el contenido real queda por encima del fondo */
    .footer-inner {
        position: relative;
        z-index: 1;
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        gap: 40px;
    }

    .datos-contacto {
        align-items: center;
        gap: 20px;
    }
    .datos-contacto-item {
        flex-direction: column;
        gap: 8px;
    }
    .datos-contacto-item .icono {
        height: 34px;
    }
    .datos-contacto-item a,
    .datos-contacto-item span {
        font-size: 1rem;
    }
    .datos-contacto-fotter {
        margin: 0;
        gap: 24px;
    }

    .redes {
        gap: 24px;
        margin-top: 0;
    }
    .redes a,
    .redes a img {
        width: 56px;
    }

    .logo-wrap {
        margin-right: 0;
    }
    .logo-wrap .logo {
        max-width: 180px;
    }

    .copyright {
        margin-top: 10px;
        font-size: 1rem;
    }
}

/* 
animacion */

section {
    opacity: 0;
    transform: translateY(50px);
    transition:
        opacity 0.5s ease-out,
        transform 0.7s ease-out;
    will-change: opacity, transform;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}
/* Animación con rebote elástico real para el nav */
@keyframes navDropElastic {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animación suave para los botones/acciones */
@keyframes navActionsDrop {
    0% {
        opacity: 0;
        transform: translateY(-60px);
    }
    50% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes navActionsDrop2 {
    0% {
        opacity: 0;
        transform: translateX(60px);
    }
    30% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes navLI {
    0% {
        opacity: 0;
        transform: translateX(40px); /* 40px da un recorrido más suave */
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

nav .nav-links li {
    opacity: 0;
    animation: navLI 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    will-change: opacity, transform;
}

/* Retraso secuencial para cada elemento */
nav .nav-links li:nth-child(1) {
    animation-delay: 0.15s;
}
nav .nav-links li:nth-child(2) {
    animation-delay: 0.25s;
}
nav .nav-links li:nth-child(3) {
    animation-delay: 0.35s;
}
nav .nav-links li:nth-child(4) {
    animation-delay: 0.45s;
}

nav .nav-links li:nth-child(5) {
    animation-delay: 0.55s;
}
nav .nav-links li:nth-child(6) {
    animation-delay: 0.65s;
}
nav .nav-links li:nth-child(7) {
    animation-delay: 0.75s;
}
nav .nav-links li:nth-child(8) {
    animation-delay: 0.85s;
}
nav {
    animation: navDropElastic 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    will-change: opacity, transform;
}

.btn-telefono {
    /* Estado inicial oculto para evitar parpadeo antes del delay */
    opacity: 0;
    /* Duración de 0.6s con 0.4s de retraso tras la entrada del nav */
    animation: navActionsDrop2 2s cubic-bezier(0.25, 1, 0.5, 1) 0.4s forwards;
    will-change: opacity, transform;
}
.btn-whatsapp {
    /* Estado inicial oculto para evitar parpadeo antes del delay */
    opacity: 0;
    /* Duración de 0.6s con 0.2s de retraso tras la entrada del nav */
    animation: navActionsDrop 1s cubic-bezier(0.25, 1, 0.5, 1) 0.2s forwards;
    will-change: opacity, transform;
}
