/* Variables globales */
:root {
    --color-primary-orange: #ff7900;
    --color-primary-blue: #2f80ed;
    --color-secondary-blue: #56ccf2;

    --color-text-dark: #1b1b18;
    --color-text-muted: #555555;
    --color-white: #ffffff;

    --color-border-light: #eee;
    --color-border-medium: #ddd;

    --color-shadow: rgba(0, 0, 0, 0.05);
    --color-shadow-strong: rgba(0, 0, 0, 0.15);

    --color-danger: red;
}

/* Estilos generales */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Instrument Sans', sans-serif;
    background: linear-gradient(to bottom right, var(--color-white), #eef3ff);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--color-text-dark);
}

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

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

/* Navbar */
.custom-navbar {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border-light);
    box-shadow: 0 2px 6px var(--color-shadow);
    padding: 12px 20px;
    position: relative;
    z-index: 1000;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    width: 10%;
    color: var(--color-text-dark);
}

.navbar-toggle {
    font-size: 28px;
    background: none;
    border: none;
    color: var(--color-text-dark);
    cursor: pointer;
    display: none;
}

/* Links navbar */
.navbar-links {
    list-style: none;
    display: flex;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.navbar-links li {
    display: inline-block;
}

/* Botones */
.btn-outline {
    padding: 6px 16px;
    border: 1px solid var(--color-text-dark);
    border-radius: 20px;
    text-decoration: none;
    color: var(--color-text-dark);
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--color-text-dark);
    color: var(--color-white);
}

.btn-filled {
    padding: 6px 16px;
    background-color: var(--color-text-dark);
    border: none;
    border-radius: 20px;
    color: var(--color-white);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-filled:hover {
    background-color: var(--color-primary-blue);
}

/* Logout */
.logout-link {
    color: var(--color-danger);
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
}

/* Popup menú móvil */
.menu-popup {
    position: fixed;
    top: 70px;
    right: 20px;
    width: 220px;
    background-color: var(--color-white);
    border: 1px solid var(--color-border-medium);
    box-shadow: 0 4px 10px var(--color-shadow-strong);
    border-radius: 10px;
    display: none;
    padding: 1rem;
    z-index: 9999;
}

.menu-popup.show {
    display: block;
}

.menu-popup a {
    display: block;
    margin-bottom: 0.5rem;
    text-align: center;
}

/* Página principal */
.main-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.main-title {
    font-size: 32px;
    margin-bottom: 16px;
    color: var(--color-primary-blue);
}

.main-description {
    font-size: 16px;
    max-width: 600px;
    color: var(--color-text-muted);
    margin-bottom: 32px;
}

.main-image {
    width: 240px;
    height: auto;
    margin-bottom: 32px;
}

.main-button {
    display: inline-block;
    background-color: var(--color-primary-orange);
    color: var(--color-white);
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.main-button:hover {
    background-color: var(--color-primary-blue);
}
@media (min-width: 1200px) {
    .navbar-brand {
        width: 10%;
    }
    .main-image {
        max-width: 280px;
    }
}

@media (max-width: 1024px) {
    .navbar-brand {
        width: 15%;
    }

}

@media (max-width: 768px) {
    .navbar-toggle {
        display: block;
    }
    .navbar-brand {
        width: 30%;
        text-align: center;
    }
    .navbar-links {
        display: none;
    }

}

@media (max-width: 480px) {
    .navbar-brand {
        width: 40%;
        text-align: center;
    }
    .main-image {
        max-width: 180px;
    }
}

@media (max-width: 360px) {
    .navbar-brand {
        width: 40%;
        text-align: center;
    }
    .main-image {
        max-width: 150px;
    }
}
