/* =========================================================
   CIBERAPRT
   Diseño: Cybersecurity / Dark Orange
========================================================= */


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

:root {

    --background: #07090c;
    --background-light: #0c1015;
    --card: #0d1117;
    --card-hover: #111820;

    --orange: #ff7900;
    --orange-light: #ff9d42;
    --orange-dark: #c95800;

        --red: #ff0000;

    --white: #f1f3f6;
    --text: #b8bec8;
    --text-dark: #707984;

    --border: rgba(255, 121, 0, 0.25);

    --max-width: 1180px;

    --transition: 0.25s ease;
}


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

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--background);
    color: var(--text);
    font-family:
        Inter,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    line-height: 1.6;
    overflow-x: hidden;
}

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

button {
    font-family: inherit;
}


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

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

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

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

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


/* =========================================================
   UTILIDADES
========================================================= */

.container {
    width: min(var(--max-width), calc(100% - 40px));
    margin: 0 auto;
}


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

.navbar {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    background: rgba(7, 9, 12, 0.88);

    backdrop-filter: blur(15px);

    border-bottom: 1px solid rgba(255, 121, 0, 0.18);
}

.nav-container {
    height: 74px;

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


/* LOGO */

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

    gap: 10px;

    color: var(--white);

    font-size: 19px;
    font-weight: 800;

    letter-spacing: -0.5px;
}

.logo-symbol {
    color: var(--orange);

    font-size: 26px;

    filter: drop-shadow(0 0 7px rgba(255, 121, 0, 0.5));
}

.logo span span {
    color: var(--red);
}
.logo span {
        color: var(--orange)
}


/* NAV LINKS */

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    position: relative;

    color: #aeb4be;

    font-size: 14px;

    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
}

.nav-links a.active::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -9px;

    width: 100%;
    height: 2px;

    background: var(--orange);

    box-shadow: 0 0 8px rgba(255, 121, 0, 0.6);
}


/* MOBILE MENU */

.menu-button {
    display: none;

    background: transparent;
    border: none;

    color: var(--white);

    font-size: 24px;

    cursor: pointer;
}


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

.hero {
    position: relative;

    min-height: 720px;

    display: flex;
    align-items: center;

    overflow: hidden;

    border-bottom: 1px solid var(--border);
}

.hero-grid {
    position: absolute;
    inset: 0;

    opacity: 0.35;

    background-image:
        linear-gradient(rgba(255, 121, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 121, 0, 0.04) 1px, transparent 1px);

    background-size: 50px 50px;

    mask-image: linear-gradient(
        to right,
        transparent,
        black,
        transparent
    );
}

.hero-container {
    position: relative;

    display: grid;
    grid-template-columns: 1fr 0.9fr;

    align-items: center;

    gap: 50px;

    padding-top: 74px;
}


/* HERO CONTENT */

.hero-content {
    position: relative;
    z-index: 2;
}

.status {
    display: inline-flex;
    align-items: center;

    gap: 9px;

    padding: 7px 12px;

    margin-bottom: 22px;

    border: 1px solid rgba(255, 121, 0, 0.25);

    background: rgba(255, 121, 0, 0.04);

    color: var(--orange-light);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1.5px;
}

.status-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--orange);

    box-shadow: 0 0 10px var(--orange);
}

.hero h1 {
    color: var(--orange);

    font-size: clamp(60px, 8vw, 100px);

    line-height: 0.95;

    letter-spacing: -5px;

    margin-bottom: 25px;
}

.hero h1 span {
    color: var(--red);

        text-shadow:
                0 0 20px rgba(255, 0, 0, 0.5);

}

.hero h2 {
    max-width: 650px;

    color: #d7dce4;

    font-size: clamp(24px, 3vw, 39px);

    line-height: 1.2;

    font-weight: 300;

    letter-spacing: -1.5px;

    margin-bottom: 25px;
}

.hero h2 strong {
    color: var(--white);

    font-weight: 700;
}

.hero-content > p {
    max-width: 560px;

    color: var(--text);

    font-size: 16px;

    margin-bottom: 35px;
}


/* HERO BUTTONS */

.hero-buttons {
    display: flex;
    gap: 13px;

    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    align-items: center;

    gap: 15px;

    padding: 12px 19px;

    border-radius: 2px;

    font-size: 13px;
    font-weight: 700;

    transition: var(--transition);
}

.button-primary {
    color: #0a0b0d;

    background: var(--orange);
}

