/* VARIABLES */
:root {
  --c-dark:#242e49;
  --c-brand:#1c3463 ;
  --c-brand-light:#1c3463;
  --c-brand-rgb: 78, 87, 212;
  --c-body: #0b0f52;
  --font-base: "Inter", sans-serif;
  --box-shadow: 0px 15px 25px rgba(0, 0, 0, 0.08);
  --transition: all 0.5s ease;
}

/* RESET & HELPERS */
body {
  font-size: 20px;
  font-family: var(--font-base);
  line-height: 1.7;
  color: var(--c-body);
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-weight: 600;
  color: var(--c-dark);
}

a {
  text-decoration: none;
  color: var(--c-brand);
  transition: var(--transition);
}

a:hover {
  color: var(--c-brand-light);
}

img {
  max-width: 100%;
  height: auto;
}

.section-padding {
  padding-top: 100px;
  padding-bottom: 35px;
}

.theme-shadow {
  box-shadow: var(--box-shadow);
}

/* NAVBAR */
.navbar {
  transition: background-color 0.4s ease-in-out;
}

.navbar {
  box-shadow: var(--box-shadow);
  font-size: 20px;
  
}

.navbar-brand img {
  width: 130px;
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--c-dark);
  position: relative;
  display: inline-block;
  padding-bottom: 5px;
  transition: color 0.3s ease-in-out; /* Suaviza la transición de color */
}

.navbar-nav .nav-item:nth-child(1) .nav-link:hover { color: #00FF00; } /* Dorado */
.navbar-nav .nav-item:nth-child(2) .nav-link:hover { color: #1500ff; } /* Naranja */
.navbar-nav .nav-item:nth-child(3) .nav-link:hover { color: #FFA500; } /* Verde */
.navbar-nav .nav-item:nth-child(4) .nav-link:hover { color: #B22222; } /* Azul Claro */
.navbar-nav .nav-item:nth-child(5) .nav-link:hover { color: #1437ff; } /* Rosa */


.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px; /* Grosor de la línea */
  display: block;
  margin-top: 5px;
  right: 0;
  background: var(--c-dark); /* Color de la línea */
  transition: width 0.4s ease;
  -webkit-transition: width 0.4s ease;
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
  left: 0;
  background: var(--c-dark);
}

.navbar-nav .nav-link.active {
  color: var(--c-brand);
}

/* BTN */
.btn {
  font-weight: 600;
  font-size: 20px;
  text-transform: uppercase;
  border-radius: 8px; /* Ajusta el valor, debe llevar 'px' */
  padding: 10px 20px;
  transition: all 0.3s ease-in-out; /* Suaviza los cambios */
  box-shadow: 0 4px 8px rgba(27, 60, 179, 0.6); /* Agrega una sombra inicial */
}

.btn-brand {
  background-color: var(--c-brand);
  border: 2px solid var(--c-brand);
  color: rgb(247, 248, 250);
}

.btn-brand:hover {
  background-color: var(--c-brand-light);
  border-color: var(--c-brand-light);
  color: #FFA500;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* Aumenta la sombra en hover */
}

.btn-brand:active {
  transform: scale(0.95); /* Simula el efecto de presión al hacer clic */
}

/* Sección 1: Hero */

/*video:hover {
  filter: hue-rotate(80deg) saturate(2) brightness(1);
}
*/

#hero {
  position: relative;
  padding: 0 20px;
  min-height: 100vh; /* Asegura la altura mínima */
  display: flex;
  align-items: center;
  text-align: left;
  overflow: hidden; /* Evita que el video sobresalga */
}


#hero video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: hue-rotate(400deg) saturate(2) brightness(1);
  transition: filter 0.5s ease-in-out;
}


/*
#hero video:hover {
  filter: hue-rotate(400deg) saturate(-6) brightness(-6);
}
*/

#hero h1, #hero h5, #hero a {
  position: relative;
  z-index: 1; /* Asegura que el contenido esté por encima del video */
}

#hero {
  position: relative;
  padding: 0 20px;
}

