/* ================================
   Variables generales
================================ */
:root {
  --azul-principal: #a0b6e9;
  --azul-hover: #526eb2;
  --azul-texto: #0444ac;
  --fondo-hover: #959bcd;
}

/* ================================
   Carrusel
================================ */
/* Contenedor relativo para que los hijos absolute funcionen bien */
.contenedor-carrusel {
  position: relative;
  height: 100vh;       
  min-height: 400px;   
  overflow: hidden;
}

/* Slides */
.carousel-item {
  position: relative;
  height: 80vh;      /* ocupa solo la mitad de la pantalla */
  min-height: 400px; /* opcional, altura mínima */
  overflow: hidden;
}

/* Imagen */
.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;        /* mantiene proporción */
  object-position: top;     /* prioriza la parte de arriba */
  display: block;
  z-index: 0; 
}

.carousel-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(20,21,21,0.4), rgba(0,0,0,0.7));
  z-index: 1;
  pointer-events: none; /* Evita que bloquee interacciones */
}

/* Texto encima del degradado */
.carousel-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 90%;
  text-align: center;
  padding: 1rem;
  }

/* Títulos  */
.carousel-caption h1 {
  font-size: clamp(1.2rem, 3vw, 2rem);;
  /*font-weight: 700;*/
  line-height: 1.5;
  /*margin: 0.3em 0;*/
}

/* Párrafos */
.carousel-caption p {
  font-size: clamp(0.9rem, 2.5vw, 1.2rem);
  line-height: 1.5;
  margin: 0.3em 0;
}

/* Indicadores más visibles */
.carousel-indicators button {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.7);
}

.carousel-indicators .active {
  background-color: #fff;
}

/* Botones prev/next centrados verticalmente */
.carousel-control-prev,
.carousel-control-next {
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
}


/* Responsive para móviles y tablets */
@media (max-width: 480px) {
.carousel-item {
  height: 250px; /* altura fija para evitar que quede muy chico */
}

.carousel-item::before {
background: linear-gradient(to bottom, rgba(20,21,21,0.5), rgba(0,0,0,0.7));
}
  
/* Caption abajo y con fondo semitransparente */
.carousel-caption {
top: auto;
bottom: 10px;
transform: translateX(-50%);
background: rgba(0,0,0,0.4);
border-radius: 0.3rem;
padding: 0.6rem;
width: 95%;
}

.carousel-caption h1 {
font-size: clamp(1rem, 4vw, 1.2rem);
line-height: 1.2;
}

.carousel-caption p {
font-size: 0.8rem;
line-height: 1.2;
}
}

/* ================================
   Navbar
================================ */
.navbar {
height: 100px; 
position: relative;
}

.navbar-brand {
  position: absolute;
  left: 15%;
  transform: translateX(-50%, -30%);
}

.img-logo {
  max-width: 180px;       /* Tamaño máximo en pantallas grandes */
  width: 100%;            /* Se adapta al contenedor */
  height: auto;           /* Mantiene proporciones */
  display: block;
  object-fit: contain;    /* Evita distorsión */
  image-rendering: -webkit-optimize-contrast; /* Mejora visual en escalas */
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    height: auto;
  }
  
  .navbar-brand {
    position: relative; /* se adapta dentro del flujo */
    transform: none;
    display: inline-block;
    margin: 0 auto;
  }

  .img-logo {
    max-width: 140px;
  }

  .navbar-brand-text {
    font-size: clamp(0.8rem, 4vw, 1.2rem);
  }
}

/* ================================
   Menús
================================ */
/* Menú nav - animación con subrayado */
.nav-hover {
  position: relative;
  display: inline-block; /* asegura el posicionamiento correcto */
  color: #222;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
  padding: 0.25rem 0; /* pequeño margen vertical */
}
/* Línea inferior animada */
.nav-hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0; /* debajo del texto */
  width: 0%;
  height: 2px;
  background-color: #0444ac; /* azul oscuro */
}
.nav-hover:hover {
  color: var(--azul-principal); /* cambia color del texto */
}
.nav-hover:hover::after {
  width: 100%; /* muestra la línea completa */
}
.nav-link.dropdown-toggle::after {
  display: none !important; /* Ocultar flecha default en dropdown */
}
/*Personalización para la flecha desplegable*/
.dropdown-arrow {
  transition: transform 0.3s ease;
}
/* Cuando el dropdown está abierto, gira la flecha */
.nav-link[aria-expanded="true"] .dropdown-arrow {
  transform: rotate(180deg);
  color: var(--azul-texto); /* Opcional: cambia el color al abrir */
}

