/*ABOUT SALVADIS*/
.text-image-right-section {
    background-color: #303030;

}

.image-text-right {
    color: #fff;
    margin: 0 auto;
    box-sizing: border-box;
    height: auto;
    max-width: var(--site-max-width);

}

.section-text {
    padding-right: 100px !important;

}

.image-text-right .btn {
    color: #fff;

}

.image-text-right p {
    color: #fff;

}

.texto-imagen {
    padding: 20px;

}

.image-text-right img {
    width: 80%;
    border-radius: 8px;
    position: relative;
    display: block;
    margin-left: auto;
    margin-right: 0;

}

.container-fluid {
    padding: 50px 60px;

}

.container-fluid p {
    font-size: 1rem;

}

.bg-grey {
    background-color: #f6f6f6;

}

.logo-small {
    color: #E49B21;
    font-size: 50px;

}

.logo {
    color: #FFC107;
    font-size: 200px;
    align-items: center;
    margin-left: 5vw;

}

/* SALVADIS EN CIFRAS */
.stats-section {
    background-color: #ffedd9;
    padding: 60px 20px;
    display: flex;
    align-items: flex-start !important;
    /* Alinea la primera columna arriba */
    justify-content: center;
    gap: 10px;
    /* Reduce la distancia entre las columnas */
}

.stats-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--site-max-width);
    margin: 0 auto;

}

/* Columna Izquierda (Título) */
.stats-title {
    flex: 1;
    margin-right: 0;
    text-align: left;

}

.stats-title h2 {
    font-size: 2.5rem;
    color: #303030;
    font-weight: 600;
    text-align: left;
    padding-right: 50px;
    line-height: 1.25;
    Letter-spacing: -0.3px;

}

.stats-title h2 em {
    font-family: 'Poppins', sans-serif;
    font-style: italic;
    font-size: 2.5rem;
    color: #E8A844;
    /* Color del texto en cursiva */
    line-height: 1.25;
    Letter-spacing: -0.3px;
}

/* Columna Derecha (Texto y Cifras) */
.stats-content {
    flex: 2;
    text-align: left;

}

.stats-content h3 {
    color: #303030;

}

.stats-content p {
    margin-top: 10px;
    color: #303030;
    font-size: 1rem;

}

/* Números y etiquetas */
.stats-grid {
    display: flex;
    justify-content: flex-start;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;

}

.stat {
    text-align: center;

}

.number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #E8A844;
    /* Color principal de los números */
    text-align: center !important;

}

.label {
    display: block;
    font-size: 1rem;
    color: #303030;
    font-weight: bold;
    margin-top: 5px;
    text-transform: uppercase;

}

/*VALOR SOBRE NOSOTROS*/
.text-image-left-section {
    background-color: #fff;

}

.image-text-left {
    max-width: var(--site-max-width);
    margin: 0 auto;

}

/* Imagen */
.text-left img {
    width: 75%;
    border-radius: 8px;
    display: block;
    margin-left: 0;
    margin-right: auto;

}

.text-left-text h2 {
    color: #303030;

}

/* Lista de características */
.features-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    font-size: 16px;

}

.features-list li {
    display: flex;
    align-items: flex-start;
    /* Alineación superior */
    gap: 15px;
    /* Espacio entre el icono y el texto */
    margin-bottom: 20px;
    color: #303030;
    line-height: 1.5;

}

.feature-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    /* Evita que el icono se reduzca */
}

.feature-text {
    display: flex;
    flex-direction: column;

}

.features-list strong {
    margin-bottom: 5px;
    /* Espaciado entre título y texto */
    font-size: 17px;

}

.features-list span {
    font-size: 16px;
    color: #505050;

}


/*Preguntas*/
.carousel-questions {
    position: relative;
    overflow: hidden;
    background-image: url('../images/background_questions.webp');
    background-size: cover;
    background-position: center;
    min-height: 170px;
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;

}

.carousel-questions .carousel-inner {
    width: 100%;
    height: auto;
    min-height: 130px;
    position: relative;
    z-index: 2;
    overflow: hidden;

}