#hero .container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 0; /* Eliminar el padding a la izquierda */
}

#hero .row {
  display: flex;
  align-items: flex-start; /* Alinear el contenido al inicio en el eje vertical */
}

#hero h1,
#hero h5,
#hero div {
  text-align: left; /* Alinear el texto a la izquierda */
}

#hero .btn {
  margin-top: 10px;
  margin-left: 0; /* Eliminar el margen a la izquierda */
}


/* Sección 3: Socios Estrategicos */
.section-title {
  margin-top: 0px;
  margin-bottom: 0px; /* Reducir el margen inferior */
}

.section-title .line {
  width: 50px; /* Reducir el ancho de la línea */
  height: 3px; /* Reducir la altura de la línea */
  background-color: var(--c-brand);
  margin: 12px auto 18px auto; /* Reducir el margen */
}

.section-title p {
  text-align: justify;
  justify-content: space-between;
  max-width: 900px; /* Reducir el ancho máximo del texto */
  margin-left: auto;
  margin-right: auto;
  font-size: 0.9em;
  z-index: 1000;
  position: relative; /* Reducir el tamaño de la fuente */
}

.circle-menu {
  position: relative;
  width: 200px; /* Tamaño reducido */
  height: 200px; /* Tamaño reducido */
  border-radius: 50%;
  background: url(/assets/socios/centro.jpeg) no-repeat center center,
    linear-gradient(135deg, #ffffff, #ffffff);
  background-size: 100%;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease,
    background-position 0.3s ease;
  z-index: 1; /* Asegurar que esté sobre la superposición */
  box-shadow: 0 0 10px rgba(8, 22, 128, 0.648);
  border: 3px solid;
  border-image: linear-gradient(to bottom right, #fff, rgb(255, 255, 255)) 1;
  right: -210px; /* Ajusta este valor para mover el círculo más a la derecha */
  border: none;
}

/* Transición */
/* Contenedor del popup */
.popup-container {
  display: none; /* Oculto por defecto */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

/* Contenido del popup */
.popup-content {
  position: relative;
}

/*Efectos del circle-menu*/
.transition-content {
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.transition-right {
  opacity: 0;
  transform: scale(0.8) rotate(10deg);
}

.transition-reset {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

#section-image {
  margin-top: 10px;
  transition: opacity 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.item {
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  opacity: 0.8;
  transform: scale(1) rotate(0deg);
}

.item:hover {
  opacity: 1;
  transform: scale(1.1) rotate(360deg);
}

/* Nuevos */

.section-text {
  transition: color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.9;
}

.section-text:hover {
  transform: scale(1.00);
  opacity: 1;
}

.centered-image {
    display: flex;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}


.circle-menu:hover {
  box-shadow: 0 0 20px rgba(15, 9, 196, 0.783);
  background-size: 105%;
  transition: 0.6s ease;
}

.circle-menu::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px; /* Tamaño reducido */
  height: 200px; /* Tamaño reducido */
  border-radius: 50%;
  border: 2px solid rgba(18, 59, 122, 0.5);
  transform: translate(-50%, -50%);
  animation: pulsate 2s infinite;
}
@keyframes pulsate {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.5;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}
.circle-menu .item {
  position: absolute;
  width: 100px; /* Tamaño reducido */
  height: 100px; /* Tamaño reducido */
  border-radius: 50%;
  background-size: cover;
  object-fit: cover; /* Mantener calidad de la imagen */
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease; /* Quitar width y height de la transición */
  box-shadow: 0 0 10px rgba(3, 6, 185, 0.881);
}

.circle-menu .item:hover {
  transform: scale(1.1); /* Escalar ligeramente la imagen */
  box-shadow: 0 0 20px rgba(5, 26, 160, 0.838);
  z-index: 2; /* Asegurarse de que la imagen sobresalga */
  opacity: 1; /* Asegurarse de que la imagen sea visible */
}

.circle-menu:hover .item {
  opacity: 1;
}

.circle-menu .item::before {
  content: "";
  position: absolute;
  width: 2px;
  background-color: rgb(12, 73, 154);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.circle-menu:hover .item::before {
  opacity: 1;
}
.item-1 {
  background: url(/assets/socios/socio_1.png);
  top: -130px;
  left: 60px;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.item-2 {
  background: url(/assets/socios/Theo\ Manufacturing.png);
  top: -20px;
  left: -120px;
  transform: translateX(20px);
  transition: transform 0.3s ease;
}
.item-3 {
  background: url(/assets/socios/socio_3.png);
  top: -20px;
  right: -120px;
  transform: translateX(-20px);
  transition: transform 0.3s ease;
}
.item-4 {
  background: url(/assets/socios/socio_4.1.png);
  bottom: -80px;
  right: 200px;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}
.item-5 {
  background: url(/assets/socios/socio_5.1.png);
  bottom: -80px;
  right: -80px;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}
.circle-menu:hover .item-1 {
  transform: translateY(0);
}
.circle-menu:hover .item-2 {
  transform: translateX(0);
}
.circle-menu:hover .item-3 {
  transform: translateX(0);
}
.circle-menu:hover .item-4 {
  transform: translateY(0);
}
.circle-menu:hover .item-5 {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .col-md-6 {
     width: 100%;
     margin-bottom: 20px;
  }

  .circle-menu {
     display: flex;
     flex-wrap: wrap;
     justify-content: center;
     left: 130px;
     margin-top: 100px;
     margin-bottom: 50px;
  }

  #section-title {
     font-size: 24px;
  }

  #section-text {
     font-size: 14px;
  }
}

/* ICONBOX */
.iconbox {
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--c-brand-rgb), 0.1);
  color: var(--c-brand);
  font-size: 34px;
  flex: none;
}

.centered-image {
  margin-top: 0px;
  position: relative;
  width: 100%;
}

.map-container {
  position: relative;
}

.marker {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: red;
  border-radius: 50%;
}

.marker-text {
  position: absolute;
  top: -20px; /* Ajusta la posición según sea necesario */
  left: 200%;
  transform: translateX(-50%);
  color: black; /* Ajusta el color del texto según sea necesario */
  font-size: 15px; /* Ajusta el tamaño del texto según sea necesario */
  white-space: nowrap;
}

.marker {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: rgb(11, 5, 116);
  border-radius: 50%;
}

#marker-guatemala {
  top: 30%;
  right: 85%;
}

#marker-honduras {
  top: 35%;
  left: 35%;
}

