/* Variables */
:root {
    --naranja: #F7931E;
    --naranja-oscuro: #F15A24;
    --gris-claro: #E2E4E7;
    --gris: #AEADB3;
    --blanco: #fff;
    --sombra-suave: rgba(0, 0, 0, 0.1);
    --sombra-fuerte: rgba(0, 0, 0, 0.2);
    --gris-oscuro: #121212;
    --gris-claro-oscuro: #727176;
}

@font-face {
    font-family: 'Gotham';
    src: url('fonts/Gotham.woff2') format('woff2'),
         url('fonts/Gotham.woff') format('woff');
    font-weight: normal;
    font-style: normal;
  }
@font-face {
    font-family: 'BebasKai';
    src: url('fonts/BebasKai.woff2') format('woff2'),
         url('fonts/BebasKai.woff') format('woff');
    font-weight: normal;
    font-style: normal;
  }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px; /* o la altura exacta de tu navbar */
  }

/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Gotham', 'BebasKai', sans-serif;
    background-color: var(--gris-claro);
    color: var(--gris-oscuro);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
    position: relative;
    z-index: 0;
  }
  
  
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('imgs/general/fondo_page2.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center 20%;
    opacity: 0.05; /* Ajusta este valor a tu gusto */
    z-index: -1;
    pointer-events: none;
}

body.modo-oscuro::before {
    opacity: 0.05;
    filter: invert(1);
  }
  
  
body h1{
    font-size: 3rem;
    margin-bottom: 30px;
    text-align: center;
}
body p{
    text-align: justify;
}

/* Estilos para el modo oscuro */
body.modo-oscuro {
    background-color: black;
    color: var(--blanco);
}

/* Contenedor principal */
.container {
    width: 90%;
    max-width: 1200px; /* Máximo ancho de 1200px */
    margin: 0 auto;
    padding: 20px;
}

/* Navbar */
header {
    background: var(--naranja);
    color: var(--blanco);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 30px;
    box-shadow: 0 4px 10px var(--sombra-suave);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
    border-bottom: 2px var(--gris-claro-oscuro) solid;
}

/* Logo y descripción */
header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

header .logo img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
}

header .logo p {
    font-size: 0.9rem;
    font-weight: bold;
}

/* Menú */
header nav {
    display: flex;
    gap: 20px;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 10px;
    margin-left: auto; /* Alinea los enlaces a la derecha */
}

header nav a {
    color: var(--blanco);
    font-size: 15px;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

header nav a:hover {
    background: var(--naranja-oscuro);
}

header nav a:focus {
    background: var(--naranja-oscuro);
}

/* Botón hamburguesa */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.burger-menu div {
    height: 4px;
    background-color: var(--blanco);
    border-radius: 4px;
}

/* Mostrar el menú de navegación en móviles */
.nav-active {
    display: block !important;
}

@media (max-width: 768px) {
    header nav {
        display: none;
        width: 100%;
        justify-content: space-between;
    }

    header nav ul {
        display: block;
        width: 100%;
        background-color: var(--naranja);
        position: absolute;
        top: 60px;
        left: 0;
        padding: 20px;
        text-align: center;
    }

    header nav a {
        width: 100%;
        padding: 12px 0;
    }

    .burger-menu {
        display: flex;
    }

    .nav-active {
        display: block;
    }
}

body.modo-oscuro header {
    background-color: var(--gris-oscuro);
    border-bottom: 2px var(--gris-claro-oscuro) solid;
}

body.modo-oscuro header nav a {
    color: var(--gris-claro);
}

/* Sección principal */
#inicio {
    padding: 0px 0px;
    text-align: center;
    width: 100%;
    margin-bottom: 80px;
  }

  .titulo-zis {
    position: relative;
    padding: 80px 20px;
    text-align: center;
    background-image: url('./imgs/zis/fondo_titulo.png'); /* Cambia por tu imagen */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* efecto parallax suave */
    overflow: hidden;
    margin-bottom: 20px;
  }
  
  .titulo-zis::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Oscurece la imagen para mejor contraste */
    z-index: 0;
  }
  
  .bienvenida-animada {
    position: relative;
    z-index: 1;
    font-size: 3.2em;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.6);
    letter-spacing: 2px;
    font-family: 'Poppins', sans-serif;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
  }
  
  .bienvenida-animada.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  #inicio .titulo-zis-inicio{
    color: var(--naranja) !important;
    font-size: 1.4em !important;
    max-width: 440px !important;
  }

  
  #inicio .bloque-texto h2 {
    text-align: center;
    font-size: 2em;
    }

  #inicio .contenido {
    display: flex;
    gap: 50px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  
  #inicio .imagen {
    position: sticky;
    top: 100px; /* Puedes ajustar este valor */
    align-self: flex-start; /* Para evitar estiramiento si el contenedor es alto */
  }

  #inicio .imagen h3 {
    max-width: 400px;
    font-size: 1.1em;
    text-decoration: none;
    font-weight: normal; /* Esto quita la negrilla */
    text-align: center;
  }
  

  /* Logo */
  #inicio .imagen img {
    max-width: 300px;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  }
  
  #inicio .bloque-texto img {
    max-width: 400px;
    position: relative;
    display: block;       /* Necesario para usar margin auto */
    margin: 0 auto;       /* Esto la centra horizontalmente */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }

  
  /* Texto */
  #inicio .texto {
    max-width: 800px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 30px;
  }
  
  /* Bloque individual con texto + decorativa */
  .bloque-texto {
    
    background-color: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  }

  body.modo-oscuro .bloque-texto {
    background-color: rgb(84, 84, 84);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
}

