/* Tipografía */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800&display=swap');

/* Global Styles */
body {
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: "Poppins", serif;
    background-color: #fff;
    overflow-x: hidden;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 130px;
    background-color: #FFFFFF;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 1000;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    height: 70px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.nav-links li {
    margin-left: 24px;
}

.nav-links a {
    text-decoration: none;
    color: black;
    font-weight: 300;
    padding: 8px 16px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ce5b0c;
}

.menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-left: auto;
    position: relative;
    z-index: 1100;
}

.menu-icon .line {
    width: 28px;
    height: 3px;
    background-color: black;
    margin: 5px 0;
    transition: all 0.3s ease;
}

#menu-toggle {
    display: none;
}

@media(max-width: 768px) {

    .logo {
        height: 59px;
    }

    .navbar {
        padding: 16px 24px;
    }

    .menu-icon {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        height: 0;
        overflow: hidden;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background-color: #FFFFFF;
        text-align: center;
        transition: height 0.5s ease;
        padding: 0;
    }

    .nav-links li {
        margin: 10px 0;
        padding: 0;
        width: auto;
    }

    .nav-links a {
        display: inline-block;
        padding: 12px 0;
        text-align: center;
        color: black;
        font-size: 18px;
    }

    #menu-toggle:checked+.menu-icon+.nav-links {
        height: auto;
        padding: 20px 0;
    }

    #menu-toggle:checked+.menu-icon .line:nth-child(1) {
        transform: rotate(45deg) translate(15px, 3px);
    }

    #menu-toggle:checked+.menu-icon .line:nth-child(2) {
        transform: scale(0);
    }

    #menu-toggle:checked+.menu-icon .line:nth-child(3) {
        transform: rotate(-45deg) translate(15px, -4px);
    }
}

/***************************************************************************************/

/* ============================== */
/* SECCIÓN DE CAPACITACIONES */
/* ============================== */
.capacitaciones-section {
  background-color: #ffffff;
  text-align: center;
  padding: 80px 5%;
  margin-top: 60px; /* aumenta o reduce este valor */
}

.titulo-seccion {
  font-size: 2.5rem;
  font-weight: 500;
  color: #1b1b1b;
}

.linea {
  width: 80px;
  height: 4px;
  background-color: #ce5b0c;
  margin: 15px auto 50px;
  border-radius: 10px;
}

/* Carruseles */
.carrusel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.carrusel-contenedor {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 20px;
  padding: 10px;
  scrollbar-width: none;
}

.carrusel-contenedor::-webkit-scrollbar {
  display: none;
}

/* Tarjetas */
.tarjeta {
  flex: 0 0 calc(25% - 20px);
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tarjeta img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
}

.tarjeta h3 {
  font-size: 1.2rem;
  font-weight: 500;
  color: #1b1b1b;
  margin-top: 10px;
  margin-bottom: 5px;
  text-align: center;
}

.tarjeta:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #ce5b0c;
}

/* Flechas */
.flecha {
  background: #888;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.flecha:hover {
  background: #ce5b0c;
}

.flecha.izquierda {
  position: absolute;
  left: -50px;
}

.flecha.derecha {
  position: absolute;
  right: -50px;
}

/* ============================== */
/* SECCIÓN DE COACHING */
/* ============================== */
.coaching-section {
  background-color: #ffffff;
  text-align: center;
  padding: 100px 5%;
  margin-top: 0px; /* aumenta o reduce este valor */
}

.coaching-section .titulo-seccion {
  font-size: 2.5rem;
  font-weight: 500;
  color: #1b1b1b;
  margin-top: -90px; /* acerca el título a la sección anterior */
}

.coaching-section .linea {
  width: 80px;
  height: 4px;
  background-color: #ce5b0c;
  margin: 15px auto 50px;
  border-radius: 10px;
}

.coaching-section .carrusel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coaching-section .tarjeta:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #ce5b0c;
}


/* ============================== */
/* CONSULTORÍA INTEGRAL */
/* ============================== */
.consultoria-section {
  background-color: #ffffff;
  text-align: center;
  padding: 80px 5%;
  margin-top: -130px; /* aumenta o reduce este valor */
}

.consultoria-section .titulo-seccion {
  font-size: 2.5rem;
  font-weight: 500;
  color: #1b1b1b;
}

.consultoria-section .linea {
  width: 80px;
  height: 4px;
  background-color: #ce5b0c;
  margin: 15px auto 60px;
  border-radius: 10px;
}

/* Contenedor general */
.consultoria-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  position: relative;
  gap: 20px;
}

