.texto {
    text-align: center;
}

html {
  font-size: 14px;
  overflow-x: hidden;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

/*body {
  margin-bottom: 60px;
}*/

.rojo {
    color: #b30807
}

.bg-negro{
    background-color: black
}

.nav-items li a {
    border-bottom: 2px solid #ccc;
    transition: border-bottom-color 0.3s ease, border-bottom-width 0.3s ease;
}

    .nav-items li a:hover {
        border-bottom-color: #b30807;
        border-bottom-width: 4px;
    }

/*.fondo {
    background-image: url('/img/saas.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;*/
        /*opacity: 0.9;*/
/*}
.contenedor-texto {
    background-color: rgba(100, 100, 100, 0.6);
}

    .fondo div h5,
    .fondo div p {
        color: white;
        font-weight: 600;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }*/

.fondo {
    background-image: url('/img/saas.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    /*opacity: 0.9;*/
}

.contenedor-texto {
    /*background-color: rgba(255, 255, 255, 0.4);*/
    color: white;
    /*background: white;
    padding: 2rem;
    border-radius: 1rem;
    max-width: 600px;
    width: 90%;*/
}

.fondo h5,
.fondo p {
    /*color: white;*/
    font-weight: 600;
    /*text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);*/
}

.fondo h1 {
    color: #b30807; /* rojo fuerte */
    font-weight: 700;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

.especialidades {
    background-image: url('/img/fondo-especialidades.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed; /* efecto parallax simple */
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.nuestras-especialidades {
    text-align: center;
    color: #b30807;
    margin-top: 50px;
    margin-bottom: 20px;
}
    .especialidades div h2,
    .especialidades .card-title {
        color: white;
        /*font-weight: bold;*/
    }

    .slider{
        margin: 0 auto;
        width: 800px;
        max-width: 100%;
        text-align: center;
    }

    .slider input[type=radio]{
        display: none
    }

    .slider label{
        cursor: pointer;
        text-decoration: none;
    }

    .slides{
        padding: 30px;
        border: 3px solid #ccc;
        background: #fff;
        position: relative;
        z-index: 1;
    }

    .overflow{
        width: 100%;
        overflow: hidden;
    }

    #slide1:checked ~ #slides .inner {
        margin-left: 0;
    }

    #slide2:checked ~ #slides .inner {
        margin-left: -100%;
    }

    #slide3:checked ~ #slides .inner {
        margin-left: -200%;
    }

    #slide4:checked ~ #slides .inner {
        margin-left: -300%;
    }

    #slides .inner {
        transition: margin-left 800ms cubic-bezier(0.770, 0.000, 0.175, 1.000);
        width: 400%;
        line-height: 0;
        height: 300px;
    }

    #slides .slide {
        width: 25%;
        float: left;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%;
        color: #fff;
    }

    #slides .slide_1 {
        background-image:url('/img/gestion.png');
    }

    #slides .slide_2 {
        background-image: url('/img/gestion.png');
    }

    #slides .slide_3 {
        background-image: url('/img/gestion.png');
    }

    #slides .slide_4 {
        background-image: url('/img/gestion.png');
    }

    #controls {
        margin: -180px 0 0 0;
        width: 100%;
        height: 50px;
        z-index: 3;
        position: relative;
    }

    #controls label {
        transition: opacity 0.2s ease-out;
        display: none;
        width: 50px;
        height: 50px;
        opacity: .4;
    }

        #controls label:hover {
            opacity: 1;
        }

    #slide1:checked ~ #controls label:nth-child(2),
    #slide2:checked ~ #controls label:nth-child(3),
    #slide3:checked ~ #controls label:nth-child(4),
    #slide4:checked ~ #controls label:nth-child(1) {
        background: url(https://image.flaticon.com/icons/svg/130/130884.svg) no-repeat;
        float: right;
        margin: 0 -50px 0 0;
        display: block;
    }

    #slide1:checked ~ #controls label:nth-last-child(2),
    #slide2:checked ~ #controls label:nth-last-child(3),
    #slide3:checked ~ #controls label:nth-last-child(4),
    #slide4:checked ~ #controls label:nth-last-child(1) {
        background: url(https://image.flaticon.com/icons/svg/130/130882.svg) no-repeat;
        float: left;
        margin: 0 0 0 -50px;
        display: block;
    }

    #bullets {
        margin: 150px 0 0;
        text-align: center;
    }

        #bullets label {
            display: inline-block;
            width: 10px;
            height: 10px;
            border-radius: 100%;
            background: #ccc;
            margin: 0 10px;
        }

    #slide1:checked ~ #bullets label:nth-child(1),
    #slide2:checked ~ #bullets label:nth-child(2),
    #slide3:checked ~ #bullets label:nth-child(3),
    #slide4:checked ~ #bullets label:nth-child(4) {
        background: #444;
    }

/* Clase para el botón: Usaremos 'btn-profit' */
.btn-profit {
    color: #fff;
    background-color: #b30807;
    border-color: #b30807;
}

    .btn-profit:hover {
        color: #fff;
        background-color: #920606; /* Un color un poco más oscuro para el hover */
        border-color: #920606;
    }

/* Estilo para el encabezado de la tabla (thead) */
.table-profit thead {
    background-color: #b30807;
    color: #fff;
}

/* Para el título y el spinner de carga */
.text-profit {
    color: #b30807 !important;
}

/* Estilos para el botón Buscar */
.btn-profit {
    color: #fff;
    background-color: #b30807;
    border-color: #b30807;
}

    .btn-profit:hover {
        color: #fff;
        background-color: #8c0606;
        border-color: #8c0606;
    }

/* Estilo para el encabezado de la tabla */
.table-profit {
    background-color: #b30807 !important;
    color: #fff;
}

/* Estilo para la barra de búsqueda redondeada (opcional) */
.rounded-pill-end {
    border-top-right-radius: 50rem !important;
    border-bottom-right-radius: 50rem !important;
}

.border-profit-hover:hover {
    box-shadow: 0 0 0 .2rem rgba(179, 8, 7, .25); /* Un sutil efecto de enfoque rojo */
}

    @media screen and (max-width: 900px) {
        #slide1:checked ~ #controls label:nth-child(2),
        #slide2:checked ~ #controls label:nth-child(3),
        #slide3:checked ~ #controls label:nth-child(4),
        #slide4:checked ~ #controls label:nth-child(1),
        #slide1:checked ~ #controls label:nth-last-child(2),
        #slide2:checked ~ #controls label:nth-last-child(3),
        #slide3:checked ~ #controls label:nth-last-child(4),
        #slide4:checked ~ #controls label:nth-last-child(1) {
            margin: 0;
        }

        #slides {
            max-width: calc(100% - 140px);
            margin: 0 auto;
        }
    }

    .hover-shadow:hover {
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
        transform: translateY(-4px);
    }

    .titulo-contacto {
        font-size: 2rem;
        font-weight: bold;
        border-bottom: 2px solid #B50809;
        margin-bottom: 2rem;
        display: inline-block;
    }
    .fondoContacto {
        background-image: url('/img/contacto.jfif');
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
        padding-top: 2rem;
        min-height: calc(100vh - 350px);
    }

    .tituloCards {
        color: #B50809;
        font-weight: bold;
        margin-bottom: 1rem;
        font-size: 1.5rem;
    }

    .tituloSobreNosotros {
        display: inline-block;
        border-bottom: 3px solid #B50809;
        padding-bottom: 0.3rem;
        font-size: 2rem;
        font-weight: bold;
    }


@media (max-width: 991.98px) {
    .nav-items li {
        margin-top: 1rem;
        margin-bottom: 0.5rem;
    }
}