.carousel-questions .carousel-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transform: translateX(100%);
    will-change: transform, opacity;

}

.carousel-questions .carousel-slide.active {
    animation: questionSlideIn 0.7s ease forwards;

}

.carousel-questions .carousel-slide.exit {
    animation: questionSlideOut 0.7s ease forwards;

}

@keyframes questionSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);

    }

to {
    opacity: 1;
    transform: translateX(0);

}


}

@keyframes questionSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);

    }

to {
    opacity: 0;
    transform: translateX(-100%);

}


}

.carousel-questions h4 {
    color: #fff;
    -webkit-text-fill-color: #fff;
    -webkit-text-stroke: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75), 0 0 1px rgba(0, 0, 0, 0.9);
    font-size: clamp(1.8rem, 2.2vw, 2.3rem);
    line-height: 1.3;
    padding: 0 30px;
    margin-bottom: 0px !important;
    margin-top: 0px !important;

}

.carousel-questions .cta-overlay {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.58) 0%,
        rgba(0, 0, 0, 0.64) 100%
    );
}

/*Servicios*/
#cards-section-white {
    background-color: #fff;

}

#cards-section-white h2 {
    color: #303030;

}

.cards-section h3 {
    margin-bottom: 0;

}

#cards-section-white h4 {
    font-size: 1.2rem;

}

#services {
    padding-bottom: 110px;
    background-color: #fff;

}

#services h2 {
    color: #303030;

}

.btn {
    color: #242424;
    cursor: pointer;

}

.btn:hover {
    font-weight: bold;
    transform: translateX(10px);

}

/* Industrias */
.cards-section {
    background-color: #303030;
    padding: 60px 20px;
    text-align: center;

}

.cards-section h2 {
    font-size: 2rem;
    color: #fff;

}

.cards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;

}

.cards-grid-white {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;

}

.cards-grid .mvv img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.card-box {
    flex: 1 1 calc(22.222% - 20px);
    position: relative;
    padding: 30px 20px;
    border-radius: 8px;
    overflow: hidden;
    color: white !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;

}

.card-box h4, .card-box p {
    color: #fff !important;
    z-index: 2;
    position: relative;

}

.ind-quimica {
    background-image: url('../images/industria/industria-quimica.webp');

}

.ind-logistica {
    background-image: url('../images/industria/transporte.webp');

}

.ind-alimentaria {
    background-image: url('../images/industria/agroquimica.webp');

}

.ind-aduanas {
    background-image: url('../images/industria/puerto-aduanas.webp');

}

.card-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    /* opacidad ajustable */
    z-index: 1;
    transition: background 0.3s ease;

}

.card-box:hover {
    transform: translateY(-5px);

}

.card-box img {
    width: 60px;
    height: auto;
    margin-bottom: 20px;

}

.card-box h3 {
    font-size: 1.3rem;
    color: #E8A844;
    margin-bottom: 15px;

}

.card-box p {
    color: #505050;
    font-size: 1rem;

}

/*PRESENCIA INTERNACIONAL*/
.map-section {
    position: relative;
    background-color: #fff;
    background-position: center;
    padding: 80px;
    color: #303030;

}

.map-section-about-us {
    position: relative;
    background-color: #ffedd9;
    background-position: center;
    padding: 80px;
    color: #303030;

}

.map-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    max-width: var(--site-max-width);
    margin: 0 auto;
    box-sizing: border-box;
    height: auto;
    margin-left: 0;
    margin-right: 0;

}

