/* --- ESTILOS GENERALES Y RESET --- */
body, html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Figtree', sans-serif;
    background-color: #fcfcfc; /* Fondo casi blanco muy limpio */
    color: #333;
}

/* --- MANTENER TU CABECERA ACTUAL (HEADER) --- */
#header {
    background: rgba(255, 255, 255, 1);
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex; justify-content: center; align-items: center; padding: 10px 0; height: 70px;
}
.header-content { display: flex; justify-content: space-between; align-items: center; width: 90%; max-width: 1200px; }
#logo img { height: 45px; }
#mainNav ul { display: flex; list-style: none; gap: 30px; }
#mainNav a { color: #333; font-size: 0.95rem; font-weight: 700; text-decoration: none; position: relative; letter-spacing: 0.5px;}
#mainNav a:hover { color: #890000; }
/* Estilos menú móvil... (Mantenlos igual que en tu código original) */
.overlay-movil { height: 100%; width: 0; position: fixed; z-index: 2000; left: 0; top: 0; background-color: rgba(0,0,0, 0.95); overflow-x: hidden; transition: 0.5s; }
.overlay-movil-content { position: relative; top: 25%; width: 100%; text-align: center; margin-top: 30px; }
.overlay-movil a { padding: 8px; text-decoration: none; font-size: 24px; color: #818181; display: block; transition: 0.3s; }
.overlay-movil .closebtn { position: absolute; top: 20px; right: 45px; font-size: 60px; cursor: pointer; color: white; }
button-menu { display: none; font-size: 24px; color: #fff; background-color: #890000; border: none; padding: 8px 12px; border-radius: 4px; cursor: pointer; }


@media screen and (max-width: 500px) {

  #header {    
    height: 50px;
  }

  #logo img {
    height: 35px;
  }

  #mainNav{
    display: none !important; /* Oculta las secciones */
  }

  .overlay-movil a {font-size: 20px}
  .overlay-movil .closebtn {
    font-size: 40px;
    top: 15px;
    right: 35px;
  }

  button-menu{
    display: block;
  }
}



/* --- NUEVO DISEÑO DEL PERFIL --- */
.perfil-wrapper {
    margin-top: 80px; /* Espacio para el header fijo */
    padding: 40px 20px;
    display: flex;
    justify-content: center;
}

.perfil-container {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 2 partes texto, 1 parte foto */
    gap: 50px;
    max-width: 1200px;
    width: 100%;
}

/* COLUMNA IZQUIERDA (TEXTO) */
.info-column {
    padding-right: 20px;
}

.header-nombre h1 {
    font-size: 2.5rem;
    color: #890000;
    margin-bottom: 5px;
    line-height: 1.1;
    text-transform: uppercase;
}

.header-nombre .cargo {
    font-size: 1.2rem;
    color: #555;
    font-weight: 400;
    margin-top: 0;
    margin-bottom: 15px;
}

.divider {
    height: 4px;
    width: 60px;
    background-color: #890000;
    margin-bottom: 40px;
}

/* Secciones de Información */
.info-section {
    margin-bottom: 50px;
}

.section-title {
    font-size: 1.5rem;
    color: #222;
    border-left: 5px solid #890000;
    padding-left: 15px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i { color: #890000; font-size: 1.2rem; }

/* Lista Estilo Línea de Tiempo */
.timeline-list {
    list-style: none;
    padding: 0;
    position: relative;
    border-left: 2px solid #eee;
    margin-left: 10px;
}

.timeline-list li {
    margin-bottom: 20px;
    padding-left: 25px;
    position: relative;
}

.timeline-list li::before {
    content: '';
    position: absolute;
    left: -6px; /* Ajuste para centrar en la línea */
    top: 6px;
    width: 10px;
    height: 10px;
    background-color: #890000;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #890000;
}

.timeline-list strong { color: #890000; font-size: 1.05rem; }

/* Lista Estilo Check */
.check-list {
    list-style: none;
    padding: 0;
}
.check-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}
.check-list li::before {
    content: '\f00c'; /* Icono check de FontAwesome */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #890000;
}

/* Grid de Tarjetas (Cargos) */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.card-item {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid #ccc;
    transition: 0.3s;
}

.card-item:hover {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-left-color: #890000;
}

.card-item h4 { margin: 0 0 5px 0; color: #333; }
.card-item p { margin: 0; font-size: 0.9rem; color: #666; }
.card-item.highlight { background-color: #fff0f0; border-left-color: #890000; }


/* COLUMNA DERECHA (FOTO STICKY) */
.image-column {
    position: relative;
}

.sticky-wrapper {
    position: sticky;
    top: 100px; /* Se queda pegado 100px abajo del tope de la pantalla */
}

.photo-frame {
    background: #fff;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(137, 0, 0, 0.15); /* Sombra roja sutil */
    border-radius: 4px;
}

.photo-frame img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-bottom: 3px solid #890000;
}

.photo-footer {
    text-align: center;
    padding: 10px 0 0 0;
    font-weight: bold;
    color: #890000;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-contacto-perfil {
    display: block;
    background-color: #25D366;
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: 15px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: transform 0.2s;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}
.btn-contacto-perfil:hover { transform: scale(1.02); }


/* RESPONSIVO (TABLET Y MÓVIL) */
@media screen and (max-width: 900px) {
    .perfil-container {
        grid-template-columns: 1fr; /* Una sola columna */
    }

    /* En móvil, queremos ver la foto primero o después del título */
    .image-column {
        order: -1; /* Manda la foto arriba */
        margin-bottom: 30px;
        max-width: 400px; /* Limita el ancho en móvil */
        margin-left: auto;
        margin-right: auto;
    }

    .sticky-wrapper {
        position: static; /* Ya no es sticky en móvil */
    }

    .header-nombre { text-align: center; }
    .header-nombre .divider { margin: 0 auto 30px auto; }
    
    .info-column { padding-right: 0; }
}