/* Forzar que la navbar quede siempre fija arriba */
.navbar.fixed-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  transform: none !important; /* evita que algún JS la empuje hacia arriba */
  transition: none !important; /* quita animaciones raras */
  z-index: 1030; /* por encima de otros elementos (bootstrap usa 1030 para navbars) */
}
/* Responsive */
@media (max-width: 768px) {
  .nav-hover {
    display: block; /* enlaces a ancho completo */
    padding: 0.75rem 1rem;
    width: 100%;
    text-align: center;
  }
  .nav-hover::after {
    bottom: 4px; /* ajuste visual */
    left: 50%; /* centra la línea */
    transform: translateX(-50%);
  }

  .dropdown-menu {
    text-align: center; /* centra submenús */
  }

  .dropdown-arrow { /* Ajuste de flecha en mobile */
    margin-left: 8px; /* alinea a la derecha en mobile */
  }

  /* Centrar y expandir dropdown en móvil */
  .navbar-nav .dropdown-menu {
    position: static !important;   /* los dropdowns entran en el flujo */
    float: none !important;        /* elimina flotado */
    width: 100% !important;         /* ocupa todo el ancho */
    margin: 0 auto !important;      /* centra */
    text-align: center;             /* centra el contenido */
    background-color: transparent;  /* opcional, puedes mantenerlo */
    box-shadow: none;               /* opcional, elimina sombra en móvil */
  }

   /* Opcional: estilizar items del dropdown en móvil */
  .navbar-nav .dropdown-menu .dropdown-item {
    padding: 0.75rem 1rem;
  }
}

 /* Centrar el botón de contacto */
  .navbar .btn-contacto {
    display: block;
    margin: 10px auto;
    text-align: center;
  }

  /* Evitar que el menú tape el carrusel */
  .navbar-collapse {
    background-color: #fff; /* color sólido para que no se vea el carrusel detrás */
    padding: 1rem 0;
  }

/* ================================
   Resumen de la empresa
================================ */
/* Formato del texto RESUMEN DE LA EMPRESA ( Transformamos el futuro<br>desde el aula)*/
.spacer {
  height: 2px;
  margin: 60px 0; /* El tamaño del espacio */
}
.custom-align {
  display: flex;
  align-items: center;
  min-height: auto; /* contenido */
}
.left-column,
.right-column {
  display: flex;
  align-items: flex-start;
  height: 100%;
  padding: 0 0.5rem;
}
.featurette-heading {
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
  color: var(--azul-texto); /* Azul color del texto */
  text-align: center;   /* centra el contenido */
}
.lead {
  margin: 0;
  text-align: justify;
}
/* Responsive */
@media (max-width: 767.98px) {
  .left-column {
    justify-content: center;
    align-items: center;
    text-align: center;
  }
}
@media (max-width: 768px) {
  .featurette-heading {
      font-size: 1.5rem;
      line-height: 1.3;
  }
  .lead {
      font-size: 1rem;
  }
}
@media (max-width: 576px) {
  .featurette-heading {
      font-size: 1.3rem;
  }
}

/* ================================
   Fondo ancho completo
================================ */
.full-width-section {
  width: 100; /* ocupa 100% del ancho visible */
  margin: 0;
  position: relative;
}

/* ================================
   Carrusel contenedor
================================ */
/* Margen del carrusel */
.contenedor-carrusel {
  max-width: 1600px;    /* o el ancho deseado */
  margin: 0;       /* centra horizontalmente */
  padding: 0 20px;      /* coincide con el padding del body */
}

/* ================================
   Flechas carrusel
================================ */
/* Efecto a la flecha "Siguiente" y "Anterior" del carrusel */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.5); /* fondo semitransparente oscuro */
  background-size: 100% 100%;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
}

/* ================================
   Layout general
================================ */
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.section {
  background: white;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

h2 {
  color: #0072ce;    
}
    
ul {
  margin: 10px 0 10px 20px;
}

.event-item {
  background-color: #eef4fa;
  padding: 10px;
  margin: 10px 0;
  border-left: 5px solid #0072ce;
}

/* ================================
   Card con flecha lateral
================================ */

/* Bloque genérico que tendrá la flecha de puntos */
.card-arrow {
    position: relative;             /* necesario para ubicar ::after */
    z-index: 1;                     /* nuevo: coloca el contenido por encima */
    padding: 1.5rem;
    border-radius: 0.5rem;           /* rounded */
}
/* Flecha lateral */
.card-arrow::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -1.4em; /* separación relativa */
  transform: translateY(-50%);
  border-top: 0.5em solid transparent;
  border-bottom: 0.5em solid transparent;
  border-left: 0.5em solid #fff;
  border-radius: 2px;
  opacity: 0.8;
  pointer-events: none;
  z-index: 0; /* se asegura que la flecha quede detrás */
}