.button-primary:hover {
    background: var(--orange-light);

    transform: translateY(-2px);

    box-shadow: 0 8px 30px rgba(255, 121, 0, 0.2);
}

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

    border: 1px solid rgba(255, 255, 255, 0.13);
}

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

    color: var(--orange);
}


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

.hero-visual {
    position: relative;

    height: 480px;

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

.cyber-circle {
    position: absolute;

    border: 1px solid rgba(255, 121, 0, 0.25);

    border-radius: 50%;
}

.circle-1 {
    width: 400px;
    height: 400px;

    animation: rotate 30s linear infinite;
}

.circle-2 {
    width: 310px;
    height: 310px;

    border-style: dashed;

    animation: rotateReverse 22s linear infinite;
}

.circle-3 {
    width: 220px;
    height: 220px;

    border-color: rgba(255, 121, 0, 0.45);

    box-shadow:
        0 0 50px rgba(255, 121, 0, 0.05);
}


/* SHIELD */

.shield {
    position: relative;

    width: 155px;
    height: 180px;

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

    clip-path: polygon(
        50% 0%,
        91% 14%,
        87% 65%,
        72% 82%,
        50% 100%,
        28% 82%,
        13% 65%,
        9% 14%
    );

    background: var(--orange);

    filter:
        drop-shadow(0 0 25px rgba(255, 121, 0, 0.25));
}

.shield-inner {
    width: 139px;
    height: 164px;

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

    clip-path: inherit;

    background: #0b0e12;
}

.lock {
    color: var(--orange);

    font-size: 65px;

    transform: translateY(-5px);

    text-shadow:
        0 0 15px rgba(255, 121, 0, 0.7);
}


/* DECORATIVE LINES */

.code-line {
    position: absolute;

    height: 1px;

    background: linear-gradient(
        to right,
        transparent,
        var(--orange),
        transparent
    );

    opacity: 0.5;
}

.line-1 {
    width: 200px;

    top: 90px;
    right: 0;

    transform: rotate(-25deg);
}

.line-2 {
    width: 170px;

    bottom: 90px;
    left: 0;

    transform: rotate(20deg);
}

.line-3 {
    width: 120px;

    top: 50%;
    right: -20px;

    transform: rotate(90deg);
}


/* TERMINAL */

.terminal-decoration {
    position: absolute;

    bottom: 45px;
    right: 30px;

    padding: 9px 14px;

    border: 1px solid rgba(255, 121, 0, 0.2);

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

    color: var(--text-dark);

    font-family: monospace;

    font-size: 11px;
}

.terminal-decoration span {
    color: var(--orange);
}


/* =========================================================
   SECTIONS
========================================================= */

.section {
    position: relative;

    padding: 100px 0;

    border-bottom: 1px solid rgba(255, 121, 0, 0.12);
}

.section-heading {
    display: flex;
    align-items: center;

    gap: 18px;

    margin-bottom: 25px;
}

.section-number {
    color: var(--orange);

    font-family: monospace;

    font-size: 13px;
    font-weight: 700;

    writing-mode: vertical-rl;
}

.section-label {
    display: block;

    color: var(--orange);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 2px;

    margin-bottom: 5px;
}

.section-heading h2 {
    color: var(--white);

    font-size: clamp(30px, 4vw, 43px);

    line-height: 1.1;

    letter-spacing: -1.5px;
}

.section-description {
    max-width: 700px;

    margin-left: 38px;
    margin-bottom: 55px;

    color: var(--text-dark);

    font-size: 15px;
}


/* =========================================================
   EXPERIENCIA
========================================================= */

.experience-grid {
    display: grid;

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

    gap: 18px;

    margin-left: 38px;
}

.experience-card {
    position: relative;

    min-height: 270px;

    padding: 28px;

    display: flex;
    flex-direction: column;

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

    background: var(--card);

    cursor: default;

    transition: var(--transition);
}

.experience-card:hover {
    border-color: var(--orange);

    background: var(--card-hover);

    transform: translateY(-5px);

    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 121, 0, 0.04);
}

.card-icon {
    width: 45px;
    height: 45px;

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

    margin-bottom: 30px;

    border: 1px solid rgba(255, 121, 0, 0.3);

    color: var(--orange);

    font-family: monospace;

    font-size: 18px;

    background: rgba(255, 121, 0, 0.04);
}

.experience-category {
    color: var(--orange);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1.5px;
}

.experience-info h3 {
    color: var(--white);

    font-size: 23px;

    margin: 4px 0 10px;
}

