 body {
    background-color: #f4f6f9;
    font-family: 'Roboto', sans-serif;
}

/* Paleta de colores personalizada basada en la imagen */
.bg-navy { background-color: #2b5c8f !important; }
.text-navy { color: #1a416e !important; }
.bg-gold { background-color: #c9a65a !important; }
.text-gold { color: #c9a65a !important; }

/* Navbar */
nav {
    background-color: #1a416e;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
nav .brand-logo {
    font-weight: 700;
    display: flex;
    align-items: center;
    font-size: 1.4rem;
}
nav .brand-logo span {
    font-weight: 300;
    margin-left: 5px;
    color: #b0bec5;
}

/* Sección Hero / Perfil */
.hero-profile {
    padding: 60px 0;
    min-height: 750px;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(26, 65, 110, 0.7), rgba(26, 65, 110, 0.7)),
    url('../img/wallup-288745.jpg') no-repeat center center fixed;
    background-size: cover;
    position: relative;
}

.profile-frame {
    border: 4px solid #c9a65a;
    padding: 5px;
    background-color: transparent;
    width: 180px;
    height: 180px;
    display: inline-block;
}

.profile-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-profile h3 {
    margin-top: 0;
    font-weight: 700;
}
.hero-profile .btn-custom {
    margin-right: 15px;
    margin-top: 10px;
    text-transform: uppercase;
    font-weight: 600;
}
.btn-gold {
    background-color: #c9a65a;
    color: white;
}
.btn-gold:hover { background-color: #b59249; }
.btn-outline-gold {
    border: 2px solid #c9a65a;
    background-color: transparent;
    color: #c9a65a;
}
.btn-outline-gold:hover {
    background-color: rgba(201, 166, 90, 0.1);
    color: #c9a65a;
}

/* Bloques de encabezado estilo pestaña lateral */
.section-header-block {
    background-color: #0d335c;
    color: white;
    padding: 8px 20px;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-block;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    margin-left: -24px; /* Ajuste para salir de la tarjeta */
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tarjetas de Habilidades / Pilares */
.skill-box {
    background-color: #4b7da7;
    color: white;
    min-height: 210px;
    border-radius: 6px !important;
    transition: transform 0.3s;
}
.skill-box:hover {
    transform: translateY(-5px);
}
.skill-box i {
    font-size: 3rem;
    color: #f7d070;
}
.skill-box h6 {
    font-weight: 700;
    margin-top: 15px;
    letter-spacing: 0.5px;
}
.skill-box p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Línea de tiempo para Experiencia y Educación */
.cv-card {
    border-radius: 8px !important;
    padding: 24px;
    overflow: hidden;
}
.timeline {
    position: relative;
    padding-left: 30px;
    margin-top: 10px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background-color: #4b7da7;
}
.timeline-event {
    position: relative;
    margin-bottom: 30px;
}
.timeline-event:last-child {
    margin-bottom: 10px;
}
.timeline-event::before {
    content: '';
    position: absolute;
    left: -31px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #1a416e;
    border: 3px solid #f4f6f9;
}
.event-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: #222;
}
.event-subtitle {
    font-size: 0.95rem;
    color: #4b7da7;
    font-weight: 500;
    margin: 2px 0 10px 0;
}
.timeline-event ul {
    padding-left: 20px;
    margin: 5px 0;
}
.timeline-event ul li {
    list-style-type: disc;
    margin-bottom: 5px;
    color: #555;
    font-size: 0.95rem;
}

/* Bloques de Educación */
.edu-item {
    margin-bottom: 20px;
}
.edu-year {
    font-weight: 700;
    color: #c9a65a;
    display: flex;
    align-items: center;
}
.edu-year i {
    margin-right: 8px;
    font-size: 1.2rem;
}

/* Formulario de Contacto */
.input-field input[type=text]:focus + label,
.input-field input[type=email]:focus + label,
.input-field textarea:focus + label {
    color: #1a416e !important;
}
.input-field input[type=text]:focus,
.input-field input[type=email]:focus,
.input-field textarea:focus {
    border-bottom: 1px solid #1a416e !important;
    box-shadow: 0 1px 0 0 #1a416e !important;
}
.contact-info p {
    margin-bottom: 15px;
    font-size: 0.95rem;
}
.contact-info strong {
    display: block;
    color: #1a416e;
}

/* POST DE VT */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.card {
    border: 1px solid #d6d6d7;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    /* background: #fff; */
}
.card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    background-color: #f3f3f3;
}
.card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.card-tags {
    font-size: 0.8rem;
    color: #575757;
    margin-bottom: 8px;
}
.card-title {
    font-size: 1.2rem;
    margin: 0 0 10px 0;
    line-height: 1.3;
}
.card-title a {
    color: #09090b;
    text-decoration: none;
    font-weight: 700;
}
.card-title a:hover { color: #3b49df; }
.card-description {
    font-size: 0.9rem;
    color: #575757;
    flex-grow: 1;
}