/* Estilos para personal.html */
:root{
  --accent:#0a6ebd;
  --muted:#666;
  --bg:#f7f7f8;
  --azulmedio: #19597c;
  --azuloscuro: #05384e;
  --azulclaro: #2b74a5;
  --blanco: #ffffff;
  --grisclaro: #e1e1edef;

}

body{
  font-family: Arial, Helvetica, sans-serif;
  margin:0;
  background:var(--bg);
  color:#222;
}
.wrap{
  max-width:1100px;
  margin:0 auto;
  padding:0 16px;
}
.site-header{
  background:#fff;
  border-bottom:1px solid #e6e6e6;
}
.site-header .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 0;
}


.hero {
  padding: 36px 20px 28px;
  text-align: center;
  background: linear-gradient(180deg, #f0f6fb, #ffffff); /* Fondo degradado suave */
  border-radius: 12px; /* Bordes redondeados */
  box-shadow: 0 4px 10px rgba(25, 122, 179, 0.753); /* Sombra suave */
  margin-bottom: 40px; /* Espaciado entre el encabezado y el árbol */

}

.hero h1 {
  margin: 0 0 8px;
  font-size: 2.5rem; /* Ajusta el tamaño del texto */
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(143, 139, 139, 0.1); /* Sombra del texto */
  font-family: 'Arial Black', Gadget, sans-serif;
  color: var(--azuloscuro);
}

.hero p {
  font-family: 'Monospace', Gadget, sans-serif;
  font-size: 1.2rem;
  color: #666; /* Color suave para el texto */
  margin: 0 auto;
  max-width: 800px;
  line-height: 1.6;
}

.tree-level.ceo img {
  height: 180px; /* Mantiene la altura del contenedor */
  width: auto; /* Ajusta el ancho automáticamente */
  object-fit: cover; /* Asegura que la imagen cubra el contenedor */
  object-position: center 10%; 
}





.logo{font-weight:700; color:var(--accent); text-decoration:none; font-size:1.1rem}
.site-header nav a{margin-left:16px; color:var(--muted); text-decoration:none}
.lead{color:var(--muted); margin:0 auto; max-width:800px}

.team-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
  gap:18px;
  margin:22px 0 60px;
}


.team-card {
  background: linear-gradient(180deg, #ffffff, #f7f7f8); /* Fondo con degradado */
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); /* Sombra más suave */
  overflow: visible;
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-left: 25px;
  position: relative;
}

.team-card:hover {
  transform: scale(1.05); /* Efecto de zoom */
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15); /* Sombra más intensa */
}

.team-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 0%; 
  margin-bottom: 10px;
}

.card-body h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #0a6ebd;
  margin-bottom: 5px;
}

.card-body p {
  font-family: 'Monospace', Gadget, sans-serif;
  font-size: 0.9rem;
  color: #666;
}

