/* =========================================================
   MAGNOVA INTERACTIVE
   Web v0.1
   ========================================================= */


/* =========================
   FUENTE
   ========================= */

@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;500;600;700;800;900&display=swap');


/* =========================
   VARIABLES
   ========================= */

:root {
    --black: #050505;
    --black-soft: #0a0a0a;
    --dark: #101010;
    --dark-light: #171717;

    --gold: #d4af37;
    --gold-light: #f0cd61;
    --gold-dark: #806619;

    --white: #ffffff;
    --white-soft: #e8e8e8;
    --gray: #969696;
    --gray-dark: #555555;

    --border: rgba(212, 175, 55, 0.15);

    --max-width: 1200px;

    --transition: 0.3s ease;
}


/* =========================
   RESET
   ========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Exo 2", sans-serif;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(212, 175, 55, 0.05),
            transparent 35%
        ),
        var(--black);

    color: var(--white);

    line-height: 1.6;

    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}


/* =========================
   SCROLLBAR
   ========================= */

::-webkit-scrollbar {
    width: 9px;
}

::-webkit-scrollbar-track {
    background: #050505;
}

::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}


/* =========================
   HEADER / NAVBAR
   ========================= */

.header {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    background: rgba(5, 5, 5, 0.75);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar {
    max-width: var(--max-width);

    height: 85px;

    margin: auto;

    padding: 0 30px;

    display: flex;

    align-items: center;
    justify-content: space-between;
}


/* Logo */

.navbar-logo {
    display: flex;

    align-items: center;

    width: 220px;
}

.navbar-logo img {
    width: 100%;

    object-fit: contain;

    transition: var(--transition);
}

.navbar-logo:hover img {
    filter:
        drop-shadow(0 0 8px rgba(212, 175, 55, 0.25))
        drop-shadow(0 0 20px rgba(212, 175, 55, 0.12));

    transform: scale(1.02);
}


/* Links */

.navbar-links {
    display: flex;

    align-items: center;

    gap: 30px;
}

.navbar-links a {
    position: relative;

    font-size: 14px;

    font-weight: 600;

    letter-spacing: 0.5px;

    color: #c8c8c8;

    transition: var(--transition);
}

.navbar-links a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -8px;

    width: 0;
    height: 1px;

    background: var(--gold);

    box-shadow: 0 0 8px var(--gold);

    transition: var(--transition);
}

.navbar-links a:hover {
    color: var(--white);
}

.navbar-links a:hover::after {
    width: 100%;
}


/* =========================
   HERO
   ========================= */

.hero {
    min-height: 100vh;

    position: relative;

    display: flex;

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

    text-align: center;

    padding: 140px 30px 100px;

    overflow: hidden;
}


/* Luz central */

.hero-glow {
    position: absolute;

    width: 650px;
    height: 650px;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    background:
        radial-gradient(
            circle,
            rgba(212, 175, 55, 0.11) 0%,
            rgba(212, 175, 55, 0.04) 30%,
            transparent 70%
        );

    pointer-events: none;

    animation: glowPulse 5s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.65;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.12);
    }
}


/* Línea vertical decorativa */

.hero::before {
    content: "";

    position: absolute;

    top: 85px;
    left: 50%;

    height: 110px;
    width: 1px;

    background:
        linear-gradient(
            to bottom,
            transparent,
            rgba(212, 175, 55, 0.5),
            transparent
        );
}


/* Contenido */

.hero-content {
    position: relative;

    z-index: 2;

    max-width: 900px;
}

.hero-label {
    margin-bottom: 20px;

    color: var(--gold);

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 5px;
}

.hero h1 {
    font-size: clamp(64px, 10vw, 135px);

    line-height: 0.88;

    font-weight: 900;

    letter-spacing: -5px;

    color: var(--white);

    text-shadow:
        0 0 60px rgba(255, 255, 255, 0.04);
}

