/* ===============================
   ESTILOS GENERALES
   =============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

/* ===============================
   HEADER / MENÚ
   =============================== */
.header {
    background-color: #0b3c5d;
    color: #fff;
    padding: 15px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
}

.nav a {
    margin-left: 20px;
    font-size: 15px;
    transition: opacity 0.3s ease;
}

.nav a:hover {
    opacity: 0.7;
}

/* ===============================
   BANNER
   =============================== */
.banner {
    height: 60vh;
    background: url("../img/banner.jpg") center/cover no-repeat;
    background-image: image-set(
        url("../img/banner.webp") type("image/webp"),
        url("../img/banner.jpg") type("image/jpeg")
    );
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-overlay {
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    text-align: center;
    padding: 40px;
    border-radius: 8px;
}

.banner-overlay h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.banner-overlay p {
    font-size: 18px;
}

/* ===============================
   PALABRAS CLAVE
   =============================== */
.keywords {
    background-color: #ffffff;
    padding: 20px 0;
}

.keywords .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.keywords span {
    background-color: #0b3c5d;
    color: #fff;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 14px;
}

/* ===============================
   SOBRE EL SIEI
   =============================== */
.about {
    padding: 60px 0;
}

.about h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #0b3c5d;
}

.about p {
    max-width: 800px;
    margin: auto;
    text-align: center;
    font-size: 16px;
}

/* ===============================
   MISIÓN Y VISIÓN
   =============================== */
.mv {
    background-color: #ffffff;
    padding: 60px 0;
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.mv h3 {
    color: #0b3c5d;
    margin-bottom: 10px;
}

.mv p {
    font-size: 15px;
}

/* ===============================
   FOOTER
   =============================== */
.footer {
    background-color: #0b3c5d;
    color: #fff;
    padding: 25px 0;
    text-align: center;
    margin-top: 40px;
}

.footer a {
    color: #cce6ff;
}

.footer a:hover {
    text-decoration: underline;
}

/* ===============================
   RESPONSIVE
   =============================== */
@media (max-width: 768px) {

    .header .container {
        flex-direction: column;
    }

    .nav {
        margin-top: 10px;
    }

    .nav a {
        margin: 0 10px;
    }

    .banner {
        height: 50vh;
    }

    .banner-overlay h2 {
        font-size: 24px;
    }

    .banner-overlay p {
        font-size: 16px;
    }
}
/* Animaciones JS */
.animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate.visible {
    opacity: 1;
    transform: translateY(0);
}
/* ===============================
   EQUIPO
   =============================== */
.team {
    padding: 60px 0;
    background-color: #ffffff;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.team-card {
    background: #f8f9fa;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.team-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.team-card h3 {
    margin-bottom: 5px;
    color: #0b3c5d;
}

.team-card .role {
    font-size: 14px;
    font-weight: bold;
    color: #555;
    margin-bottom: 10px;
}
/* ===============================
   PRODUCCIÓN ACADÉMICA
   =============================== */
.production {
    padding: 60px 0;
    background-color: #ffffff;
}

.production-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.production-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 5px solid #0b3c5d;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.production-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.production-card h3 {
    color: #0b3c5d;
    margin-bottom: 5px;
}

.production-card .year {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.production-card p {
    font-size: 15px;
    margin-bottom: 15px;
}

.production-card .btn {
    display: inline-block;
    background: #0b3c5d;
    color: #fff;
    padding: 8px 14px;
    border-radius: 5px;
    font-size: 14px;
    transition: background 0.3s ease;
}

.production-card .btn:hover {
    background: #092f48;
}
/* ===============================
   PROYECTOS
   =============================== */
.projects {
    padding: 60px 0;
    background-color: #ffffff;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.project-card {
    background: #f8f9fa;
    padding: 22px;
    border-radius: 10px;
    border-top: 5px solid #0b3c5d;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.project-card h3 {
    color: #0b3c5d;
    margin-bottom: 8px;
}

.project-card .meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}

.project-card p {
    font-size: 15px;
}
/* ===============================
   INSTITUCIONES ASOCIADAS
   =============================== */
.institutions {
    padding: 60px 0;
    background-color: #ffffff;
}

.institutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.institution-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.institution-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.institution-card img {
    max-width: 120px;
    margin-bottom: 15px;
}

.institution-card h3 {
    color: #0b3c5d;
    margin-bottom: 10px;
}

.institution-card p {
    font-size: 15px;
}
/* ===============================
   ACTIVIDADES
   =============================== */
.activities {
    padding: 60px 0;
    background-color: #ffffff;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.activity-card {
    background: #f8f9fa;
    padding: 22px;
    border-radius: 10px;
    border-left: 5px solid #0b3c5d;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.activity-card h3 {
    color: #0b3c5d;
    margin-bottom: 6px;
}

.activity-card .date {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}

.activity-card p {
    font-size: 15px;
}
/* ===============================
   CONTACTO
   =============================== */