#marker-el-salvador {
  top: 42%;
  left: 20%;
}


#flags h1 {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem


}

#flags {  
  display: flex;
  flex-wrap: wrap; 
  justify-content: center;
  gap: 1rem;
  margin: 20px 0;
}

.flag {
  width: 40px; /* Ajusta el tamaño según sea necesario */
  margin: 10px 0; /* Espaciado entre banderas */
  position: relative;
  transform-style: preserve-3d; /* Asegura que el 3D respete el contenido */
  background: transparent; /* Elimina posibles fondos por defecto */
  clip-path: circle(50%); /* Recorta visualmente la imagen a un círculo perfecto */
  transform: rotateY(15deg); /* Aplica rotación 3D */
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5); /* Sombra para profundidad */
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.flag:hover {
  transform: rotateY(0deg) scale(1.1); /* Efecto suave al interactuar */
  box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.7); /* Sombra más intensa */
}

/* Asegurar que las imágenes sean completamente responsivas */
img.flag, .centered-image {
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  #flags {
    flex-direction: column; /* apila banderas */
    align-items: flex-end;
    text-align: right;
    margin-top: 50px;
  }

  #flags h1 {
    font-size: 0.9rem;
  }

  .flag {
    width: 35px;
  }

  .centered-image {
    margin-top: 0; /* evita que se esconda en móviles */
  }

  .marker-text {
    font-size: 12px;
    left: 150%; /* menos desplazamiento en pantallas pequeñas */
  }
}