.hero h1 span {
    display: block;

    color: var(--gold);

    text-shadow:
        0 0 15px rgba(212, 175, 55, 0.15),
        0 0 50px rgba(212, 175, 55, 0.08);
}

.hero-description {
    max-width: 650px;

    margin: 35px auto 0;

    color: var(--gray);

    font-size: 18px;

    font-weight: 300;

    letter-spacing: 0.4px;
}


/* =========================
   BOTONES HERO
   ========================= */

.hero-buttons {
    margin-top: 45px;

    display: flex;

    justify-content: center;

    gap: 18px;

    flex-wrap: wrap;
}

.button {
    min-width: 190px;

    padding: 15px 28px;

    display: inline-flex;

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

    border-radius: 3px;

    font-size: 14px;

    font-weight: 700;

    letter-spacing: 0.8px;

    transition: var(--transition);
}


/* Botón dorado */

.button-primary {
    color: #050505;

    background:
        linear-gradient(
            135deg,
            var(--gold-light),
            var(--gold),
            #ae8c27
        );

    border: 1px solid var(--gold);

    box-shadow:
        0 0 25px rgba(212, 175, 55, 0.1);
}

.button-primary:hover {
    transform: translateY(-3px);

    box-shadow:
        0 0 20px rgba(212, 175, 55, 0.25),
        0 10px 30px rgba(0, 0, 0, 0.4);
}


/* Botón transparente */

.button-secondary {
    color: var(--white-soft);

    border: 1px solid rgba(255, 255, 255, 0.17);

    background: rgba(255, 255, 255, 0.025);
}

.button-secondary:hover {
    color: var(--gold);

    border-color: rgba(212, 175, 55, 0.5);

    background: rgba(212, 175, 55, 0.035);

    transform: translateY(-3px);
}


/* =========================
   SECCIONES
   ========================= */

.section {
    position: relative;

    padding: 120px 30px;
}

.section-dark {
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.012),
            rgba(255, 255, 255, 0.025),
            rgba(255, 255, 255, 0.012)
        );

    border-top: 1px solid rgba(255, 255, 255, 0.04);

    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}


/* Cabecera de sección */

.section-heading {
    max-width: 760px;

    margin: 0 auto 65px;

    text-align: center;
}

.section-label {
    margin-bottom: 12px;

    color: var(--gold);

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 4px;
}

.section-heading h2 {
    margin-bottom: 20px;

    font-size: clamp(38px, 5vw, 58px);

    line-height: 1;

    font-weight: 800;

    letter-spacing: -1.5px;
}

.section-heading > p:not(.section-label) {
    max-width: 650px;

    margin: auto;

    color: var(--gray);

    font-size: 17px;

    font-weight: 300;
}


/* =========================
   PROYECTOS
   ========================= */

.projects-grid {
    max-width: var(--max-width);

    margin: auto;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 22px;
}

.project-card {
    min-height: 390px;

    position: relative;

    padding: 38px 32px;

    display: flex;

    flex-direction: column;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.035),
            rgba(255, 255, 255, 0.012)
        );

    border: 1px solid rgba(255, 255, 255, 0.07);

    border-radius: 8px;

    overflow: hidden;

    transition: var(--transition);
}


/* Línea superior dorada */

.project-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--gold),
            transparent
        );

    opacity: 0;

    transition: var(--transition);
}


/* Glow */

.project-card::after {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    right: -90px;
    top: -90px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(212, 175, 55, 0.12),
            transparent 70%
        );

    opacity: 0;

    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-8px);

    border-color: rgba(212, 175, 55, 0.3);

    box-shadow:
        0 25px 55px rgba(0, 0, 0, 0.35);
}

.project-card:hover::before,
.project-card:hover::after {
    opacity: 1;
}


/* Estado */

