/*
 Theme Name:   Page Congreso
 Description:  Tema hijo para el sitio Page Congreso basado en Hello Elementor
 Author:       Sistemas
 Template:     hello-elementor
 Version:      1.0.1
*/


/* Estado inicial del Header (Transparente o color base) */
.mi-header-personalizado {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    transition: all 0.2s ease-in-out; /* Animación suave */
    background-color: transparent; /* O el color que tengas */
}

/* Estado cuando el usuario hace Scroll */
.header-scrolled {
    background-color: #ffffff !important; /* El color de fondo al bajar */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Sombra para dar profundidad */
    padding-top: 1px !important;
    padding-bottom: 1px !important;
}

/* Opcional: Cambiar el color del menú al hacer scroll */
.header-scrolled .elementskit-navbar-nav li a {
    color: #333333 !important;
}


/* Clase global para todas las secciones con anclaje */
.seccion-ancla {
    scroll-margin-top: 120px; /* Ajusta según el alto de tu menú sticky */
}

/* Opcional: Si quieres que el scroll sea suave en toda la web */
html {
    scroll-behavior: smooth;
}

/*HITOS*/


/*---- -----*/
.circle-hito{
	height:100px;
}

.card-hito{
	max-height: 180px !important;
	min-height: 180px !important;
}

/* --- CRONOGRAMA DINÁMICO --- */
.cronograma-congreso .elementor-container {
    display: flex;
    flex-wrap: wrap;
    position: relative;
}

/* Estilo Base del Círculo (Hito) */
.hito-fecha .elementor-icon {
    width: 80px !important;
    height: 80px !important;
    line-height: 80px !important;
    background-color: #ccc; 
    border-radius: 50%;
    color: white;
    font-weight: bold;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

/* --- VISTA ESCRITORIO (Horizontal) --- */
@media (min-width: 1025px) {
    .hito-fecha {
        flex: 1;
        text-align: center;
    }
    .hito-fecha:not(:last-child)::after {
		box-sizing: border-box;
        content: '';
        position: absolute;
        top: 40px; 
        left: calc(50% + 40px);
        width: calc(100% - 80px);
        height: 4px;
        background-color: #ccc;
        z-index: 1;
		transform: translateY(-50%);
    }
}

/* --- VISTA TABLET Y MÓVIL (Vertical) --- */
@media (max-width: 1024px) {
    .cronograma-congreso .elementor-container {
        flex-direction: column;
        padding-left: 20px;
    }

    .hito-fecha {
        display: flex; /* Alinea círculo e info en fila */
        align-items: flex-start;
        text-align: left !important;
        width: 100%;
        position: relative;
        margin-bottom: 50px;
    }

    /* Ajuste del contenedor de texto */
    .hito-fecha .elementor-widget-text-editor, 
    .hito-fecha .elementor-icon-box-content {
        margin-left: 25px; /* Espacio entre círculo e info */
        padding-top: 15px;
    }

    .hito-fecha .elementor-icon {
        margin: 0 !important; /* Quita el centrado para pegarlo a la izq */
        flex-shrink: 0;
    }

    /* Línea Vertical en móvil */
    .hito-fecha:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 80px; /* Empieza debajo del círculo */
        left: 38px; /* Centrado respecto al círculo de 80px */
        width: 4px;
        height: calc(100% - 30px);
        background-color: #ccc;
        z-index: 1;
    }
}

/* --- ESTADOS ACTIVOS (JS) --- */
.hito-completado .elementor-icon {
    background-color: #28a745 !important; /* Verde o el color de tu marca */
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.4);
}

.hito-completado::after {
    background-color: #28a745 !important;
}

/*END HITOS*/

