/* ========================================= */
/*      ESTILOS PARA EXPERIENCIA (COLOR 2)   */
/* ========================================= */

:root {
    /* Paleta similar pero con variantes para distinguir */
    --primary-color: #b71c1c;
    /* Rojo más oscuro */
    --secondary-color: #0d47a1;
    /* Azul más brillante */
    --accent-color: #ffca28;
    /* Amarillo ámbar */

    --text-dark: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;

    --bg-body: #f1f5f9;
    /* Fondo ligeramente diferente */
    --bg-card: #ffffff;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);

    --radius: 8px;
    /* Bordes un poco menos redondeados */
    --transition: all 0.3s ease;
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-body);
}

h1,
h2,
h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ========================================= */
/*               NAVEGACIÓN                  */
/* ========================================= */
nav {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 2px 8px;
    border-radius: 4px;
}

.back-link {
    color: var(--secondary-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--primary-color);
    transform: translateX(-5px);
}

/* ========================================= */
/*               HEADER MINI                 */
/* ========================================= */
.mini-header {
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 40px;
}

.mini-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.mini-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ========================================= */
/*               TIMELINE                    */
/* ========================================= */
section {
    padding: 0 20px 60px;
    max-width: 900px;
    margin: 0 auto;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #cbd5e1;
    border-radius: 2px;
}

.experience-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
    position: relative;
}

/* Flecha apuntando a la línea */
.experience-card::after {
    content: '';
    position: absolute;
    top: 30px;
    left: -10px;
    width: 20px;
    height: 20px;
    background: var(--bg-card);
    transform: rotate(45deg);
    border-left: 1px solid rgba(0, 0, 0, 0.05);
    /* Sutil sombra */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Círculo en la línea */
.experience-card::before {
    content: '';
    position: absolute;
    top: 35px;
    left: -38px;
    /* Ajustado a la línea */
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border: 4px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--secondary-color);
    z-index: 10;
}

.card-header {
    margin-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 15px;
}

.card-header h3 {
    color: var(--secondary-color);
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.company {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.9rem;
    font-style: italic;
}

.card-body ul {
    list-style-type: none;
}

.card-body ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.card-body ul li::before {
    content: '⚡';
    /* Icono personalizado */
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 0.8rem;
    color: var(--accent-color);
}

/* ========================================= */
/*                 FOOTER                    */
/* ========================================= */
footer {
    text-align: center;
    padding: 30px;
    color: var(--text-light);
    border-top: 1px solid #e2e8f0;
    margin-top: 40px;
}

/* ========================================= */
/*              RESPONSIVE                   */
/* ========================================= */
@media (max-width: 600px) {
    .timeline {
        padding-left: 0;
    }

    .timeline::before {
        display: none;
    }

    .experience-card::before,
    .experience-card::after {
        display: none;
    }

    .experience-card {
        margin-left: 0;
    }
}