.contact {
    padding: 60px 0;
    background-color: #ffffff;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.contact-info h3,
.contact-form h3 {
    color: #0b3c5d;
    margin-bottom: 15px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

.contact-form button {
    background-color: #0b3c5d;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
}

.contact-form button:hover {
    background-color: #092f48;
}

.contact-form .note {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
}
/* =========================
   MENÚ PRINCIPAL
========================= */

.nav {
  background: transparent;   /* 🔴 transparente */
  border-bottom: none;
  padding: 14px 20px;
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
}


.nav-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
}

/* ===== MENÚ DESKTOP ===== */

.menu {
  list-style: none;
  display: flex;                /* 🔴 Horizontal en desktop */
  flex-direction: row;
  gap: 22px;
  margin: 0;
  padding: 0;
}

.menu li a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  transition: color 0.2s ease;
}

.menu li a:hover {
  color: #00c6ff;
}

/* Botón hamburguesa oculto en desktop */
.menu-toggle {
  display: none;
  font-size: 30px;
  background: none;
  border: none;
  cursor: pointer;
  color: #222;
}

/* =========================
   MENÚ MÓVIL (LEGIBLE)
========================= */
@media (max-width: 768px) {

  /* Botón hamburguesa */
  .menu-toggle {
    display: block;
    font-size: 28px;
    color: #ffffff;           /* visible sobre header */
  }

  /* Contenedor del menú */
  .menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 16px;
    width: 240px;
    background: #ffffff;      /* fondo blanco */
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    padding: 8px 0;
    z-index: 999;
  }

  .menu.show {
    display: flex;
  }

  /* Ítems */
  .menu li {
    padding: 12px 20px;
    border-bottom: 1px solid #e5e5e5;
  }

  .menu li:last-child {
    border-bottom: none;
  }

  /* Links: TEXTO OSCURO */
  .menu li a {
    color: #222222;           /* 🔴 CLAVE: texto oscuro */
    font-weight: 600;
    text-decoration: none;
    display: block;
  }

  .menu li a:hover {
    color: #0073e6;
  }
}
/* =========================
   SLIDER PRINCIPAL
========================= */

.slider {
  position: relative;
  height: 90vh;
  background: url("../img/banner.jpg") center/cover no-repeat;
    background-image: image-set(
        url("../img/banner.webp") type("image/webp"),
        url("../img/banner.jpg") type("image/jpeg")
    );
  overflow: hidden;
}

.slider-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.slider-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #ffffff;
  padding: 20px;
}

.slider-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 10px;
}

.subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 30px;
}

/* ===== PALABRAS CLAVE ===== */

