/* Colores de la marca */
:root {
    --primary-color: #2563eb;
    --dark-bg: #0f172a;
    --card-bg: #1e293b;
    --text-light: #f8fafc;
    --accent: #38bdf8;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    margin: 0;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

/* Contenedor principal ancho */
.cv-container {
    width: 100%;
    max-width: 1100px;
    display: flex;
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

/* Sidebar lateral */
.sidebar {
    flex: 0 0 320px;
    background: #111827;
    padding: 40px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    margin-bottom: 25px;
    object-fit: cover;
    display: block;
    margin: 0 auto 25px auto;
}

/* LinkedIn sin subrayado */
.linkedin-link {
    text-decoration: none;
    color: var(--accent);
    font-weight: bold;
    transition: 0.3s;
}

.linkedin-link:hover {
    color: var(--primary-color);
}

/* Contenido central */
.main-content {
    flex: 1;
    padding: 50px 60px;
}

h1 {
    font-size: 2.8rem;
    margin: 0;
}

h2 {
    color: var(--primary-color);
    font-weight: 300;
    margin-bottom: 40px;
}

/* Control de las imágenes de las empresas */
.exp-item,
.edu-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding: 15px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    align-items: center;
    /* Centra el logo verticalmente con el texto */
    transition: 0.3s;
}

.exp-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* ESTO ARREGLA EL ERROR DE LA IMAGEN */
.company-logo {
    width: 55px;
    /* Ancho fijo para el logo */
    height: 55px;
    /* Alto fijo para el logo */
    min-width: 55px;
    /* Evita que se encoja si el texto es largo */
    object-fit: contain;
    /* Ajusta la imagen sin deformarla */
    background: white;
    /* Fondo blanco por si el logo es oscuro o transparente */
    padding: 5px;
    border-radius: 8px;
}

.text h4 {
    margin: 0;
    color: var(--accent);
}

.text h5 {
    margin: 5px 0;
    opacity: 0.6;
    font-size: 0.9rem;
}

.text p {
    margin: 5px 0 0 0;
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Móvil */
@media (max-width: 950px) {
    .cv-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        text-align: center;
        border-right: none;
    }

    .exp-item {
        flex-direction: column;
        text-align: center;
    }
} 


/* // ESTILO BOTÓN VOLVER (Idéntico al botón "Ver CV" del Portafolio) */
.btn-volver-top {
    /* // 1. Posicionamiento: Fijo en la esquina superior izquierda */
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 1000; /* // Para que flote por encima de todo */

    /* // 2. Diseño Visual (Copiado del Portafolio) */
    background-color: var(--primary-color); /* #2563eb */
    color: var(--text-light); /* #f8fafc */
    padding: 0.6rem 1.2rem; /* El mismo tamaño que el botón "Ver CV" */
    border-radius: 8px;     /* Borde redondeado sutil, no píldora */
    text-decoration: none;  /* Sin subrayado */
    font-weight: 500;       /* Grosor de letra */
    font-family: 'Inter', sans-serif;
    
    /* // 3. Sombra */
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    
    /* // 4. Animación suave */
    transition: 0.3s ease;
    
    /* // Importante para que se centre el texto si usas flex */
    display: inline-flex; 
    align-items: center;
    gap: 8px;
}

/* // EFECTO HOVER (Al pasar el ratón) */
.btn-volver-top:hover {
    background-color: var(--accent); /* Se pone azul clarito (#38bdf8) */
    transform: translateY(-2px);     /* El "saltito" hacia arriba */
    box-shadow: 0 6px 15px rgba(0,0,0,0.4); /* La sombra crece un poco */
}

/* // AJUSTE PARA MÓVIL (Para que no moleste en pantallas pequeñas) */
@media (max-width: 768px) {
    .btn-volver-top {
        top: 15px;
        left: 15px;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}