/* Círculo */
.consultoria-cuadrante {
  width: 420px;
  height: 420px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

/* Cuadrantes con imágenes */
.cuadro {
  position: relative;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease, filter 0.4s ease;
  cursor: pointer;
}

.cuadro:hover {
  transform: scale(1.05);
  filter: brightness(0.9);
}

.cuadro1 { background-image: url("imagenes/capitalhumano.jpg"); }
.cuadro2 { background-image: url("imagenes/marketing.jpg"); }
.cuadro3 { background-image: url("imagenes/finanzas.jpg"); }
.cuadro4 { background-image: url("imagenes/procesos.jpg"); }

/* Bloques de texto */
.consultoria-info {
  position: absolute;
  width: 220px;
  text-align: left;
}

.consultoria-info h2 {
  color: #ce5b0c;
  font-size: 1.2rem;
  margin-bottom: 5px;
  font-weight: 600;
}

.consultoria-info p {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Posiciones alrededor del círculo */
.izquierda-superior { top: 5%; left: 4%; text-align: right; }
.derecha-superior { top: 5%; right: 4%; }
.izquierda-inferior { bottom: 5%; left: 4%; text-align: right; }
.derecha-inferior { bottom: 5%; right: 4%; }

/* Responsividad */
@media (max-width: 950px) {
  .consultoria-container {
    flex-direction: column;
  }

  .consultoria-info {
    position: static;
    width: 90%;
    text-align: center;
    margin-top: 20px;
  }

  .consultoria-cuadrante {
    width: 320px;
    height: 320px;
  }
}



/* ============================== */
/* SECCIÓN DE ESTADÍSTICAS */
/* ============================== */
.estadisticas-section {
  background-color: #ce5b0c;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
  padding: 100px 5%;
  text-align: center;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
}

.estadistica {
  flex: 1 1 200px;
  min-width: 200px;
}

.estadistica h2 {
  font-size: 3.2rem;
  font-weight: 700;
  margin: 0 0 15px 0;
  line-height: 1.2;
}

.estadistica p {
  font-size: 1.2rem;
  font-weight: 400;
  margin: 0;
}

.separador {
  width: 2px;
  height: 100px;
  background-color: rgba(255, 255, 255, 0.4);
}

/* 📱 Responsivo estadísticas */
@media (max-width: 900px) {
  .estadisticas-section {
    flex-direction: column;
    gap: 30px;
    padding: 60px 10%;
  }

  .separador {
    display: none;
  }

  .estadistica h2 {
    font-size: 2.4rem;
  }

  .estadistica p {
    font-size: 1rem;
  }
}

/* ============================== */
/* CONFERENCIAS */
/* ============================== */
.conferencias-categorias {
  background-color: #ffffff;
  text-align: center;
  padding: 80px 5%;
}

.conferencias-titulo-seccion {
  font-size: 2.8rem;
  font-weight: 500;
  color: #1b1b1b;
}

.conferencias-subtitulo {
  font-size: 1.2rem;
  color: #666;
  margin-top: -30px;  /* reduce el espacio superior */
  margin-bottom: 10px;
}

.conferencias-linea {
  width: 80px;
  height: 4px;
  background-color: #ce5b0c;
  margin: 15px auto 50px;
  border-radius: 10px;
}

.conferencias-categoria {
  margin-bottom: 70px;
}

.conferencias-titulo-categoria {
  font-size: 1.8rem;
  font-weight: 400;
  color: #ce5b0c;
  margin-bottom: 25px;
}

.conferencias-tarjetas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  justify-items: center;
}

.conferencias-tarjeta {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.conferencias-tarjeta img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 15px;
  transition: transform 0.4s ease, filter 0.4s ease;
  display: block;
}

/* Overlay general */
.conferencias-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(206, 91, 12, 0.5);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 0 15px;
  border-radius: 15px;
  z-index: 2;
  box-sizing: border-box;
}

/* Hover */
.conferencias-tarjeta:hover .conferencias-overlay {
  opacity: 1;
}

.conferencias-overlay h3,
.conferencias-overlay p {
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.5s ease;
}

.conferencias-tarjeta:hover .conferencias-overlay h3,
.conferencias-tarjeta:hover .conferencias-overlay p {
  transform: translateY(0);
  opacity: 1;
}

/* Tipografía del overlay */
.conferencias-overlay h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.conferencias-overlay p {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.4;
  width: 90%;
  margin: 0 auto;
}

/* Hover en la imagen */
.conferencias-tarjeta:hover img {
  transform: scale(1.05);
  filter: brightness(65%);
}