.bloque-texto h2{
    color: var(--naranja) !important;
}
  
  .bloque-texto p {
    margin-bottom: 15px;
    line-height: 1.6;
  }
  
  .bloque-texto img.decorativa {
    max-width: 100%;
    height: auto;
    margin-top: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    #inicio .contenido {
      flex-direction: column;
      align-items: center;
    }
  
    #inicio .imagen img {
      max-width: 160px;
    }
  }
  
  

  .section-divider {
    height: 1px;
    width: 90%;
    background-color: black;
    margin: 40px auto; /* centrado y espacio arriba/abajo */
    border-radius: 4px; /* opcional para esquinas suaves */
  }
  
  body.modo-oscuro .section-divider {
    background-color: white;
  }
  


/* Sección general */
/* Sección general */
.seccion-about {
    padding: 20px 20px;
    text-align: center;
}

.seccion-about h1 {
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: var(--gris-oscuro);
}

body.modo-oscuro .seccion-about h1 {
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: white;
}

/* Contenedor de las filas */
.about-container {
    display: flex;
    flex-direction: column;
    gap: 60px;
    align-items: center;
}

/* Fila normal (card a la izquierda, imagen a la derecha) */
.custom-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    width: 100%;
}

/* Fila invertida (imagen a la izquierda, card a la derecha) */
.custom-row .reverse {
    flex-direction: row-reverse;
}

/* Caja de contenido */
.custom-box {
    flex: 1;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.custom-box h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: orange;
    text-align: center;
}

.custom-box p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

/* Imagen decorativa */
.custom-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-image img {
    max-width: 600px;
    border-radius: 10px;
    height: auto;
    transition: transform 0.3s ease;
}

.custom-image img:hover {
    transform: scale(1.05);
}

/* Responsivo */
@media (max-width: 768px) {
    .custom-row,
    .custom-row.reverse {
        flex-direction: column !important;
        text-align: center;
    }

    .custom-box {
        text-align: center;
    }

    .custom-image img {
        max-width: 100px;
        margin-top: 20px;
    }
}


/* Botón flotante de modo oscuro */
.modo-oscuro-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--gris-claro-oscuro);
    color: var(--blanco);
    font-size: 24px;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 8px var(--sombra-suave);
    transition: background-color 0.3s ease, transform 0.3s ease;
}



.modo-oscuro-btn:hover {
    background-color: var(--naranja-oscuro);
    transform: scale(1.1);
}

body.modo-oscuro .modo-oscuro-btn{
    background-color: var(--gris-claro);
}

body.modo-oscuro .modo-oscuro-btn:hover {
    background-color: var(--naranja-oscuro);
    transform: scale(1.1);
}

