:root {
    --color-principal: #DA00FF;
    --color-secundario: #eba6f7;
    --color-terciario: #025E73;
    --color-rojo: #D71256;
    --color-rojo-hover: #8F0D3C;
    --bs-nav-link-color: #000000;
    --icon-plus-circle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='currentColor' viewBox='0 0 16 16'%3E%3Cpath d='M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16'/%3E%3Cpath d='M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4'/%3E%3C/svg%3E");
    --icon-dash-circle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16'/%3E%3Cpath d='M4 8a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7A.5.5 0 0 1 4 8'/%3E%3C/svg%3E");
}

a.nav-link.link {
    color: white;
}

a:visited{
    color: white;
}

a.nav-link.link:hover {
    color: var(--color-principal);
}

.dropdown-menu>li>a.nav-link.link {
    color: #000000;
}

.dropdown-menu>li>a.nav-link.link:hover {
    color: var(--color-principal);
}

.dropdown-toggle::after {
    display: none;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link.show {
    color: white;
}

body {
    font-family: "Poppins", sans-serif;
    overflow-x: hidden;
    margin-bottom: 0 !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255, 255, 255, 1%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.row {
    margin-left: 0;
}

img,
iframe,
div {
    max-width: 100%;
    box-sizing: border-box;
}

h1 {
    font-family: "Poppins", sans-serif;
    font-size: 35px;
    font-weight: 800;
    font-style: normal;
}

.page-404 {
    height: 50vh;
}

section.error-404.not-found {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

p {
    font-size: 13px;
}

p.text-center {
    font-size: 18px;
}


.menu-header {
    background-color: black;
}

li a {
    font-family: "Poppins", sans-serif;
    color: white;
}

li a:hover {
    font-family: "Poppins", sans-serif;
    color: var(--color-principal);
}

.boton-header {
    border-radius: 0;
    background-color: var(--color-principal);
    border: none;
}

.boton-header:hover {
    border-radius: 0;
    background-color: var(--color-secundario);
    border: none;
    color: white;
}

.boton-lic {
    border-radius: 0;
    background-color: var(--color-rojo);
    border: none;
    margin-top: 15px;
}

.boton-lic:hover {
    border-radius: 0;
    background-color: var(--color-rojo-hover);
    border: none;
    margin-top: 15px;
}

.boton-footer {
    border-radius: 0;
    background-color: var(--color-principal);
    width: 250px;
    border: none;
}

a.btn-footer {
    padding: 0.5rem;
    border-radius: 0px;
    height: 40px;
}

.boton-footer:hover {
    border-radius: 0;
    width: 250px;
    background-color: var(--color-secundario);
    border: none;
}


.boton {
    display: flex;
    height: 40px;
    border: none;
}

.boton-boton:hover {
    border-radius: 0;
    background-color: var(--color-secundario);
    border: none;
}

.boton-video {
    border-radius: 0;
    background-color: var(--color-principal);
    border: none;
}

.boton-video:hover {
    border-radius: 0;
    background-color: var(--color-secundario);
    border: none;
}

.hero-header {
    position: relative;
    /* Necesario para el overlay y el contenido */
    overflow: hidden;
    /* Evita desbordamientos */
    height: 600px;
}

.carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: end;
}


.carousel-item {
    height: 600px;
    /* Asegura que las imágenes ocupen todo el contenedor */
    background-size: cover;
    background-position: center;
}

.hero-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Oscurece ligeramente el fondo */
    z-index: 1;
}

.contenido-hero {
    position: relative;
    z-index: 2;
    /* Asegura que el contenido esté encima del overlay */
    padding: 2rem 1rem;
    margin-left: 1rem;
    margin-top: 4rem;
    text-align: center;
}

.contenido-hero h1,
.contenido-hero p {
    text-align: center;
    font-weight: 600;
    color: white;
    width: 90%;
    margin-left: 5rem;
}

@media (max-width: 768px) {
    .contenido-hero h1 {
        margin-left: 0rem;
        font-size: 20px;
    }
}

/* Ajustes responsivos */
@media (min-width: 768px) {
    .contenido-hero {
        width: 90rem;
        margin: 20px 0;
        /* Ajuste para tabletas */
    }
}

@media (min-width: 992px) {
    .texto-fondo h2 {
        font-size: 15rem;
        /* Tamaño mayor para pantallas grandes */
    }
}

.servicios {
    margin-bottom: 20px;
    width: 100%;
    position: relative;
    margin-top: -2rem;
    z-index: 10;
    display: flex;
    justify-content: center;
}

.bloque {
    padding: 3rem 1rem 2.5rem 1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    background-color: white;
    /* Fuerza a eliminar cualquier fondo previo */
}

.bloque::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--hover-bg);
    background-size: cover;
    background-position: center;
    z-index: -2;
    /* Capa detrás del overlay */
    opacity: 0;
    /* Inicialmente invisible */
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: scale(1);
}

