
/* ================================================
   CV Minimalista Gris — Inspirado en Canva
   ================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #e8e8e8;
    color: #333;
    line-height: 1.6;
}

/* ---------- Contenedor principal ---------- */
.cv-container {
    display: flex;
    max-width: 60rem;
    min-height: calc(100vh - 40px);
    margin: 0px auto;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    border-radius: 2px;
    overflow: hidden;
}

/* ==========================================
   SIDEBAR
   ========================================== */
.sidebar {
    width: 300px;
    min-width: 300px;
    background-color: #2d2d2d;
    color: #d4d4d4;
    padding: 40px 28px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Foto */
.photo-wrapper {
    text-align: center;
}

.foto {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #555;
    filter: grayscale(30%);
}

/* Secciones del sidebar */
.sidebar-section h3 {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #555;
}

/* Lista de contacto */
.contact-list {
    list-style: none;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.8rem;
    color: #c0c0c0;
    word-break: break-all;
}

.contact-icon {
    flex-shrink: 0;
    width: 18px;
    text-align: center;
    font-size: 0.85rem;
}

/* Barras de habilidades */
.skill {
    margin-bottom: 12px;
}

.skill-name {
    display: block;
    font-size: 0.78rem;
    color: #c0c0c0;
    margin-bottom: 5px;
}

.skill-bar {
    width: 100%;
    height: 5px;
    background-color: #555;
    border-radius: 3px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background-color: #a0a0a0;
    border-radius: 3px;
    transition: width 0.4s ease;
}

.skill-label {
    display: block;
    font-size: 0.7rem;
    color: #888;
    margin-top: 3px;
}

/* ==========================================
   MAIN CONTENT
   ========================================== */
.main-content {
    flex: 1;
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Header principal */
.main-header {
    margin-bottom: 4px;
}

.main-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2d2d2d;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.main-header .subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: #777;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.header-line {
    width: 60px;
    height: 3px;
    background-color: #2d2d2d;
    margin-top: 14px;
}

/* Títulos de sección */
.main-content h2 {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #2d2d2d;
    padding-bottom: 8px;
    border-bottom: 1px solid #d4d4d4;
    margin-bottom: 16px;
}

/* Perfil */
.profile p {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.7;
}

/* Timeline de experiencia / educación */
.timeline-item {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.timeline-date {
    min-width: 110px;
    font-size: 0.78rem;
    font-weight: 500;
    color: #999;
    padding-top: 2px;
}

.timeline-content {
    flex: 1;
}

.timeline-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d2d2d;
    margin-bottom: 2px;
}

.timeline-content .company {
    display: block;
    font-size: 0.82rem;
    color: #888;
    margin-bottom: 8px;
    font-style: italic;
}

.timeline-content ul {
    list-style: none;
    padding: 0;
}

.timeline-content ul li {
    position: relative;
    padding-left: 16px;
    font-size: 0.84rem;
    color: #555;
    margin-bottom: 5px;
    line-height: 1.5;
}

.timeline-content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 5px;
    height: 5px;
    background-color: #999;
    border-radius: 50%;
}

.timeline-content p {
    font-size: 0.84rem;
    color: #555;
    line-height: 1.6;
}


.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #007bff;
    background-color: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.btn:hover {
    background: #0056b3;
    background-color: #218838;
  }

.footer {
    max-width: 60rem;
    margin: 0 auto;
    padding: 6px;
    color: #fff;
    background-color: #2d2d2d;
    text-align: center;
}


/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .cv-container {
        flex-direction: column;
        margin: 0;
        border-radius: 0;
        min-height: auto;
    }

    .sidebar {
        width: 100%;
        min-width: auto;
        padding: 30px 24px;
    }

    .main-content {
        padding: 30px 24px;
    }

    .timeline-item {
        flex-direction: column;
        gap: 4px;
    }

    .timeline-date {
        min-width: auto;
    }
}

/* ---------- Print ---------- */
@media print {
    body {
        background: #fff;
    }

    .cv-container {
        box-shadow: none;
        margin: 0;
        max-width: 100%;
        border-radius: 0;
    }
}