.project-status {
    align-self: flex-start;

    margin-bottom: 30px;

    padding: 6px 10px;

    color: var(--gold);

    border: 1px solid rgba(212, 175, 55, 0.25);

    background: rgba(212, 175, 55, 0.04);

    border-radius: 3px;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1.4px;
}


/* Emoji temporal */

.project-icon {
    margin-bottom: 22px;

    font-size: 40px;
}

.project-card h3 {
    margin-bottom: 13px;

    font-size: 25px;

    font-weight: 700;
}

.project-card p {
    margin-bottom: 30px;

    color: var(--gray);

    font-size: 15px;

    font-weight: 300;
}

.project-type {
    margin-top: auto;

    color: #686868;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 2.2px;
}


/* =========================
   ARCADE
   ========================= */

.coming-soon {
    max-width: 700px;

    margin: auto;

    padding: 60px 30px;

    text-align: center;

    border: 1px dashed rgba(212, 175, 55, 0.25);

    border-radius: 8px;

    background:
        radial-gradient(
            circle at center,
            rgba(212, 175, 55, 0.05),
            transparent 65%
        );
}

.coming-soon span {
    display: block;

    margin-bottom: 15px;

    font-size: 55px;
}

.coming-soon h3 {
    margin-bottom: 10px;

    font-size: 25px;
}

.coming-soon p {
    color: var(--gray);
}


/* =========================
   REDES
   ========================= */

.social-links {
    display: flex;

    justify-content: center;

    align-items: center;

    flex-wrap: wrap;

    gap: 13px;
}

.social-links a {
    min-width: 130px;

    padding: 12px 22px;

    text-align: center;

    color: var(--white-soft);

    border: 1px solid rgba(255, 255, 255, 0.1);

    border-radius: 4px;

    font-size: 13px;

    font-weight: 600;

    transition: var(--transition);
}

.social-links a:hover {
    color: var(--gold);

    border-color: rgba(212, 175, 55, 0.4);

    background: rgba(212, 175, 55, 0.04);

    transform: translateY(-3px);
}


/* =========================
   FOOTER
   ========================= */

.footer {
    min-height: 250px;

    padding: 55px 30px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    background: #030303;

    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer img {
    width: 80px;

    margin-bottom: 22px;

    filter:
        drop-shadow(0 0 12px rgba(212, 175, 55, 0.15));
}

.footer p {
    color: #777;

    font-size: 13px;
}

.footer span {
    margin-top: 7px;

    color: var(--gold);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 3px;
}


/* =========================
   SELECCIÓN DE TEXTO
   ========================= */

::selection {
    background: var(--gold);

    color: var(--black);
}


/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 950px) {

    .navbar {
        height: 75px;
    }

    .navbar-logo {
        width: 190px;
    }

    .navbar-links {
        gap: 17px;
    }

    .navbar-links a {
        font-size: 12px;
    }

    .projects-grid {
        grid-template-columns: 1fr 1fr;
    }

}


@media (max-width: 720px) {

    .navbar {
        justify-content: center;
    }

    .navbar-links {
        display: none;
    }

    .navbar-logo {
        width: 200px;
    }

    .hero {
        padding-top: 130px;
    }

    .hero::before {
        display: none;
    }

    .hero h1 {
        letter-spacing: -3px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;

        align-items: center;
    }

    .button {
        width: 100%;

        max-width: 300px;
    }

    .section {
        padding: 90px 20px;
    }

    .section-heading {
        margin-bottom: 45px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        min-height: 340px;
    }

}


@media (max-width: 430px) {

    .hero h1 {
        font-size: 55px;

        letter-spacing: -2px;
    }

    .hero-label {
        font-size: 10px;

        letter-spacing: 3px;
    }

    .section-heading h2 {
        font-size: 35px;
    }

}
/* =========================================================
   ANIMACIONES MAGNOVA
   ========================================================= */


/* =========================
   INTRO
   ========================= */