.experience-info p {
    color: var(--text-dark);

    font-size: 13px;

    line-height: 1.6;
}

.hover-indicator {
    display: block;

    margin-top: auto;
    padding-top: 20px;

    color: #555d67;

    font-family: monospace;

    font-size: 10px;

    transition: var(--transition);
}

.experience-card:hover .hover-indicator {
    color: var(--orange);
}


/* =========================================================
   LORE / TOOLTIP
========================================================= */

.lore-tooltip {
    position: absolute;

    left: 50%;

    bottom: calc(100% + 15px);

    width: 330px;

    padding: 18px;

    transform:
        translateX(-50%)
        translateY(8px);

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    z-index: 50;

    background:
        linear-gradient(
            145deg,
            #11161d,
            #080b0f
        );

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

    box-shadow:
        0 12px 50px rgba(0, 0, 0, 0.65),
        0 0 20px rgba(255, 121, 0, 0.1);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;
}


/* Pequeña flecha */

.lore-tooltip::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: -7px;

    width: 12px;
    height: 12px;

    transform: translateX(-50%) rotate(45deg);

    background: #0b0f14;

    border-right: 1px solid var(--orange);
    border-bottom: 1px solid var(--orange);
}


/* Mostrar lore */

.lore-trigger:hover .lore-tooltip {
    opacity: 1;
    visibility: visible;

    transform:
        translateX(-50%)
        translateY(0);
}


/* CABECERA DEL LORE */

.lore-header {
    color: var(--orange-light);

    font-size: 14px;
    font-weight: 800;

    margin-bottom: 10px;
}

.lore-icon {
    margin-right: 5px;

    color: var(--orange);
}

.lore-line {
    height: 1px;

    margin-bottom: 13px;

    background:
        linear-gradient(
            to right,
            var(--orange),
            transparent
        );
}

.lore-tooltip p {
    color: #c2c8d0;

    font-size: 12px;

    line-height: 1.6;

    margin-bottom: 10px;
}

.lore-footer {
    padding-top: 10px;

    color: var(--orange);

    border-top: 1px solid rgba(255, 121, 0, 0.15);

    font-family: monospace;

    font-size: 9px;

    letter-spacing: 0.5px;
}


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

.projects-section {
    background:
        radial-gradient(
            circle at 90% 50%,
            rgba(255, 121, 0, 0.035),
            transparent 30%
        );
}

.projects-grid {
    display: grid;

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

    gap: 15px;

    margin-left: 38px;
}

.project-card {
    position: relative;

    min-height: 300px;

    display: flex;
    flex-direction: column;

    padding: 25px;

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

    background: var(--card);

    overflow: hidden;

    transition: var(--transition);
}

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

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 2px;

    background: var(--orange);

    transform: scaleX(0);

    transform-origin: left;

    transition: var(--transition);
}

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

    border-color: rgba(255, 121, 0, 0.5);

    background: var(--card-hover);
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.project-icon {
    color: var(--orange);

    font-size: 30px;
}

.project-arrow {
    color: #4e5660;

    transition: var(--transition);
}

.project-card:hover .project-arrow {
    color: var(--orange);

    transform: translate(3px, -3px);
}

.project-number {
    margin-top: 35px;

    color: #343b44;

    font-family: monospace;

    font-size: 10px;
}

.project-card h3 {
    color: var(--white);

    font-size: 20px;

    margin: 3px 0 10px;
}

.project-card p {
    color: var(--text-dark);

    font-size: 12px;

    line-height: 1.65;
}

.project-link {
    margin-top: auto;

    padding-top: 20px;

    color: var(--orange);

    font-size: 11px;
    font-weight: 700;
}


/* =========================================================
   PUBLICACIONES
========================================================= */

.publications-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    margin-bottom: 45px;
}

.publications-header .section-heading {
    margin-bottom: 0;
}

.view-all {
    display: flex;
    align-items: center;

    gap: 12px;

    color: var(--orange);

    font-size: 12px;
    font-weight: 700;

    margin-bottom: 4px;

    transition: var(--transition);
}

.view-all:hover {
    gap: 17px;
}