/* Overlay oscuro (inicialmente transparente) */
.bloque::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Ajusta la opacidad (0.5 = 50%) */
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Efectos al hacer hover */
.bloque:hover::before {
    opacity: 1;
    transform: scale(1.1);
    /* Zoom */
}

.bloque:hover::after {
    opacity: 1;
    /* Muestra el overlay oscuro */
}

.bloque h3 {
    font-size: 20px;
    font-weight: 600;
}

.bloque:hover h3 {
    font-size: 20px;
    color: white;
}

.parent {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    width: 70rem;
}

hr:hover {
    background-color: white;
}

hr.linea-dec {
    width: 50px;
    height: 4px;
    border: 0;
}

hr.linea-dec:hover {
    color: white;
    width: 50px;
    height: 4px;
    border: 0;
}

p {
    font-size: 16px;
}

.text-servicio {
    margin: 2rem 0;
}


.servicio1 {
    grid-area: 1 / 1 / 2 / 2;
}

.servicio2 {
    grid-area: 1 / 2 / 2 / 3;
}

.servicio3 {
    grid-area: 1 / 3 / 2 / 4;
}

.servicio4 {
    grid-area: 1 / 4 / 2 / 5;
}

.servicio5 {
    grid-area: 2 / 1 / 3 / 2;
}

.servicio6 {
    grid-area: 2 / 2 / 3 / 3;
}

.servicio7 {
    grid-area: 2 / 3 / 3 / 4;
}

.servicio8 {
    grid-area: 2 / 4 / 3 / 5;
}




@media (max-width: 768px) {
    .parent {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columnas en pantallas pequeñas */
        grid-template-rows: repeat(4, 1fr);
        /* 4 filas para acomodar los elementos */
    }


    /* Eliminar restricciones de área para reordenar automáticamente */
    .servicio1,
    .servicio2,
    .servicio3,
    .servicio4,
    .servicio5,
    .servicio6,
    .servicio7,
    .servicio8 {
        grid-area: auto;
        /* Permitir reflujo automático */
    }
}

.licencias {
    padding: 3rem;
    background: #833AB4;
    background: linear-gradient(90deg, rgba(131, 58, 180, 1) 0%, rgba(253, 29, 29, 1) 50%, rgba(252, 176, 69, 1) 100%);
}

.parent-lic {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: 1fr;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
}

.parent-lic {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

.img-licencia-home {
    display: inline-block;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.img-licencia-home:hover {
    transform: scale(1.1);
}

.img-lic {
    width: 170px;
    height: auto;
}

.link-lic {
    border-radius: 0;
    margin: 3px;
}

.link-lic:hover {
    border-radius: 0;
    margin: 3px;
}



@media (max-width: 768px) {
    .parent-lic {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        grid-column-gap: 0px;
        grid-row-gap: 0px;
    }
}

.img-licencia .post-thumbnail {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f3f3f3;
    border-top-left-radius: 80px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 40px;
    border-bottom-left-radius: 0;
}

.img-licencia .post-thumbnail img {
    margin: 4rem 4rem;
    width: 300px;
    height: auto;
}

.texto-pie.col-12 {
    text-align: center;
    margin-top: 20px;
}

.col-12.img-licencias.d-flex.flex-wrap.justify-content-center {
    margin-left: 1.8rem;
}

.lic-cont-1 p {
    text-align: justify;
}

.p-lic {
    margin-bottom: 0;
}

.lic-cont-2 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.team {
    width: 100%;
}

.team p {
    text-align: justify;
    font-size: 1rem;
}

.img-team {
    width: 100%;
    max-width: 30rem;
    height: auto;
    border-radius: 1rem;
    /* Esquinas redondeadas para diseño moderno */
    margin-bottom: 1rem;
    /* Espaciado en pantallas pequeñas */
}

@media (max-width: 768px) {

    .team p {
        font-size: 0.9rem;
    }

    .img-team {
        max-width: 100%;
        margin-bottom: 2rem;
        /* Espaciado adicional en pantallas pequeñas */
    }
}

@media (max-width: 768px) {
    body {
        justify-content: flex-start;
        /* Alinea al inicio en pantallas grandes */
        align-items: flex-start;
    }
}

.logos {
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
    /* Opcional */
}

.logos-slide {
    display: grid;
    grid-template-rows: repeat(1, 1fr);
    /* Tres filas exactas */
    grid-auto-flow: column;
    /* Organiza los logos en columnas, llenando filas */
    /* Espaciado entre logos */
    animation: scroll 15s linear infinite;
    /* Animación continua */
}

.logos-slide-2 {
    display: grid;
    grid-template-rows: repeat(1, 1fr);
    /* Tres filas exactas */
    grid-auto-flow: column;
    /* Organiza los logos en columnas, llenando filas */
    /* Espaciado entre logos */
    animation: scroll 15s linear infinite reverse;
    /* Animación continua */
}

.logo-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px;
    /* Ajusta el tamaño del logo */
}

.logo-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}