/* 🎨 Colores por categoría */
.overlay-naranja {
  background-color: rgba(206, 90, 12, 0.562);
}

.overlay-gris {
  background-color: rgba(80, 80, 80, 0.466);
}

/* 📱 Responsivo conferencias */
@media (max-width: 768px) {
  .conferencias-overlay h3 {
    font-size: 1rem;
  }

  .conferencias-overlay p {
    font-size: 0.85rem;
  }
}

/***************************************************************************************/

/* Footer */
.footer {
  background-color: #e2e2e2;
  color: #000;
  padding: 5px 0;
  text-align: center;
}

.footer-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 40px;
  gap: 80px;
  margin-bottom: 10px;
}

.footer-section {
  flex: 1 1 220px;
  max-width: 260px;
  min-width: 220px;
  padding: 10px;
  text-align: center;
}

.footer-section img.footer-imagen {
  margin-top: 15px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.footer-section h3 {
  margin-bottom: 10px;
  font-weight: 500;
  text-align: center;
}

.footer-section p {
  margin-bottom: 0;
  text-align: center;
  line-height: 1.4;
  font-weight: 300;
}

.redes a {
  display: inline-block;
}

.footer-section .fa-brands {
  font-size: 28px;
  margin: 0 10px;
  transition: transform 0.3s ease;
  color: black;
}

.footer-section .fa-brands:hover {
  transform: scale(1.2);
  color: #ce5b0c;
}

.footer-link {
  display: block;
  color: black;
  text-decoration: none;
  margin: 6px 0;
  transition: color 0.3s ease;
  font-weight: 300;
}

.footer-link:hover {
  color: #ce5b0c;
}

/* Responsivo */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    padding: 20px;
  }

  .footer-section {
    width: 100%;
    max-width: 400px;
    text-align: center;
    margin: 0;
    padding: 5px 0;
  }

  .footer-section h3 {
    margin-top: -75px;
    margin-bottom: 6px;
  }

  .footer-section p {
    margin-bottom: 4px;
    line-height: 1.3;
  }

  .footer-section img.footer-imagen {
    width: 50%;
    max-width: 170px;
    margin: 0 auto 8px auto;
    display: block;
    margin-top: 15px;
  }

  .footer-section .fa-brands {
    margin: 0 8px;
    font-size: 26px;
  }
}

/* 📱 Ajustes finales para celulares */
@media (max-width: 480px) {

  /* Centrar carrusel */
  .carrusel {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .carrusel-contenedor {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* elimina el scroll lateral */
    gap: 25px;
    width: 100%;
  }

  /* Tarjetas centradas */
  .tarjeta {
    width: 85%;
    max-width: 320px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0 auto;
  }

  .tarjeta img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
  }

  /* Flechas laterales ocultas */
  .flecha {
    display: none;
  }

  /* Espaciado general */
  .capacitaciones-section,
  .coaching-section,
  .consultoria-section,
  .conferencias-categorias {
    padding: 60px 20px;
  }

  .titulo-seccion,
  .conferencias-titulo-seccion {
    font-size: 1.8rem;
  }

  .conferencias-subtitulo {
    font-size: 1rem;
  }

  .tarjeta h3 {
    font-size: 1rem;
  }

  .tarjeta p {
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 10px;
  }

  .footer-section h3 {
    margin-top: 0;
  }
}

/* 📱 Responsivo mejorado para CONSULTORÍA INTEGRAL */
@media (max-width: 950px) {
  .consultoria-section {
    padding: 60px 5%;
    margin-top: 0;
  }

  .consultoria-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .consultoria-cuadrante {
    width: 300px;
    height: 300px;
    margin-bottom: 30px;
  }

  .consultoria-info {
    position: static;
    width: 90%;
    text-align: center;
    margin: 10px auto;
  }

  .consultoria-info h2 {
    font-size: 1.2rem;
    color: #ce5b0c;
    margin-bottom: 6px;
  }

  .consultoria-info p {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #333;
    margin-bottom: 20px;
  }
}

/* Para pantallas muy pequeñas (celulares) */
@media (max-width: 480px) {
  .consultoria-cuadrante {
    width: 250px;
    height: 250px;
  }

  .consultoria-info h2 {
    font-size: 1.1rem;
  }

  .consultoria-info p {
    font-size: 0.9rem;
  }
}

/* 🧩 Corrección: ocultar modal por defecto */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.modal-contenido {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  text-align: center;
  position: relative;
}

.cerrar {
  position: absolute;
  top: 10px;
  right: 15px;
  color: #333;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.cerrar:hover {
  color: #ce5b0c;
}
