/* ================================
   VARIABLES + RESET
================================ */
:root {
    --color-primario: #003366;
    --color-secundario: #0055aa;
    --color-fondo: #f4f6f9;
    --color-card: #ffffff;
    --color-texto: #333;
    --color-gris: #777;
    --radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, sans-serif;
}

body {
    background-color: var(--color-fondo);
    color: var(--color-texto);
}


/* =========================
   LOGIN
========================= */
.login-page {
    background: linear-gradient(135deg, #003366, #0055aa);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;   /* 🔥 importante */
}

.login-container {
    background: white;
    width: 380px;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.login-container h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #003366;
}

.login-container label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

.login-container input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.login-container button {
    width: 100%;
    padding: 12px;
    font-size: 15px;
}

.login-logo {
    text-align: center;
    margin-bottom: 25px;
}

.login-logo img {
    max-width: 250px;
    /* ancho máximo del logo */
    height: auto;
    display: inline-block;
}

.login-footer {
    padding-top: 10px;
    text-align: center;
    color: #003366;
}

/* ================================
   LAYOUT GENERAL
================================ */
.layout {
    display: flex;
    min-height: 100vh;
}

/* ================================
   SIDEBAR
================================ */
.sidebar {
    width: 250px;
    background-color: var(--color-primario);
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    z-index: 200;
}

.sidebar-logo {
    text-align: center;
    margin-bottom: 30px;
}

.sidebar-logo h3 {
    font-size: 18px;
    font-weight: 600;
}

.sidebar-logo span {
    font-size: 13px;
    color: #cfd8dc;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sidebar-menu a {
    padding: 12px 25px;
    color: #cfd8dc;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background-color: #1e88e5;
    color: #fff;
    border-left: 4px solid #ffffff;
}

.sidebar-menu a i {
    width: 25px;
    margin-right: 10px;
    font-size: 1.1rem;
    color: #a0aec0;
}

.sidebar-menu a:hover i {
    color: #ffffff;
}

/* ================================
   HEADER
================================ */
.header {
    height: 60px;
    background-color: #fff;
    border-bottom: 1px solid #e5e7eb;
    position: fixed;
    top: 0;
    left: 250px;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    z-index: 150;
}

/* ================================
   HEADER - USER INFO
================================ */
.header .user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-secundario);
    white-space: nowrap;
}

.header .user-info i {
    font-size: 1.3rem;
    color: #2e2e2e;
}

.header .user-info strong {
    color: var(--color-primario);
}

.header .user-info span {
    color: #888;
    font-size: 13px;
    font-weight: 400;
}

.header .user-info span::before {
    content: " / ";
    color: #bbb;
    margin: 0 6px;
}

/* ================================
   HEADER - BOTÓN SALIR
================================ */
.header .logout a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 6px;
    background: #f1f5f9;
    color: var(--color-primario);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.header .logout a i {
    font-size: 1rem;
}

.header .logout a:hover {
    background: var(--color-primario);
    color: #fff;
    transform: translateY(-2px);
}

/* ================================
   CONTENIDO
================================ */
.content {
    flex: 1;
    margin-left: 250px;
    padding: 90px 30px 90px;
    min-height: 100vh;
    background: var(--color-fondo);
}

.content h1 {
    font-size: 24px;
    margin-bottom: 25px;
    color: #0d2c54;
    text-align: center;
}

/* ================================
   DASHBOARD CARDS
================================ */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background-color: var(--color-card);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.25s ease;
    border: 1px solid #e5e7eb;
    text-align: center;
}

.card h3 {
    font-size: 15px;
    color: #555;
    margin-bottom: 12px;
}

.card p {
    font-size: 26px;
    font-weight: bold;
    color: var(--color-secundario);
}



/* ================================
   FORMULARIO CV
================================ */
.form-cv {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
    width: 90%;
    max-width: 1100px;
    margin: auto;
    margin-bottom: 80px;
    border: 1px solid #e5e7eb;
}

.form-section {
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e5e7eb;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    font-size: 16px;
    margin-bottom: 18px;
    color: var(--color-primario);
    padding-bottom: 6px;
    border-bottom: 1px solid #f1f1f1;
}

.form-grid {
    display: grid;
    gap: 15px 20px;
    margin-bottom: 12px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.form-groupcv {
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-groupcv label {
    font-size: 13px;
    font-weight: 600;
    min-width: 140px;
    text-align: right;
}

.form-groupcv input,
.form-groupcv select,
.form-groupcv textarea {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
}

.form-groupcv input:focus,
.form-groupcv select:focus,
.form-groupcv textarea:focus {
    border-color: var(--color-secundario);
    outline: none;
}

.check-item {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-actions {
    margin-top: 35px;
    display: flex;
    justify-content: center;
}

/* ================================
   BOTONES
================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primario), var(--color-secundario));
    color: #fff;
}

.btn:hover {
    transform: translateY(-2px);
}

/* ================================
   HABILIDADES
================================ */
.habilidad-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    background: #f9f9f9;
}

.habilidad-item:hover {
    background: #eef2ff;
}

/* ================================
   FOOTER
================================ */
.footer {
    position: fixed;
    bottom: 0;
    left: 250px;
    right: 0;
    background-color: var(--color-primario);
    color: #fff;
    text-align: center;
    padding: 12px;
    font-size: 13px;
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }

    .content {
        margin-left: 200px;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
    }

    .header,
    .footer {
        left: 0;
        position: relative;
    }

    .content {
        margin-left: 0;
        padding-top: 30px;
    }
}