/* Sección 4: Servicios */
.service {
  position: relative;
  overflow: hidden;
  z-index: 2;
  border-radius: 15px;
}

.service::after {
  content: "";
  width: 40px;
  height: 40px;
  background: rgba(var(--c-brand-rgb), 0.2);
  position: absolute;
  bottom: 0;
  right: 0;
  transition: var(--transition);
}

.service:hover::after {
  width: 100%;
  height: 100%;
  background: var(--c-brand);
  z-index: -1;
}

.service:hover h5,
.service:hover p {
  color: white;
}

.service:hover .iconbox {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  transform: scale(1.2); /* Hace zoom al pasar el cursor*/
  transition: transform 0.3s ease; /*complemento del transform*/
}

.service {
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s ease;
}
.service:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Btn: Contacto */
#counter {
  background: linear-gradient(
      rgba(var(--c-brand-rgb), 0.8),
      rgba(var(--c-brand-rgb), 0.8)
    ),
    url(../images/counter.jpg);
  background-position: center;
  background-size: cover;
}

.invalid-feedback {
  display: none;
  color: red;
  margin-top: 5px;
}

/* REVIEW */
.review small {
  font-weight: 600;
  text-transform: uppercase;
  color: var(--c-brand);
}

.review-head {
  position: relative;
}

.review-head::after {
  content: "";
  width: 28px;
  height: 28px;
  position: absolute;
  bottom: -14px;
  background-color: white;
  transform: rotate(45deg);
}

/* TEAM */
.team-member-content {
  background-color: var(--c-brand);
  position: absolute;
  bottom: -24px;
  left: 50%;
  width: calc(100% - 50px);
  transform: translateX(-50%);
  padding: 24px;
  transition: var(--transition);
  opacity: 0;
}

.team-member:hover .team-member-content {
  opacity: 1;
  bottom: 24px;
}

/* CONTACT */
#contact {
  position: relative;
  z-index: 2;
}

#contact::after {
  content: "";
  width: 100%;
  height: 70%;
  background: linear-gradient(
      rgba(var(--c-brand-rgb), 0.8),
      rgba(var(--c-brand-rgb), 0.8)
    ),
    url(../images/counter.jpg);
  background-position: center;
  background-size: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}

#contact .form-control {
  border-radius: 0;
}

#contact .form-control:focus {
  box-shadow: none;
  border-color: var(--c-brand);
}

.volver-btn {
  position: absolute;
  top: 20px;
  left: 25px;
  border-radius: 5px;
  padding: 7px 15px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.volver-btn:hover {
  background-color: #1437ff;
  color: #fff;
}


/* Título y descripción */
.section-title h1 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  color: #333;
}

.section-title p {
  color: #555;
  text-align: center;
  margin-top: 10px;
  max-width: 700px;
  margin: 0 auto;
}

.section-title .line {
  width: 80px;
  height: 4px;
  background-color: #1c3463;
  margin: 15px auto;
  border-radius: 2px;
}

/* Tarjeta de evento */
.team-member {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: center;
  padding: 16px;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}

.team-member:hover {
  transform: translateY(-6px); /* elevación sutil */
  box-shadow: 0 10px 24px rgba(0,0,0,0.15);
}

.team-member h5 {
  margin-top: 14px;
  font-size: 1.25rem;
  color: #1c3463;
}

.team-member p {
  color: #666;
  font-size: 1rem;
  margin-top: 10px;
}