.publications-list {
    margin-left: 38px;

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

.publication {
    display: grid;

    grid-template-columns: 50px 1fr 30px;

    align-items: center;

    gap: 15px;

    min-height: 105px;

    padding: 15px 20px;

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

    transition: var(--transition);
}

.publication:hover {
    padding-left: 27px;

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

.publication-icon {
    width: 34px;
    height: 34px;

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

    border: 1px solid rgba(255, 121, 0, 0.25);

    color: var(--orange);

    font-size: 14px;
}

.publication-date {
    color: var(--orange);

    font-family: monospace;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1px;
}

.publication h3 {
    color: var(--white);

    font-size: 15px;

    margin: 3px 0;
}

.publication p {
    color: var(--text-dark);

    font-size: 11px;
}

.publication-arrow {
    color: #4c545d;

    font-size: 18px;

    transition: var(--transition);
}

.publication:hover .publication-arrow {
    color: var(--orange);

    transform: translateX(4px);
}


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

.footer {
    background: #050608;
}

.footer-container {
    min-height: 90px;

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

    gap: 30px;
}

.footer-brand {
    display: flex;
    align-items: center;

    gap: 20px;
}

.footer-logo {
    color: var(--white);

    font-size: 14px;
    font-weight: 800;
}

.footer-logo span {
    color: var(--orange);
}

.footer-separator {
    width: 1px;
    height: 20px;

    background: #343941;
}

.footer-brand p {
    color: #555c66;

    font-size: 11px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #646b75;

    font-size: 11px;

    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--orange);
}

.footer-bottom {
    padding: 15px;

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

    color: #3e444c;

    text-align: center;

    font-size: 9px;
}


/* =========================================================
   ANIMACIONES
========================================================= */

@keyframes rotate {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}

@keyframes rotateReverse {

    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }

}


/* =========================================================
   RESPONSIVE - TABLET
========================================================= */

@media (max-width: 950px) {

    .hero-container {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;

        padding: 100px 0;
    }

    .hero-visual {
        height: 400px;

        margin-top: -30px;
    }

    .experience-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =========================================================
   RESPONSIVE - MÓVIL
========================================================= */

@media (max-width: 700px) {

    .container {
        width: min(
            var(--max-width),
            calc(100% - 28px)
        );
    }


    /* NAV */

    .nav-links {
        position: absolute;

        top: 74px;
        left: 0;

        width: 100%;

        padding: 20px;

        display: none;
        flex-direction: column;

        gap: 20px;

        background: #080a0d;

        border-bottom: 1px solid var(--border);
    }

    .nav-links.show {
        display: flex;
    }

    .menu-button {
        display: block;
    }


    /* HERO */

    .hero {
        padding-top: 120px;
        padding-bottom: 50px;
    }

    .hero h1 {
        font-size: 60px;

        letter-spacing: -3px;
    }

    .hero h2 {
        font-size: 25px;
    }

    .hero-visual {
        height: 300px;
    }

    .circle-1 {
        width: 270px;
        height: 270px;
    }

    .circle-2 {
        width: 220px;
        height: 220px;
    }

    .circle-3 {
        width: 155px;
        height: 155px;
    }

    .shield {
        width: 110px;
        height: 130px;
    }

    .shield-inner {
        width: 97px;
        height: 116px;
    }

    .lock {
        font-size: 45px;
    }

    .terminal-decoration {
        display: none;
    }


    /* SECTIONS */

    .section {
        padding: 70px 0;
    }

    .section-description {
        margin-left: 0;
    }


    /* EXPERIENCE */

    .experience-grid {
        grid-template-columns: 1fr;

        margin-left: 0;
    }


    /* LORE */

    .lore-tooltip {
        position: fixed;

        left: 50%;
        bottom: 20px;

        width: calc(100% - 30px);

        transform:
            translateX(-50%)
            translateY(10px);
    }

    .lore-trigger:hover .lore-tooltip {
        transform:
            translateX(-50%)
            translateY(0);
    }

    .lore-tooltip::after {
        display: none;
    }


    /* PROJECTS */

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

        margin-left: 0;
    }


    /* PUBLICATIONS */

    .publications-header {
        align-items: flex-start;

        flex-direction: column;

        gap: 20px;
    }

    .publications-list {
        margin-left: 0;
    }

    .publication {
        grid-template-columns: 35px 1fr 20px;

        padding: 15px 5px;
    }

    .publication h3 {
        font-size: 13px;
    }


    /* FOOTER */

    .footer-container {
        padding: 25px 0;

        flex-direction: column;
        align-items: flex-start;
    }

    .footer-brand {
        align-items: flex-start;
        flex-wrap: wrap;
    }

}


/* =========================================================
   REDUCIR ANIMACIONES
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

}                                                                                                                            