/* Para el link de participaciones */
.participaciones-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Opcional: asegurar que el card-arrow dentro del link mantenga altura completa */
.participaciones-link .card-arrow {
    height: 100%;
}

/* Para el card sin flecha */
.card-proximos {
    position: relative; /* necesario para el stacking context */
    z-index: 1;         /* contenido por encima */
}

/* Desactivar la flecha lateral */
.card-proximos::after {
    content: none;      /* elimina la flecha */
}

/* Responsive */
@media (max-width: 768px) {
  .card-arrow {
    padding: 1rem;
  }
  .card-arrow::after {
    right: -15px;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid #fff;
  }
}

/* Pantallas pequeñas / móviles */
@media (max-width: 480px) {
    .card-arrow {
        padding: 0.75rem;
    }
    .card-arrow::after {
        right: -0.8em;
        border-top-width: 0.35em;
        border-bottom-width: 0.35em;
        border-left-width: 0.35em;
    }
}

/*****************************************************************************************/

/*Efecto al texto y para las imagenes que están en las tarjetas*/
/* Contenedor de imagen */
.img-hover-container {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem; /* bordes suaves */
  }

  /* Imagen */
  .img-hover-container img {
    display: block;
    width: 100%;    /*** Tamaño de las imagenes ****/
    height: 350px;  /*** Tamaño de las imagenes ****/
    transition: transform 0.3s ease;
  }

  /* Efecto zoom */
  .img-hover-container:hover img {
    transform: scale(1.05);
  }

  /* Capa de texto */
  .hover-description {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--fondo-hover); /* Fondo oscuro semitransparente */
    color: black; /* Color del texto*/
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
  }

  /* Mostrar al hacer hover en escritorio */
  .img-hover-container:hover .hover-description {
    transform: translateY(0);
    opacity: 1;
  }

  /* Mostrar al tocar (móvil/tablet) */
.img-hover-container:active .hover-description,
.img-hover-container:focus .hover-description {
    transform: translateY(0);
    opacity: 1;
}
  
  /* --- RESPONSIVIDAD --- */

/* Tablet */
@media (max-width: 768px) {
    .img-hover-container img {
        height: 250px;
    }
    
/* Desactivar zoom en pantallas táctiles */
  .img-hover-container:hover img {
      transform: none;
  }
}

/* Móvil pequeño */
@media (max-width: 480px) {
    .img-hover-container img {
        height: 200px;
    }
    .hover-description {
        font-size: 0.85rem;
        padding: 0.5rem;
    }
}