.distribuidores h2 {
    text-align: center;
    margin-top: 30px;
}

.cont-video {
    padding: 0 60px;
}

.video img {
    width: 300px;
    height: auto;
}

.contenedor-videos {
    margin: 20px;
}

.socios {
    margin-bottom: 3rem;
}

.log {
    margin-top: 3rem;
    text-align: center;
}


footer {
    background-color: #000000;
    padding-top: 5rem;
}

footer h4 {
    color: white;
}

footer p {
    text-align: justify;
}

.icono {
    background-color: #000000;
    padding: 1px 8px;
}


/* Single servicios */

.contenido-servicios {
    padding: 2rem;
    background-color: white;
    margin-bottom: 20px;
    width: 100%;
    position: relative;
    margin-top: -2rem;
    z-index: 10;
    display: flex;
    justify-content: center;
}

.contenido-servicios img {
    border-radius: 30px;
}

.cont-2 {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cont-2 h2 {
    font-weight: 600;
}

/*.cont-2 p{
    margin-bottom: 4rem;
}*/




.hero-servicios {
    display: flex;
    justify-content: center;
    align-items: center;
}

.h1-servicios {
    color: #fff;
}



/* Single servicios */


.mail {
    margin-left: 70px;
}

.contact {
    margin: 30px;
}

.img-servicios {
    height: auto;
}

.contenido-contact {
    padding: 2rem;
    background-color: white;
    margin-bottom: 20px;
    width: 100%;
    position: relative;
    margin-top: -2rem;
    z-index: 10;
    display: flex;
    justify-content: center;
}

.contenedor-poli {
    padding: 2rem;
    background-color: white;
    margin-bottom: 20px;
    width: 100%;
    position: relative;
    margin-top: -2rem;
    z-index: 10;
}

.btn-contacto {
    margin: 40px 30px;
}

.direccion {
    margin-top: 30px;
}

.contenido-contact h5 {
    color: #858585
}

.contenido-contact h4 {
    font-weight: bold;
}

a.btn-footer {
    padding: 0.5rem;
    height: 40px;
}

.faq-acor.accordion-button.collapsed::after {
    background: var(--icon-plus-circle);
}

.faq-acor.accordion-button:not(.collapsed)::after {
    background: var(--icon-dash-circle);
    transform: var(--bs-accordion-btn-icon-transform);
}

.faq-acor.accordion-button::after {
    transition: transform 0.4s ease-in-out;
}

.contenido-faq {
    padding: 2rem;
    background-color: white;
    margin-bottom: 20px;
    width: 100%;
    position: relative;
    margin-top: -2rem;
    z-index: 10;
}

.faq-titulo {
    font-size: 20px;
}

.faq-acor.accordion-button:not(.collapsed) {
    background: linear-gradient(25deg, rgba(72, 206, 179, 1) 17%, rgba(0, 130, 192, 1) 85%);
    color: white;
    transition: transform 0.4s ease-in-out;
}

.dropdown-menu.depth_0 {
    width: 30vw;
    max-width: 900px;
    padding: 1rem;
}

.dropdown-menu.depth_0 .menu-item {
    width: 100%;
    margin: 0;
    margin-top: 1rem;
}


.dropdown-menu.depth_0 .menu-item a.nav-link {
    text-align: center;
    height: 100%;
}