.map-content--container {
    max-width: var(--site-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.map-left {
    flex: 1 1 50%;
    margin-left: 0;
    padding-right: 20px;

}

.map-left h2 {
    font-size: 2rem;
    color: #303030;
    margin-bottom: 20px;

}

.map-left h2 em {
    font-family: 'Poppins', sans-serif;
    font-style: italic;
    font-size: 2rem;
    color: #E8A844;
    /* Color del texto en cursiva */
}

.map-left p {
    font-size: 1rem;
    color: #303030;

}

.map-right {
    flex: 1 1 50%;
    text-align: right;
    padding-left: 0;
    padding-right: 0;
    margin-right: 0;

}

.map-right-about-us {
    flex: 1 1 50%;
    text-align: right;
    padding-left: 20px;
    margin-right: 0;

}

.map-right img {
    width: 45%;
    max-width: 500px;
    height: auto;

}

.map-right-about-us img {
    width: 55%;
    max-width: 500px;
    height: auto;

}

/* Economia Circular */
.stats-list-section {
    position: relative;
    background-color: #ffedd9;
    background-position: center;
    padding: 80px;
    color: #303030;

}

/* Offset for in-page anchors with fixed top bar + navbar */
.stats-list-section[id] {
    scroll-margin-top: 130px;

}

.stats-list-content,
.stats-list-content-services {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    max-width: var(--site-max-width);
    margin: 0 auto;
    box-sizing: border-box;
    height: auto;

}

.stats-list-section .container {
    width: 100%;
    max-width: var(--site-max-width);
}

.stats-list-left {
    flex: 1 1 50%;
    margin-left: 0;
    padding-right: 15px;

}

.stats-list-left h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #303030;

}

.stats-list-left h2 em {
    font-family: 'Poppins', sans-serif;
    font-style: italic;
    font-size: 2rem;
    color: #E8A844;
    /* Color del texto en cursiva */
}

.stats-list-left p {
    font-size: 1rem;
    color: #303030;

}

.stats-list-right {
    flex: 1 1 50%;
    text-align: center;
    padding-left: 50px;

}

.checklist {
    list-style: none;
    padding: 0;
    margin-top: 30px;

}

.checklist li {
    display: flex;
    align-items: flex-start;
    /* alinea el icono con la primera línea del texto */
    margin-bottom: 10px;
    font-size: 1rem;
    line-height: 1.4;
    /* mejora legibilidad */
}

.checklist img {
    width: 24px;
    margin-top: -2px;
    margin-right: 15px;

}

/* Sobre Salvadis: desplaza solo la columna derecha sin alterar su texto */
.stats-list-section-safety .stats-list-right {
    display: flex;
    justify-content: flex-end;
    padding-left: 50px;
}

.stats-list-section-safety .stats-list-right .checklist {
    width: 100%;
    max-width: 460px;
}

/* Sostenibilidad: imagen de la derecha alineada al borde derecho */
.stats-list-section-sostenibilidad .stats-list-right > img {
    margin-left: auto;
    margin-right: 0;
}

/* Industrias: desplaza solo la columna derecha sin alterar su texto */
.stats-list-section-adaptamos .stats-list-right {
    display: flex;
    justify-content: flex-end;
    padding-left: 50px;
}

.stats-list-section-adaptamos .stats-list-right .checklist {
    width: 100%;
    max-width: 460px;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
}

.stats-list-section-adaptamos .stats-list-right .checklist li {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
}

/* Solo en Soluciones: alinea a la izquierda el texto de la derecha en esta sección */
.page-servicios .stats-list-section-adaptamos .stats-list-right p {
    text-align: left;
}

/* Sistema de trabajo: imagen ADR a la derecha */
.stats-list-section-adr .stats-list-right > img {
    margin-left: auto;
    margin-right: 0;
}

/* Página Servicios: patrón fijo de posición de imágenes */
.page-servicios .stats-list-section.stats-list-section-black .stats-list-right > img {
    margin-left: auto;
    margin-right: 0;
}

.page-servicios .stats-list-section.stats-list-section-white .stats-list-right-white > img {
    margin-left: 0;
    margin-right: auto;
}

/* Página Industrias: patrón fijo de posición de imágenes */
.page-industrias .stats-list-section.stats-list-section-black .stats-list-right > img {
    margin-left: auto;
    margin-right: 0;
}

.page-industrias .stats-list-section.stats-list-section-white .stats-list-right-white > img {
    margin-left: 0;
    margin-right: auto;
}
