/* Estilos generales */
/* Estilos generales */
body {

    padding-top: 120px;
    overflow-x: hidden;
    background-color: #FDF3E7 !important;
    user-select: none;
}

/**********************************************/
/****barra navegacion redes sociales**************/


.social-navbar {
    background: linear-gradient(105deg, #6e99e6, #093c94);
    padding: 5px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1100;
    height: 80px;
    display: flex;
    justify-content: space-between;
    /* Distribuye los contenedores */
    align-items: center;
}

.social-navbar .container {
    display: flex;
}

.social-container {
    justify-content: flex-start;
    /* Los iconos de redes sociales a la izquierda */
    flex: 1;
}

.lang-container {
    justify-content: flex-end;
    /* Los idiomas a la derecha */
    flex: 1;
    display: flex;
    justify-content: flex-end;
    /* Alineación a la derecha */
}

.social-icons {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.social-icons li {
    margin: 0 15px;
}

.social-icons li a {
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid white;
    text-decoration: none;
}

/* Hover */
.social-navbar .social-icons li a:hover,
.social-navbar .social-icons li a:active {
    background-color: #E4405F;
    color: white;
}

.langPages {
    display: flex;
    align-items: center;
}

.langPages a {
    font-size: 10px;
    padding: 5px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.langPages img {
    width: 20px;
    margin-right: 5px;
}


@media (max-width: 768px) {
    .social-navbar {
        flex-direction: row;
    }

    .social-container,
    .lang-container {
        justify-content: flex-start;
        width: auto;
    }

    .social-icons {
        justify-content: flex-start;
        gap: 10px;
    }

    .social-icons li {
        margin: 0 10px;
    }

    .social-icons li a {
        font-size: 1.4rem;
        width: 50px;
        height: 50px;
        border-radius: 50%;
    }

    .langPages {
        justify-content: flex-end;
        margin-top: 0;
        
    }

    .langPages a {
        font-size: 12px;
        margin: 0 10px;
    }

    /* Ajustamos el tamaño de las imágenes de idiomas */
    .langPages img {
        width: 80px !important;
        height: auto;
        margin-right: 20px !important;
    }

    
}

/************************************/
/*************navbar**********/
/**************************/
/*******************************/

/************************************/
/*************navbar**********/
/**************************/
/*******************************/


/* Barra de navegación al lado derecho */
.navbar-collapse {
    /* Eliminar 'flex' aquí, ya que Bootstrap lo maneja bien */
    padding: 1rem;

    border-radius: 0.5rem;
}

/*************botones navbar mobil*******/

.navbar.hide {
    transform: translateY(-100%);

    transition: transform 0.3s ease-out;

}

.navbar .nav-link {
    color: #000 !important;
    border: 2px solid #000;
    border-radius: 12px;
    padding: 12px 30px !important;
    transition: border-color 0.3s ease;
    margin-right: 15px;
    background-color: #FDF3E7 !important;

}
.navbar{
    margin-top: 50px;
}

.navbar .nav-link:hover {
    border-color: #007bff;
}

/* Estilo base para el enlace activo */
.navbar .nav-link.active {
    background-color: transparent !important;
    color: #000 !important;
    border-color: #000 !important;
}

/* Enlace activo en escritorio y móvil con mismo diseño */
@media (max-width: 768px),
(min-width: 769px) {
    .navbar .nav-item .nav-link.active {
        background-color: #E6C48E !important;
        color: #000 !important;
        border: 2px solid black !important;
    }
}



/*********************************/
/* Toggler para móviles */
/****************************/

.navbar-toggler {
    background-color: black !important;
    border: 2px solid black !important;
    border-radius: 50% !important;
    padding: 8px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    width: 50px !important;
    height: 50px !important;
    margin-right: 30px !important;
    margin-top: 30px;
}

.navbar-toggler .line {
    width: 20px !important;
    height: 3px !important;
    background-color: white !important;
    margin: 4px 0 !important;
    border-radius: 4px !important;
    transition: 0.3s ease !important;
}

.navbar-toggler.collapsed .line-top {
    transform: translateY(8px) rotate(45deg) !important;
}

.navbar-toggler.collapsed .line-middle {
    opacity: 0 !important;
}

.navbar-toggler.collapsed .line-bottom {
    transform: translateY(-8px) rotate(-45deg) !important;
}


















/**********************/

/* Estilo cuando la barra de navegación se vuelve sticky */
.navbar.sticky {
    background-color: #FDF3E7 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Responsive */
/* Responsive */
/* Responsive para móviles */





@media (max-width: 768px) {
    .navbar {
        background-color: #FDF3E7 !important;
        backdrop-filter: blur(10px);
        transition: background-color 0.3s ease, box-shadow 0.3s ease;
    }

    /* Estilo cuando la navbar es sticky en móvil */
    .navbar.sticky {
        background-color: #FDF3E7 !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    /* Menú colapsable (mobile) */
    .navbar-collapse {
        padding: 1rem;
        margin-top: 1rem;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 0.5rem;
        text-align: center;
    }

    /* Items del menú en móvil */
    .navbar-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0;
        margin: 0;
    }

    .navbar-nav .nav-item {
        margin: 0.5rem 0;
    }

    /* Botones del menú */
    .navbar .nav-link {
        width: auto;
        padding: 12px 30px;
        /* Aumentamos el padding */
        border: 2px solid #000;
        border-radius: 12px;
        text-align: center;
        color: #000 !important;
        background-color: transparent;
    }

    /* Ajuste del logo en móvil */
    .navbar-brand .logo-img {
        max-height: 100px;
    }
    .logo-img{
        margin-top: 40px !important;
    }
}

/* Logo */
.logo-img {
    max-height: 150px;
    margin-left: 50px;
    margin-top: 20px;
}



/*********************/
/* Hero Section */
/*******************/
/********************/


/*********************/
/* Hero Section */
/*********************/

.hero-section {
    position: relative;
    height: 100vh;
    min-height: 500px;
    overflow: hidden;
    margin-top: 140px;
}

/* Envolver del vídeo */
.video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Estilo del vídeo */
.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
@media (max-width: 768px) {
    .hero-section {
        height: 300px !important;
        min-height: unset !important;
        /* 🔁 Esto es CLAVE para que no se imponga el mínimo */
        margin-top: 100px !important;
        padding: 0;
    }

    .video-wrapper {
        height: 100%;
        margin: 0;
        padding: 0;
    }

    .video-wrapper video {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }
}
/**********************************/
/************CARROUSEL*************************/


.carousel-container {
    max-width: 80%;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

/* Transición suave entre slides */
.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 0.7s ease-in-out;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}

.carousel-item {
    height: 75vh;
    min-height: 400px;
    position: relative;
}

.carousel-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Precarga de imágenes para evitar el flash blanco */
body::after {
    content: "";
    display: none;
    background-image:
        url('assets/img/carrusel/gremio-1.jpg'),
        url('assets/img/carrusel/soporte.avif'),
        url('assets/img/carrusel/gremio-3.jpg');
}

.carousel-caption {
    position: absolute;
    margin-bottom: 10%;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

@media (max-width: 768px) {
    .carousel-container {
        max-width: 100%;
    }

    .carousel-item {
        height: 60vh;
    }

    .carousel-caption {
        bottom: 15%;
        padding: 10px;
    }
}













/***********************************/

/************beneficios index.html******/

.beneficios {
    padding-top: 0;
    margin-top: -20px;
}

/************************************/
/*************boton arriba**********/
/**************************************/

.toupbutton {
    visibility: hidden;
    position: fixed;
    z-index: 4;
    left: 2rem;
    bottom: 40px;
    width: 40px;
    height: 40px;
    transition: all 0.5s ease;
    transform: scale(0);
    opacity: 0;
    background: #ffc451;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.toupbutton i {
    font-size: 24px;
    color: #000;
    /* Cambia el color del ícono */
}

.toupbutton.upIsActive {
    opacity: 1;
    transform: scale(1);
    visibility: visible;
    cursor: pointer;
}