/* CV Moderno - Estilo inspirado en Wix */

/* Reset y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2980b9;
}

/* Contenedor principal */
.cv-container {
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 30px rgba(0,0,0,0.1);
}

/* Header */
.cv-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #fff;
    padding: 40px;
    text-align: center;
}

.cv-header h1 {
    font-size: 2.8em;
    font-weight: 300;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.cv-header .titulo-profesional {
    font-size: 1.3em;
    opacity: 0.9;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Layout principal */
.cv-body {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.cv-sidebar {
    width: 320px;
    background: #2c3e50;
    color: #ecf0f1;
    padding: 30px;
    flex-shrink: 0;
}

.cv-sidebar .foto-container {
    text-align: center;
    margin-bottom: 30px;
}

.cv-sidebar .foto {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid #3498db;
    object-fit: cover;
    background: #34495e;
}

.cv-sidebar .sidebar-section {
    margin-bottom: 30px;
}

.cv-sidebar .sidebar-section h3 {
    color: #3498db;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #3498db;
}

.cv-sidebar .contacto-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.95em;
}

.cv-sidebar .contacto-item i {
    width: 24px;
    margin-right: 10px;
    color: #3498db;
}

.cv-sidebar .idioma-item {
    margin-bottom: 15px;
}

.cv-sidebar .idioma-nombre {
    font-weight: 500;
    margin-bottom: 5px;
}

.cv-sidebar .idioma-nivel {
    font-size: 0.85em;
    opacity: 0.8;
}

.cv-sidebar .skill-tag {
    display: inline-block;
    background: #34495e;
    padding: 6px 12px;
    margin: 4px;
    border-radius: 20px;
    font-size: 0.85em;
    border: 1px solid #3498db;
}

/* Contenido principal */
.cv-main {
    flex: 1;
    padding: 40px;
    background: #fff;
}

.cv-section {
    margin-bottom: 40px;
}

.cv-section h2 {
    color: #2c3e50;
    font-size: 1.5em;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid #3498db;
    position: relative;
}

/* Timeline para experiencia */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e0e0e0;
}

.timeline-item {
    position: relative;
    padding-bottom: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -34px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #3498db;
    border: 2px solid #fff;
    box-shadow: 0 0 0 3px #3498db;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item .cargo {
    font-size: 1.2em;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.timeline-item .empresa {
    font-size: 1.05em;
    color: #3498db;
    margin-bottom: 5px;
}

.timeline-item .periodo {
    font-size: 0.9em;
    color: #7f8c8d;
    margin-bottom: 10px;
    font-style: italic;
}

.timeline-item .detalle {
    color: #555;
    font-size: 0.95em;
    line-height: 1.7;
}

/* Cards para certificaciones */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.cert-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #3498db;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.cert-card .cert-nombre {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.cert-card .cert-institucion {
    color: #3498db;
    font-size: 0.95em;
    margin-bottom: 5px;
}

.cert-card .cert-periodo {
    color: #7f8c8d;
    font-size: 0.85em;
}

.cert-card .cert-link {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 15px;
    background: #3498db;
    color: #fff;
    border-radius: 20px;
    font-size: 0.85em;
    transition: background 0.3s ease;
}

.cert-card .cert-link:hover {
    background: #2980b9;
    color: #fff;
}

/* Aficiones */
.aficiones-lista {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.aficion-tag {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #fff;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9em;
    transition: transform 0.3s ease;
}

.aficion-tag:hover {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 900px) {
    .cv-body {
        flex-direction: column;
    }

    .cv-sidebar {
        width: 100%;
        padding: 25px;
    }

    .cv-sidebar .foto-container {
        margin-bottom: 20px;
    }

    .cv-sidebar .foto {
        width: 150px;
        height: 150px;
    }

    .cv-main {
        padding: 25px;
    }

    .cv-header h1 {
        font-size: 2em;
    }

    .cert-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .cv-header {
        padding: 25px 15px;
    }

    .cv-header h1 {
        font-size: 1.6em;
    }

    .cv-header .titulo-profesional {
        font-size: 1em;
    }

    .cv-sidebar, .cv-main {
        padding: 20px 15px;
    }

    .timeline {
        padding-left: 20px;
    }

    .timeline-item::before {
        left: -24px;
        width: 10px;
        height: 10px;
    }
}

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

    .cv-container {
        box-shadow: none;
    }

    .cv-sidebar {
        background: #f0f0f0;
        color: #333;
    }

    .cv-sidebar .sidebar-section h3,
    .cv-sidebar .contacto-item i {
        color: #2c3e50;
    }

    .aficion-tag {
        background: #e0e0e0;
        color: #333;
    }
}
