/* ============================================================
   ESTILOS GENERALES DEL CV EUROPASS
   ============================================================ */

/* Fuente formal usada por Europass */
body {
    margin: 0;
    font-family: 'Source Sans Pro', sans-serif;
    display: flex;                     /* Dos columnas: formulario + CV */
    height: 100vh;
    transition: background 0.3s, color 0.3s;
}

/* Tema claro por defecto (Europass es claro) */
body.light {
    background: #f5f5f5;
    color: #222;
}

/* Tema oscuro opcional */
body.dark {
    background: #121212;
    color: white;
}

/* ============================================================
   PANEL IZQUIERDO: FORMULARIO
   ============================================================ */

.formulario {
    width: 35%;                        /* 35% pantalla */
    padding: 20px;
    overflow-y: auto;                  /* Scroll si es largo */
    border-right: 3px solid #003399;   /* Azul Europass */
    background: #ffffff;
}

body.dark .formulario {
    background: #1e1e1e;
}

.formulario h2 {
    color: #003399;                    /* Azul Europass */
}

.formulario label {
    font-size: 13px;
    font-weight: 600;
}

.formulario input,
.formulario textarea {
    width: 100%;
    padding: 8px;
    margin: 6px 0 12px 0;
    border-radius: 4px;
    border: 1px solid #aaa;
    background: white;
    color: black;
    box-sizing: border-box;
}

body.dark .formulario input,
body.dark .formulario textarea {
    background: #000;
    color: white;
    border: 1px solid #555;
}

.formulario button {
    width: 100%;
    padding: 10px;
    background: #003399;
    border: none;
    color: white;
    font-size: 15px;
    margin-top: 5px;
    cursor: pointer;
    border-radius: 5px;
}

/* ============================================================
   PANEL DERECHO: CV EUROPASS
   ============================================================ */

.cv {
    width: 65%;
    padding: 20px;
    overflow-y: auto;
    box-sizing: border-box;
}

/* Contenedor principal del CV */
.page {
    display: flex;
    border-radius: 10px;
    padding: 20px;
    gap: 20px;
    box-sizing: border-box;
    background: white;
}

body.dark .page {
    background: #1e1e1e;
}

/* ============================================================
   COLUMNA IZQUIERDA DEL CV (SIDEBAR)
   ============================================================ */

.sidebar {
    width: 30%;
    padding: 20px;
    border-right: 2px solid #003399;
    box-sizing: border-box;
}

/* Foto de perfil */
.foto {
    width: 130px;
    height: 160px;
    object-fit: cover;
    border: 2px solid #003399;
    display: block;
    margin: 0 auto 20px auto;
}

/* Nombre */
#cv_nombre {
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 5px;
}

/* Puesto solicitado */
#cv_puesto {
    text-align: center;
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
}

body.dark #cv_puesto {
    color: #ccc;
}

/* ============================================================
   TITULOS DE SECCIÓN
   ============================================================ */

.section-title {
    color: #003399;
    border-bottom: 1px solid #003399;
    margin-bottom: 10px;
    padding-bottom: 4px;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
}

/* ============================================================
   COMPETENCIAS DIGITALES
   ============================================================ */

.competencia {
    background: #003399;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    display: inline-block;
    margin: 3px;
    font-size: 12px;
}

/* ============================================================
   COLUMNA DERECHA DEL CV
   ============================================================ */

.main {
    width: 70%;
    padding: 20px;
    box-sizing: border-box;
}

/* Párrafos del CV */
.main p {
    margin-bottom: 15px;
    line-height: 1.5;
}
/* ============================================================
   Aviso de datos
   ============================================================ */
.aviso-datos {
    font-size: 14px;
    color: #f10202;
    margin-top: 10px;
    line-height: 1.4;
}

/* ============================================================
   BOTÓN FLOTANTE DE CAMBIO DE TEMA
   ============================================================ */

#temaBtn {
    position: fixed;
    top: 10px;
    right: 10px;
    background: #003399;
    color: white;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
}

/* ============================================================
   ESTILOS PARA IMPRESIÓN (PDF)
   ============================================================ */

@media print {

    /* Ocultamos formulario y botón de tema */
    .formulario,
    #temaBtn {
        display: none;
    }

    /* Ajustamos el CV para impresión */
    body {
        height: auto;
    }

    .cv {
        width: 100%;
        padding: 0;
    }

    .page {
        box-shadow: none;
        border-radius: 0;
    }
}