/* Transiciones suaves */
html {
    scroll-behavior: smooth;
}

/* seccion de eventos ZIS */
.seccion-eventos {
    padding: 10px 10px;
    text-align: center;
    margin-bottom: 40px;
  }
  
  .seccion-eventos h1 {
    font-size: 2.8em;
    margin-bottom: 40px;
    color: #222;
  }

  body.modo-oscuro .seccion-eventos h1 {
    color: white;
    }
  
  .event-carousel-container {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
  }

  body.modo-oscuro .event-carousel-container {
    background-color: #555;
    }
  
  .event-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
  }
  
  .evento {
    flex: 0 0 100%;
    display: flex;
    border-radius: 16px;
    overflow: hidden;
    margin: 0 10px;
  }
  
  .evento-imagen {
    flex: 1;
  }
  
  .evento-imagen img {
    max-width: 380px;
    object-fit: cover;
    border-radius: 10px;
  }
  
  .evento-info {
    flex: 1;
    padding: 30px;
    text-align: left;
  }
  
  .evento-info h2 {
    margin-top: 0;
    font-size: 1.8em;
    color: var(--naranja);
  }

  body.modo-oscuro .seccion-eventos h2 {
    color: var(--naranja);
    }
  
  .evento-info p {
    margin: 10px 0;
    color: #555;
    line-height: 1.5;
  }

  /* Estilo de los enlaces como botones */
.evento-info a {
    font-weight: normal;
    color: var(--blanco); /* Puedes ajustar el color según tu esquema de colores */
    text-decoration: none; /* Elimina el subrayado predeterminado */
    padding: 5px 10px; /* Añade un poco de espacio alrededor del texto */
    background-color: var(--blanco); /* Fondo gris claro */
    border-radius: 25px; /* Bordes redondeados */
    display: inline-block; /* Hace que se comporte como un botón */
    transition: background-color 0.3s ease, transform 0.2s ease; /* Transiciones suaves para el hover */
  }
body.modo-oscuro .evento-info a {
    color: var(--naranja);
    background-color: var(--gris-claro);
}

body.modo-oscuro .evento-info a:hover {
    color: var(--blanco);
    background-color: var(--naranja);
}
  
  /* Estilo al pasar el mouse */
  .evento-info a:hover {
    background-color: var(--naranja); /* Fondo de color principal al pasar el mouse */
    color: white; /* Cambiar el color del texto al blanco */
    transform: scale(1.05); /* Efecto de agrandamiento suave */
  }
  

  body.modo-oscuro .seccion-eventos p {
    color: white;
    }
  
  .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.6);
    color: white;
    border: none;
    font-size: 20px;
    padding: 7px 12px;
    cursor: pointer;
    z-index: 1;
    border-radius: 10px;
  }
  
  .carousel-btn.left {
    left: 10px;
  }
  
  .carousel-btn.right {
    right: 10px;
  }
  
  .carousel-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
  }
  

/* Cards de los Investigadores */

#investigadores{
    text-align: center;
}

#investigadores p{
    text-align: center;
    color: var(--gris-oscuro);
}

#investigadores h2{
    font-size: 2rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.card {
    background-color: var(--blanco);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px var(--sombra-suave);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px var(--sombra-fuerte);
}

.card-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: var(--naranja);
    transition: background-color 0.3s ease;
}