/* CTA como botón consistente */
.team-member a {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 18px;
  font-size: 0.95rem;
  color: #fff;
  background-color: #182a83;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.team-member a:hover {
  background-color: #0056b3;
  box-shadow: 0 6px 18px rgba(0, 86, 179, 0.35);
  transform: translateY(-2px);
}

/* Imagen responsiva con recorte uniforme */
.image-zoom-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 16/9; /* Mantiene proporción uniforme */
}

.image-zoom-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Recorte elegante */
  transition: transform .6s ease;
}

.image-zoom:hover img {
  transform: scale(1.06);
}

/* Overlay suave para legibilidad en imágenes oscuras */
.image-zoom-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.35), rgba(0,0,0,0) 60%);
  pointer-events: none;
}

/* Chips/etiquetas de metadatos */
.event-meta {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

.event-meta .badge {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: .8rem;
}

/* Responsividad*/
@media (max-width: 576px) {
  .team-member { padding: 12px; }
  .team-member h5 { font-size: 1.1rem; }
  .team-member p { font-size: .95rem; }
}


/*Categorias adentro de los eventos*/
.badge-orange-location {
  background-color: #FFA500;
  color: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: .8rem;
}

.badge-green-location {
  background-color: #32d9c2;
  color: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: .8rem;
}

.badge-genk-location {
  background-color: #BDD82C;
  color: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: .8rem;
}

/* FOOTER */
/* Contenedor principal */
.site-footer {
  background-color: #fff;
  color: rgb(15, 28, 92);
  line-height: 1.6;
}

/* Footer top */
.site-footer .footer-top {
  border-bottom: 3px solid rgba(179, 51, 51, 0.65);
  padding: 40px 0;
}

/* Cada columna en vertical */
.site-footer .footer-top .col {
  display: flex;
  flex-direction: column;   /* fuerza título arriba y lista debajo */
  align-items: flex-start;  /* alinea a la izquierda */
}

/* Títulos */
.site-footer h5 {
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: rgb(15, 28, 92);
  text-decoration: underline;
}

/* Listas */
.site-footer .footer-top ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  text-align: left;
}

.site-footer .footer-top li {
  margin-bottom: 0.5rem;
}

/* Logo */
.site-footer img {
  display: block;
  max-width: 200px;
  height: auto;
  margin-top: 16px;
}

/* Enlaces generales */
.site-footer a {
  color: rgb(15, 28, 92);
  text-decoration: none;
  transition: color 0.25s ease-in-out;
}

/* Subrayado animado en enlaces de listas */
.site-footer .footer-top ul li a {
  position: relative;
  display: inline-block;
}

.site-footer .footer-top ul li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: var(--c-brand);
  transition: width 0.28s ease-in-out;
}

.site-footer .footer-top ul li a:hover::after,
.site-footer .footer-top ul li a:focus::after {
  width: 100%;
}

/* Social icons */
.site-footer .social-icons {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-left: 28px;
}

.site-footer .footer-top .col:last-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 50px;
}

.site-footer .social-icons a {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(15, 28, 92, 0.05);
  border-radius: 50%;
  color: inherit;
  transition: background-color 0.2s, color 0.2s, transform 0.12s;
}

.site-footer .social-icons a:hover,
.site-footer .social-icons a:focus {
  background-color: var(--c-brand);
  color: #fff;
  transform: translateY(-2px);
  outline: none;
}

/* Accesibilidad: focus visible */
.site-footer a:focus-visible {
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.25);
  border-radius: 6px;
}

/* Footer bottom */
.site-footer .footer-bottom {
  padding: 12px 0;
  font-size: 0.9rem;
  color: rgba(15, 28, 92, 0.8);
}

.site-footer .footer-bottom a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease-in-out;
}

.site-footer .footer-bottom a:hover {
  color: var(--c-brand);
}

/* Responsividad */
@media (max-width: 576px) {
  .site-footer .footer-top {
    padding: 24px 0;
  }
  .site-footer .social-icons a {
    width: 40px;
    height: 40px;
  }
}