.team-card img{width:100%; height:200px; object-fit:cover; display:block}
.card-body{padding:14px}
.card-body h3{margin:8px 0 4px; font-size:1.05rem}
.position{color:var(--accent); font-weight:600; margin:0 0 8px; font-size:0.9rem}
.bio{margin:0; color:#333; line-height:1.35; font-size:0.9rem}
.social-links{margin:12px 0 0; display:flex; gap:8px; justify-content:center}
.social-links a{display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; background:var(--accent); color:#fff; border-radius:50%; text-decoration:none; font-size:0.85rem}
.social-links a:hover{opacity:0.8}

.site-footer{background:transparent; padding:18px 0 36px; color:var(--muted); text-align:center}

/* ==== Modo Oscuro ==== */
body.dark-theme{
  background: var(--bg-primary);
  color: var(--text-primary);
}
body.dark-theme .team-card{
  background: var(--card-bg);
  box-shadow: 0 6px 18px var(--card-shadow);
}
body.dark-theme .lead,
body.dark-theme .bio{ color: var(--text-secondary); }
body.dark-theme .site-footer{ color: var(--text-secondary); }
body.dark-theme .extra-info{ background: #1f2937; color: var(--text-secondary); }
body.dark-theme .extra-info .blood{ background: #2b74a5; color: #fff; }
body.dark-theme .hero{background: linear-gradient(180deg, #242424, #191b20);}
body.dark-theme .hero h1{color: #ffffff;}
body.dark-theme .tree-level h3{color: #ffffff;}
body.dark-theme .tree-level p{font-family: 'Monospace', Gadget, sans-serif; color: #ffffffde;}


@media (max-width:520px){
  .team-card img{height:160px}
  .hero h1{font-size:1.5rem}
}

.extra-info{
  display:flex;
  justify-content:space-between;
  margin-top:10px;
  font-size:0.85rem;
  color:var(--muted);
}

.extra-info .years{
  font-weight:600;
}

.extra-info .blood{
  font-weight:700;
  color:var(--accent);
}

/* ===== JERARQUÍA TIPO ÁRBOL ===== */

.team-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 60px;
}

.tree-level {
  display: flex;
  justify-content: center;
  gap: 40px;
  position: relative;
  align-items: center;
}

.tree-level.ceo {
  margin-bottom: 40px;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.tree-level.children::before {
  content: none;
}

.tree-level .team-card::before,
.tree-level .team-card::after {
  content: none;
}
.tree-level .team-card::before {
  left: 0;
  transform: translateY(-50%);
}

.tree-level .team-card::after {
  right: 0;
  transform: translateY(-50%);
}


.team-card.leader {
  transform: scale(1.05);
  border: 2px solid #0a6ebd;
}



/* ===== INFO EXTRA (edad / sangre) ===== */

.extra-info {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding: 6px 10px;
  border-radius: 6px;
  background: #f0f6fb;
  font-weight: 600;
  font-size: 0.85rem;
}

.extra-info .years {
  color: #0a6ebd;
}

.extra-info .blood {
  background: #0a6ebd;
  color: #fff;
  padding: 2px 8px;
  border-radius: 12px;
}

/* ===== INFORMÁTICA ===== */

.informatica-section h2 {
  text-align: center;
  margin: 40px 0 20px;
}

.informatica {
  justify-content: center;
}


.informatica .team-card {
  width: 330px;
}


/*responsive*/
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-family: 'Monospace', Gadget, sans-serif;
    font-size: 1.1rem;
  }

  .team-card {
    padding: 16px;
  }
}

@media (max-width: 768px) {
  .tree-level {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .hero {
    padding: 24px 16px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-family: 'Monospace', Gadget, sans-serif;
    font-size: 1rem;
  }

  .team-card img {
    height: 140px;
  }

  .informatica .team-card {
    width: 100%; /* Asegura que las tarjetas ocupen todo el ancho disponible */
  }
}



@media (max-width: 520px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-family: 'Monospace', Gadget, sans-serif;
    font-size: 0.9rem;
  }

  .team-card img {
    height: 120px;
  }

  .team-card {
    padding: 12px;
  }

  .extra-info {
    font-size: 0.8rem;
  }

  .informatica .team-card {
    width: 100%; /* Asegura que las tarjetas ocupen todo el ancho disponible */
  }
}

@media (max-width: 768px) {
  .tree-level.ceo {
    flex-direction: column; /* Cambia a diseño vertical si es necesario */
    justify-content: center; /* Centra la tarjeta horizontalmente */
    align-items: center; /* Centra la tarjeta verticalmente */
    gap: 20px;
    margin-right:15px; /* Espaciado entre elementos */
  }
  .informatica .team-card {
    width: 260px; /* Reduce aún más el ancho en pantallas pequeñas */
    padding: 10px; /* Ajusta el padding interno */
  }
  .team-card.leader {

    margin-bottom: 10px;
  }
}