.intro {
    position: fixed;

    inset: 0;

    z-index: 9999;

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

    background: #030303;

    transition:
        opacity 0.8s ease,
        visibility 0.8s ease;
}

.intro.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-content {
    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
}

.intro-logo {
    width: 150px;

    opacity: 0;

    transform: scale(0.75);

    filter:
        drop-shadow(0 0 0 rgba(212, 175, 55, 0));

    animation: introLogo 1.2s ease forwards;
}

@keyframes introLogo {

    0% {
        opacity: 0;

        transform:
            scale(0.65)
            translateY(15px);

        filter:
            drop-shadow(0 0 0 rgba(212, 175, 55, 0));
    }

    60% {
        opacity: 1;

        transform:
            scale(1.06)
            translateY(0);

        filter:
            drop-shadow(0 0 25px rgba(212, 175, 55, 0.4));
    }

    100% {
        opacity: 1;

        transform: scale(1);

        filter:
            drop-shadow(0 0 12px rgba(212, 175, 55, 0.2));
    }
}


/* Línea de la intro */

.intro-line {
    width: 0;
    height: 1px;

    margin-top: 25px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--gold),
            transparent
        );

    box-shadow:
        0 0 10px rgba(212, 175, 55, 0.3);

    animation: introLine 0.8s ease 0.7s forwards;
}

@keyframes introLine {

    from {
        width: 0;
    }

    to {
        width: 230px;
    }

}


/* Texto intro */

.intro p {
    margin-top: 17px;

    color: var(--gold);

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 6px;

    opacity: 0;

    transform: translateY(10px);

    animation: introText 0.8s ease 1s forwards;
}

@keyframes introText {

    to {
        opacity: 1;

        transform: translateY(0);
    }

}


/* =========================
   NAVBAR AL HACER SCROLL
   ========================= */

.header {
    transition:
        background 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.header.scrolled {
    background: rgba(3, 3, 3, 0.94);

    border-bottom-color: rgba(212, 175, 55, 0.1);

    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.35);
}


/* =========================
   APARICIÓN AL HACER SCROLL
   ========================= */

.reveal {
    opacity: 0;

    transform: translateY(45px);

    transition:
        opacity 0.85s ease,
        transform 0.85s ease;
}

.reveal.visible {
    opacity: 1;

    transform: translateY(0);
}


/* Tarjetas con retraso escalonado */

.project-card.reveal:nth-child(2) {
    transition-delay: 0.12s;
}

.project-card.reveal:nth-child(3) {
    transition-delay: 0.24s;
}


/* =========================
   HERO ENTRADA
   ========================= */

.hero-content {
    opacity: 0;

    transform: translateY(25px);

    transition:
        opacity 1s ease,
        transform 1s ease;
}

body.loaded .hero-content {
    opacity: 1;

    transform: translateY(0);
}


/* =========================
   NOVA MÁS VIVA
   ========================= */

.footer img {
    animation: novaBreath 4s ease-in-out infinite;
}

@keyframes novaBreath {

    0%,
    100% {
        filter:
            drop-shadow(0 0 8px rgba(212, 175, 55, 0.15));
    }

    50% {
        filter:
            drop-shadow(0 0 18px rgba(212, 175, 55, 0.35));
    }

}


/* =========================
   TARJETAS
   ========================= */

.project-icon {
    transition:
        transform 0.35s ease,
        filter 0.35s ease;
}

.project-card:hover .project-icon {
    transform:
        scale(1.12)
        translateY(-3px);

    filter:
        drop-shadow(0 0 12px rgba(212, 175, 55, 0.2));
}


/* =========================
   BOTONES
   ========================= */

.button {
    position: relative;

    overflow: hidden;
}

.button-primary::before {
    content: "";

    position: absolute;

    top: 0;
    left: -120%;

    width: 70%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.35),
            transparent
        );

    transform: skewX(-20deg);

    transition: 0.7s;
}

.button-primary:hover::before {
    left: 140%;
}