﻿@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@700&display=swap');

:root {
    --theme-color: white;
    --primary-color: #0b2545; /* <--- Cambia el color anterior por este */
    --secundary-color: #f7c331;
    --text-color-inverse: white;
    --text-color: black;
    --navbar-shallow-color: #e5e5e5;
    --menu-mobile-background-color: #3A4460;
}


html, body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: var(--theme-color);
    color: var(--text-color);
}

a {
    text-decoration: none;
    color: var(--text-color);
}

/* MENÚ SUPERIOR FIJO */
.topheader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f4f7fa 100%);
    border-bottom: 2px solid #e1e8ed;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    z-index: 1000;
}

.topnav {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    flex-wrap: wrap;
    max-width: 100%;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    padding-left: 10px;
}

    .logo::before {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 32px;
        background-color: var(--secundary-color);
        border-radius: 2px;
    }

    .logo img.perfil-foto {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        min-height: 48px !important;
        border-radius: 50% !important;
        object-fit: cover !important;
        border: 2px solid var(--secundary-color) !important;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15) !important;
        cursor: pointer;
    }

.fontsize16 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
}

.fontsize13 {
    font-size: 12px;
    font-weight: 500;
    color: #666;
    text-transform: uppercase;
}

.topnav .btn-download-top {
    position: absolute;
    top: 12px;
    right: 30px;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.topnav .menu {
    display: flex;
    list-style: none;
    margin: 15px 0 0 auto;
    padding: 0;
}

.menu li {
    padding: 0 15px;
}

.menu a {
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    line-height: 50px;
    text-transform: uppercase;
}

    /* Raya amarilla para la opción activa del menú */
    .menu a.active {
        border-bottom: 3px solid var(--secundary-color);
        padding-bottom: 5px;
    }

.open-menu, .close-menu, .check-menu-toggle {
    display: none;
}

/* BOTÓN FLOTANTE DE DESCARGA CV */
.btn-download-floating {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #ffffff;
    padding: 14px 24px;
    border-radius: 35px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 6px 20px rgba(0, 86, 179, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
}

    .btn-download-floating:hover {
        background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 86, 179, 0.5);
    }

.download-icon {
    stroke: #ffffff;
}

/* ESTRUCTURA MÓVIL */
@media (max-width: 950px) {
    /* NOTA: Se eliminó el bloqueo para que todas las secciones se muestren correctamente */

    html, body {
        height: auto;
        overflow: auto;
    }

    #profile .main-content-container {
        flex-direction: column !important;
        width: 100% !important;
        gap: 20px !important;
        padding: 0 15px !important;
    }

    #profile .card-section,
    #profile .profile-card {
        width: 100% !important;
        flex: none !important;
        display: flex !important;
        flex-direction: column !important;
        margin-bottom: 15px !important;
    }

    #profile .datos-scroll {
        overflow-y: visible !important;
        max-height: none !important;
        padding-right: 0 !important;
    }

    #profile .line,
    #profile .profile-number {
        display: none !important;
    }

    .topnav .btn-download-top {
        display: none !important;
    }

    .topnav .menu {
        position: fixed;
        left: 0;
        top: 0;
        width: 100vw;
        height: 100vh;
        background-color: var(--menu-mobile-background-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 0;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 9999 !important;
    }

    .menu li {
        padding: 15px 0;
    }

    .menu a {
        color: var(--text-color-inverse) !important;
        font-size: 18px;
    }

    .open-menu {
        display: block !important;
        font-size: 18px;
        font-weight: 700;
        color: var(--primary-color);
        position: relative;
        z-index: 10000 !important;
    }

    .close-menu {
        position: absolute;
        top: 25px;
        right: 30px;
        font-size: 24px;
        color: var(--text-color-inverse);
        display: block !important;
        z-index: 10001 !important;
    }

    #check_fcl:checked ~ .menu {
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    #check_fcl:checked ~ .open-menu {
        display: none !important;
    }
}