.card img {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-bottom: 20px;
    border: 2px var(--naranja) solid;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.card p {
    color: var(--gris);
    font-weight: 500;
}

.btn-ver-mas {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  background-color: var(--naranja);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn-ver-mas:hover {
  background-color: var(--naranja-oscuro);
  transform: scale(1.03);
}


/* seccion de publicaciones ZIS  libros, papers, revista*/
.publicaciones-zis {
  padding: 40px 20px;
  text-align: center;
}

.publicaciones-cards {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 1000px;
  margin: auto;
}

.pub-card {
  display: flex;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.pub-card:hover {
  transform: scale(1.02);
}

.pub-card img {
  width: 300px;
  height: auto;
  object-fit: cover;
}

.pub-card h3{
  color: var(--naranja);
}

.pub-content {
  padding: 20px;
  text-align: left;
  flex: 1;
}

.pub-content h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.pub-content p {
  margin-bottom: 10px;
  color: #444;
}

.pub-content a {
  color: #0066cc;
  text-decoration: none;
  font-weight: bold;
}

.pub-content a:hover {
  text-decoration: underline;
}

/* Modo oscuro */
body.modo-oscuro .pub-card {
  background: #1f1f1f;
  color: white;
}

body.modo-oscuro .pub-content p {
  color: #ccc;
}

body.modo-oscuro .pub-content a {
  color: #66b2ff;
}

/* seccion para las redes sociales Zis */
.redes-zis {
  padding: 40px 20px;
  text-align: center;
}

.redes-zis p {
  margin-bottom: 30px;
  color: var(--gris-oscuro);
  text-align: center;
}

.redes-cards {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.red-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}

.red-social img {
  max-width: 200px;
  object-fit: contain;
  margin-bottom: 10px;
  transition: filter 0.3s ease;
}

.red-social:hover {
  transform: translateY(-5px);
}

.red-social:hover img {
  filter: brightness(1.2);
}

.red-social span {
  font-weight: bold;
  font-size: 1rem;
}

/* Modo oscuro */
body.modo-oscuro .redes-zis p {
  color: #ccc;
}

body.modo-oscuro .red-social span {
  color: #f0f0f0;
}


/* seccion de grupos whatsapp zis */

.grupos-zis {
  text-align: center;
  padding: 20px 20px;
}

.grupos-zis p {
  color: var(--gris-oscuro);
  margin-bottom: 30px;
  font-size: 1rem;
  text-align: center;
}

.grupos-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.grupo-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 20px;
  width: 280px;
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.grupo-card:hover {
  transform: translateY(-5px);
}

.grupo-card h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--gris-oscuro);
}

.grupo-card .qr {
  width: 100%;
  max-width: 200px;
  margin: 0 auto 15px;
  display: block;
  border-radius: 8px;
}

.btn-grupo {
  display: inline-block;
  background-color: #25D366;
  color: white;
  padding: 10px 15px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn-grupo:hover {
  background-color: #1da851;
}

/* Modo oscuro */
body.modo-oscuro .grupo-card {
  background-color: #1f1f1f;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.02);
}

body.modo-oscuro .grupo-card h3 {
  color: #fff;
}

body.modo-oscuro .grupos-zis p{
  color: var(--gris-claro)
}

body.modo-oscuro .btn-grupo {
  background-color: #2ecc71;
}


/* Estilos en modo oscuro */
body.modo-oscuro .card {
    background: var(--gris-oscuro);
    color: var(--blanco);
}


body.modo-oscuro .card-header {
    background-color: var(--naranja-oscuro);
}

body.modo-oscuro .card p {
    color: var(--gris-claro);
}

body.modo-oscuro #inicio h2 {
    color: rgb(255, 255, 255)
}
body.modo-oscuro #inicio p {
    color: rgb(255, 255, 255)
}

body.modo-oscuro #investigadores p{
    color: var(--gris-claro);
}


/* Responsividad para cards */
@media (max-width: 768px) {
    .cards {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .cards {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.zis-footer {
  background-color: var(--naranja);
  color: var(--gris-oscuro);
  padding: 40px 20px 20px;
  font-size: 0.95rem;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col {
  flex: 1 1 250px;
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--gris-oscuro);
}

.footer-col p {
  color: var(--gris-claro) !important;
}

.footer-col a {
  color: var(--gris-claro);
  text-decoration: none;
  margin-bottom: 8px;
  display: block;
}

.footer-col a:hover{
  color: var(--naranja-oscuro);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 15px;
  font-size: 0.85rem;
}

.footer-bottom p{
  text-align: center;
}

/* Modo oscuro consistente */
body.modo-oscuro .zis-footer {
  background-color: var(--gris-oscuro);
  color: var(--gris-claro);
}

body.modo-oscuro .footer-col h4 {
  color: var(--amarillo-claro);
}

body.modo-oscuro .footer-col p{
  color: var(--naranja) !important;
}

body.modo-oscuro .footer-col a{
  color: var(--naranja);
}

body.modo-oscuro .footer-col a:hover{
  color: var(--naranja-oscuro);
}