.keywords {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.keywords span {
  padding: 10px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  font-size: 0.95rem;
  font-weight: 600;
  animation: float 6s ease-in-out infinite;
}

/* animación flotante */
@keyframes float {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

/* retrasos distintos */
.keywords span:nth-child(1) { animation-delay: 0s; }
.keywords span:nth-child(2) { animation-delay: 1s; }
.keywords span:nth-child(3) { animation-delay: 2s; }
.keywords span:nth-child(4) { animation-delay: 3s; }
.keywords span:nth-child(5) { animation-delay: 4s; }

/* =========================
   SLIDER MÓVIL
========================= */
@media (max-width: 768px) {
  .slider {
    height: 80vh;
  }

  .keywords span {
    font-size: 0.85rem;
  }
}


/* Estado de envío del formulario */
.form-status{display:none;margin:12px 0;padding:12px;border-radius:10px;background:#f1f5f9;color:#0f172a;font-size:0.95rem;}

/* ===== BADGE ÁREA PRINCIPAL (EQUIPO) ===== */
.area-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #0b4b7a;
  background-color: #e6f0f8;
  border-radius: 12px;
  line-height: 1;
}

/* ===== AVATAR PLACEHOLDER (SVG, SIN IMÁGENES) ===== */
.avatar {
  width: 110px;
  height: 110px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background-color: #e6f0f8;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60%;
}

/* Hombre */
.avatar-male {
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'>\
<circle cx='32' cy='20' r='12' fill='%230b4b7a'/>\
<path d='M16 56c0-8.8 7.2-16 16-16s16 7.2 16 16' fill='%230b4b7a'/>\
</svg>");
}

/* Mujer */
.avatar-female {
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'>\
<circle cx='32' cy='18' r='10' fill='%230b4b7a'/>\
<path d='M18 56c0-7.7 6.3-14 14-14s14 6.3 14 14' fill='%230b4b7a'/>\
<path d='M24 32l-6 12h28l-6-12z' fill='%230b4b7a'/>\
</svg>");
}
/* =========================
   EQUIPO: AJUSTES MÓVIL
   ========================= */
@media (max-width: 768px) {

  /* Menos espacio arriba/abajo */
  .team {
    padding: 35px 0;
  }

  /* Grid más compacto y 1 columna sólida */
  .team-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Tarjetas más compactas */
  .team-card {
    padding: 16px;
  }

  /* Avatar más pequeño en móvil */
  .avatar {
    width: 84px;
    height: 84px;
    margin: 0 auto 10px;
    background-size: 62%;
  }

  /* Títulos de sección (Coordinación, etc.) */
  .team h3 {
    font-size: 18px;
    margin-top: 22px;
  }

  /* Nombre dentro de tarjeta */
  .team-card h3 {
    font-size: 18px;
    line-height: 1.2;
  }

  /* Rol */
  .team-card .role {
    font-size: 13px;
    margin-bottom: 8px;
  }

  /* Badge más cómodo */
  .area-badge {
    font-size: 0.72rem;
    padding: 4px 9px;
  }
}

/* Extra: teléfonos muy angostos */
@media (max-width: 380px) {
  .team-card {
    padding: 14px;
  }
  .avatar {
    width: 76px;
    height: 76px;
  }
}
/* ===============================
   PROYECTOS (PDF) – LIMPIO + RESPONSIVE
   - Textos a la izquierda
   - Tarjetas en desktop y móvil
   =============================== */

.projects{
  padding: 60px 0;
  background-color: #ffffff;
}

/* Mantener consistencia con tu sitio */
.projects h2{
  text-align: center;           /* Título grande puede ir centrado */
  margin-bottom: 12px;
  color: #0b3c5d;
}

/* Intro: alineado a la izquierda (como pediste) */
.projects > .container > p{
  text-align: left;
  max-width: 900px;
  margin: 0 0 26px;
  font-size: 16px;
}

/* ===== SECCIÓN 1: Logo + nombre (tarjetas) ===== */
.projects-overview{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 14px;
  margin-bottom: 34px;
}

.project-item{
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #f8f9fa;
  padding: 18px;
  border-radius: 10px;
  border-top: 5px solid #0b3c5d;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-item:hover{
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.project-icon{
  font-size: 32px;
  flex-shrink: 0;
  margin-top: 2px;
}

.project-item h3{
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
  text-align: left;             /* ✅ izquierda */
  color: #0b3c5d;
}

.project-item a{
  color: #0b3c5d;
  font-weight: 700;
  text-decoration: none;
}

.project-item a:hover{
  text-decoration: underline;
}

/* ===== SECCIÓN 2: Descripción detallada (tarjetas) ===== */
.projects-detail{
  max-width: 900px;
  margin: 0;                    /* ✅ alineado a la izquierda */
}

.project-detail{
  background: #f8f9fa;
  padding: 18px;
  border-radius: 10px;
  border-left: 5px solid #0b3c5d;
  margin-bottom: 18px;
}

.project-detail h3{
  margin: 0 0 8px;
  color: #0b3c5d;
  text-align: left;             /* ✅ izquierda */
  font-size: 18px;
}

.project-detail p{
  margin: 0;
  text-align: left;             /* ✅ izquierda */
  line-height: 1.65;
  color: #333;
  font-size: 15px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px){
  .projects-overview{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px){
  .projects{
    padding: 40px 0;
  }

  /* Intro sigue a la izquierda y con buen aire */
  .projects > .container > p{
    margin-bottom: 18px;
    font-size: 15px;
  }

  /* ✅ Tarjetas en 1 columna en móvil */
  .projects-overview{
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 22px;
  }

  .project-item{
    padding: 16px;
    border-top-width: 4px;
  }

  .project-icon{
    font-size: 30px;
  }

  .project-item h3{
    font-size: 15px;
  }

  /* ✅ Detalle también en tarjetas (no “solo texto”) */
  .project-detail{
    padding: 16px;
    border-left-width: 4px;
  }

  .project-detail h3{
    font-size: 17px;
  }

  .project-detail p{
    font-size: 14px;
  }
}

@media (max-width: 380px){
  .project-item{
    gap: 12px;
    padding: 14px;
  }
  .project-icon{
    font-size: 28px;
  }
}
/* ================= FOOTER ================= */
.site-footer {
  background-color: #0b3c5d;
  color: #ffffff;
  padding: 50px 0 0;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer-col h4 {
  margin-bottom: 12px;
  font-size: 16px;
  color: #ffffff;
}

.footer-col p {
  margin: 0 0 8px;
  line-height: 1.6;
}

.footer-col a {
  color: #cfe4f7;
  text-decoration: none;
}

.footer-col a:hover {
  text-decoration: underline;
}

/* Enlaces */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 6px;
}

/* Redes */
.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  font-size: 20px;
  text-decoration: none;
  color: #ffffff;
}

/* Pie inferior */
.footer-bottom {
  margin-top: 40px;
  padding: 15px 0;
  background-color: #092f49;
  text-align: center;
  font-size: 13px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    text-align: left;
  }

  .footer-social {
    justify-content: flex-start;
  }
}