/* ================================
   Slider Fondo
================================ */
/* EFECTO PARA SLIDER "PUESTOS GANADOS */
/* Slider como fondo general */
.slider-fondo {
  background: linear-gradient(135deg, #a0b6e9, #08c8f7); /* gris claro + azul claro */
  padding: 60px 20px 100px; /* espacio extra abajo para el cuadro */
  position: relative;
  width: 100%;       /* ← ocupa todo el ancho de la ventana */
  margin: 0;          /* ← elimina márgenes que podrían limitar el ancho */
}

/* Contenedor de títulos + imagen */
.contenido-superior {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 2rem;
}


/* Títulos */
.textos {
  flex: 1 1 60%;
  max-width: 620px;
}
.textos h2 {
  color: #0d47a1;
  font-size: 2.5rem;
  margin-bottom: 10px;
}
.textos h4 {
  color: #526eb2;
  font-weight: 600;
  margin-top: 0;
}

/* Imagen */
 .image-column {
  flex: 1; /* ocupa mismo ancho que textos */
  display: flex;
  align-items: center; /* centra la imagen verticalmente */
}

.image-column img.imagen-integrada {
    width: 100%;
    height: 100%;       /* mantiene proporción */
    display: block;     /* elimina espacio extra */
    object-fit: cover;  /* recorte elegante si forzás altura fija */
    border-radius: 10px; /* opcional, bordes redondeados */
}

.imagen-integrada:hover {
  transform: scale(1.05); /* efecto sutil al pasar el mouse */
}

/* ===== CUADRO DE PUESTOS ===== */
.cuadro-puestos {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
  max-width: 100%;
}

/* ===== TABS NAV ===== */
.et_pb_tabs_controls {
  display: flex;
  flex-wrap: wrap;
  background-color: #0c53a9;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
}
.et_pb_tabs_controls li {
  list-style: none;
  border-right: 2px solid #fff;
}
.et_pb_tabs_controls li:last-child {
  border-right: none;
}
.et_pb_tabs_controls li a {
  display: block;
  padding: 15px 12px;
  color: #fff !important;
  background-color: #0444ac;
  font-weight: 600;
  text-decoration: none !important;  
  transition: 0.3s;
}
.et_pb_tabs_controls li a.active {
  background-color: #888;
}

/* TABS CONTENT */
.et_pb_all_tabs {
  position: relative;
  min-height: 200px;
}

.et_pb_tab_content {
  display: none;
  padding: 20px 0 0;
}
.et_pb_tab_content.active {
  display: block;
   padding: 20px 24px; /* ← agrega espacio interno en los lados */
}
.et_pb_tab_content p strong {
  font-size: 1.1rem;
  display: block;
  margin-bottom: 10px;
  color: #000;
}
.et_pb_tab_content ul li {
  color: #222;
  margin-bottom: 8px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .contenido-superior {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .textos,
  .image-column {
    flex: 1 1 100%;
    max-width: 100%;
    text-align: center;
  }
  .et_pb_tabs_controls li a {
    padding: 12px 8px;
    font-size: 0.9rem;
  }
}

@media (max-width: 600px) {
  .textos h2 {
    font-size: 2rem;
  }
  .textos h4 {
    font-size: 1rem;
  }
  .et_pb_tabs_controls {
    flex-direction: column;
  }
  .et_pb_tabs_controls li {
    border-right: none;
    border-bottom: 1px solid #fff;
  }
  .et_pb_tabs_controls li:last-child {
    border-bottom: none;
  }
  .et_pb_tab_content.active {
    padding: 16px;
  }
}

/*******************************************************************************************************/
  
  /* Iconos redes sociales */
  .social-icon {
  display: inline-block;
  margin-right: 0.5rem; /* espaciado consistente */
}

.social-icon i {
  font-size: 1.3rem;
  color: #0d6efd;
  transition: color 0.3s ease;
}

.social-icon:hover i {
  color: #084298;
}

/**************************************************************************************/
/* Sección redondeada */
.rounded-section {
    border-radius: 4cap; /* ajusta a tu gusto */
}

/**************************************************************************************/
/* EFECTO DE PARTICIPACIONES */
/* ---------- TABS: Estilo general ---------- */
.et_pb_tabs_controls {
  display: flex;
  flex-wrap: nowrap;
  border-bottom: 2px solid #ddd;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
}
.et_pb_tabs_controls::-webkit-scrollbar { display: none; }

.et_pb_tabs_controls li {
  list-style: none;
}

.et_pb_tabs_controls li a {
  display: block;
  padding: 10px 20px;
  color: #555;
  background: transparent;
  transition: all 0.3s ease;
  white-space: nowrap;
  font-weight: 600;
}
.et_pb_tabs_controls li a.active {
  position: relative;
  color: #005baa;
}
.et_pb_tabs_controls li a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: #005baa;
}

/* ---------- Contenido de tabs ---------- */
.et_pb_all_tabs {
  position: relative;
  min-height: 200px;
}
.et_pb_tab_content {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  transition: opacity 0.5s ease;
}
.et_pb_tab_content.active {
  opacity: 1;
  position: relative;
}

/****************************************************************************************/
/********************VALIDACIONES DE ENLACES EN LOS SLIDERS ****************/
#participaciones-card,
#participaciones-card * {
    cursor: pointer !important;
}

/* Fuerza cursor y pointer-events */
.participaciones-link,
.participaciones-link * {
  cursor: pointer !important;
  pointer-events: auto !important;
}

/* Asegura que el <a> cubra toda la tarjeta */
.participaciones-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 9999;
}


/****************** WHATSAPP***************/
.whatsapp-btn {
  background: linear-gradient(135deg, #25D366, #128C7E);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.whatsapp-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(18, 140, 126, 0.4);
  text-decoration: none;
}

/* efecto que le hace al resumen de la empresa en pantalla moviles*/
@media (max-width: 767.98px) {
  .left-column {
    justify-content: center;     /* centra verticalmente el contenido dentro de la columna */
    align-items: center;         /* centra horizontalmente */
    text-align: center;          /* centra el texto */
  }
}

/* RESUMEN EMPRESA*/
/* Responsividad extra */
@media (max-width: 768px) {
    .featurette-heading {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .lead {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .featurette-heading {
        font-size: 1.3rem;
    }
}

/* FUNDADORES */
.fundador-img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
}

/* Texto justificado */
.fundadores-section p {
  text-align: justify;
}

/* Responsividad */
@media (max-width: 768px) {
  .fundador-img-wrapper {
    width: 150px;
    height: 150px;
  }
  .fundador-img {
    width: 130px;
    height: 130px;
  }
}
/* color de imagen que esta en la section dividida con el de mision, mision y valores*/
.bg-steam {
    background-color: #5aa5f0;
}