@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600&display=swap');

/* loader.css o al inicio de style.css */

#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    background-image: url('../images/background/svg/header.svg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#loader-wrapper.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid var(--sertrumex-green-dark);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1.5s linear infinite;
}

.loader-text {
    margin-top: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--sertrumex-green-light);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

:root {
    --sertrumex-green-dark: #208f2b;
    --sertrumex-green-light: #237c2c;
    --sertrumex-gray: #f8f9fa;
    --sertrumex-text-color: #333;

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Calibri', sans-serif;
}

.qs-title {
    color: #0b6147;
    font-size: 2.2rem;
    font-family: 'Montserrat', Montserrat, sans-serif;
    text-transform: uppercase;
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

body {
    background-image: url('../images/background/svg/pattern-randomized.svg');
    background-repeat: repeat;
    background-size: auto;
    background-attachment: fixed;

    font-family: var(--font-body);
    color: var(--sertrumex-text-color);
}

h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

#productCarousel .carousel-inner {
    min-height: 500px;
}

#productCarousel .carousel-item {
    min-height: 500px;
    align-items: center;
}

#productCarousel .card-body {
    min-height: 150px;
}

#productCarousel .card-text {
    height: 90px;
    overflow: hidden;
}

/* Custom CSS para el modal de productos */
#productModal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

/* Opcional: Si quieres que el modal ocupe un porcentaje de la altura de la pantalla */
/* Esto puede ser problemático con modals muy pequeños */
#productModal .modal-dialog {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

#productModal .modal-content {
    max-height: calc(100vh - 4rem);
    display: flex;
    flex-direction: column;
}

.card-title {
    font-family: var(--font-heading);
    font-weight: 500;
}

header {
    background-image: url('../images/background/svg/header.svg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    font-family: 'Calibri Light', sans-serif !important;
    font-size: 1.2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    padding: 0.5rem 1rem;
}
.navbar {
    padding: 0.5rem 1rem;
    width: 100%;
}
.navbar-brand img {
    max-height: 50px;
}
.navbar .nav-link {
    font-weight: 500;
    color: rgb(0, 0, 0) !important;
    transition: font-size 0.3s ease, color 0.3s ease;
}

.navbar .nav-link:hover {
    color: var(--sertrumex-green-light) !important;
    font-size: 1.4rem
}

.navbar .btn-success {
    background-color: var(--sertrumex-green-dark);
    border-color: var(--sertrumex-green-dark);
    color: white !important;
}

.navbar .btn-success:hover {
    background-color: white;
    border-color: white;
    color: var(--sertrumex-green-dark) !important;
}

.navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

.contacto-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.texto-justificado {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

#productos .btn, #servicios .btn {
    background-color: var(--sertrumex-green-dark) !important;
    border-color: var(--sertrumex-green-dark) !important;
}

.btn-primary {
    background-color: var(--sertrumex-green-dark);
    border-color: var(--sertrumex-green-dark);
    font-family: var(--font-heading);
    font-weight: 500;
    --animate-duration: 2s;
    --animate-delay: 0.5s;
}

.btn-primary:hover {
    background-color: var(--sertrumex-green-light);
    border-color: var(--sertrumex-green-light);
}

.btn-outline-success {
    color: var(--sertrumex-green-dark);
    border-color: var(--sertrumex-green-dark);
    font-family: var(--font-heading);
    font-weight: 500;
}

.btn-outline-success:hover {
    background-color: var(--sertrumex-green-dark);
    color: white;
}

.hero-section {
    position: relative;
    background-color: #333;
    background-image: url('../images/background/home2.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* Pseudo-elemento para el degradado */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.6));
    transition: background 0.3s ease;
}

.hero-section .container {
    position: relative;
    z-index: 2;
    margin-top: 0;
    text-align: center;
    margin-right: auto;
    margin-left: auto;
}

.hero-section h1, .hero-section p {
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.card {
    border: none;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    min-height: 400px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    display: flex;
}

.card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card .card-text {
    padding-bottom: 15px;
    font-size: 1.3rem;
}

.card .card-title {
    padding-top: 20px;
    padding-bottom: 10px;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--sertrumex-green-dark);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15) !important;
}

.card.card-active {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-color: var(--sertrumex-green-dark);
    background-color: #f0fdf0;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

ul.list-unstyled li {
    padding-bottom: 1rem;
    padding-top: 1rem;
}

footer {
    background-image: url('../images/background/svg/footer.svg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    background-color: rgb(28, 113, 93);
}

h5{
    color: white;
}

h3 {
    color: rgb(28, 113, 93);
}

.compliance-section {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 2rem 0;
}

.edgepilot-title {
    color: var(--sertrumex-green-light);
    font-size: 2.2rem;
    font-family: 'Montserrat', Montserrat, sans-serif;
    text-transform: uppercase;
    margin-bottom: 2rem;
    letter-spacing: 2px;
    padding: 1rem;
}

.feature-card {
    background-color: white;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    border-color: var(--sertrumex-green-light);
}

.feature-card .card-body {
    padding: 1.5rem;
}

.feature-card .text-success {
    color: var(--sertrumex-green-dark) !important;
}

.features-box {
background-color: white;
border: 1px solid #e0e0e0;
transition: transform 0.3s ease, box-shadow 0.3s ease;
cursor: pointer;
border-radius: 0.75rem;
padding: 1.5rem;
margin-top: auto;
}

.features-box:hover {
transform: scale(1.03);
box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
border-color: var(--sertrumex-green-light);
}

.features-box h4 {
color: var(--sertrumex-green-dark);
}

.quienessomos-container {
    padding: 2rem;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 0.75rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.carousel-indicators [data-bs-target] {
    background-color: #686868;
    opacity: 0.8;
}

.carousel-indicators .active {
    background-color: #28a745;
    opacity: 1;
}

.carousel-indicators [data-bs-target]:hover {
    background-color: #00ff3c;
    opacity: 0.9;
}

.bg-secondary {
    background-color: #f1f1f1 !important;
}

.bg-light {
    padding: 2rem;
}

.bg-light2 {
    padding: 2rem;
    background-color: #ffffff;
}

.client-logo-wrapper {
    width: 150px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
    margin: 0 auto;
}

.client-logo-wrapper img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    padding: 5px;
}

.align-items-center {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 3rem 0 2rem 0;
    text-align: center;
}


/* Estilos para la sección de contadores con ID: #sertrumex-counters */
#sertrumex-counters {
    background-image: url('../images/background/svg/section_mas-de.svg');   
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    background-color: var(--sertrumex-green-dark);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

#sertrumex-counters{
    color: white !important;
    font-size: 2.2rem;
    text-transform: lowercase;
    letter-spacing: 2px;
}

.counter-item {
    background-color: transparent;
    box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.counter-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15) !important;
}

.counter-icon .fa-solid {
    color: white !important;
}

.counter-num {
    font-size: 2rem;
    line-height: 1;
    color: white !important;
    font-weight: bold;
}

.counter-label {
    font-size: 1rem;
    text-transform: lowercase;
    color: white !important;
}

.mas-de {
    background: #f6f6f6;
    padding: 3rem 1rem 2rem 1rem;
    text-align: center;
}

.mission-vision-card {
    background-color: #ffffff;
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.08);
    height: 100%;
    transition: all 0.3s ease-in-out;
}

.mission-vision-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.75rem 1.5rem rgba(0,0,0,.12);
    border-color: var(--sertrumex-green-dark);
}

.mission-vision-card .qs-title {
    color: var(--sertrumex-green-dark);
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
}

.text-sertrumex-green {
    color: var(--sertrumex-green-dark) !important;
}

.text-justify {
    text-align: justify !important;
}

/* Estilos específicos para el carrusel de marcas */
.brands-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.brands-section h2 {
    margin-bottom: 40px;
    color: #28a745;
    font-family: 'Montserrat', Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.clients-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.clients-section h2 {
    margin-bottom: 40px;
    color: #28a745;
    font-family: 'Montserrat', Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.swiper {
    width: 100%;
    padding: 20px 0;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
    cursor: grab;
    padding: 2rem;
}

.swiper-slide:active {
    cursor: grabbing;
}

.swiper-slide img {
    display: block;
    width: auto;
    max-width: 90%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    opacity: 0.4;
    transition: opacity 0.3s ease-in-out;
}

.swiper-slide img:hover {
    opacity: 1; 
}

@media (min-width: 576px) {
    .swiper-slide {
        height: 100px;
    }
    .swiper-slide img {
        max-height: 80px;
    }
}
@media (min-width: 768px) {
    .swiper-slide {
        height: 110px;
    }
    .swiper-slide img {
        max-height: 90px;
    }
}

@media (min-width: 1024px) {
    .swiper-slide {
        height: 120px;
    }
    .swiper-slide img {
        max-height: 100px;
    }
}

/* ESTILOS PARA APARTADO DE SERVICIOS */
/*--------------------------------------------------------------------------------------------------------*/
.dynamic-service-section {
    position: relative;
    padding: 2rem;
    border-radius: 0.5rem;
    overflow: hidden;
    color: white;
    min-height: 250px;
    display: none;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.service-detail-bg {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Overlay para asegurar la legibilidad del texto blanco */
.service-content-overlay {
    position: relative;
    z-index: 2;
    padding: 1rem;
}

/* Pseudo-elemento para el fondo oscuro semi-transparente */
.service-detail-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Estilo para el botón Cerrar cuando el fondo es oscuro */
.close-service-section {
    color: var(--bs-white) !important;
    border-color: var(--bs-white);
}

.close-service-section:hover {
    color: var(--sertrumex-green) !important; 
    background-color: var(--bs-white);
}

/* Estilos para el botón Solicitar Información */
.btn-outline-light.btn-block {
    border-color: var(--bs-white);
    color: var(--bs-white);
}

.btn-outline-light.btn-block:hover {
    background-color: var(--sertrumex-green);
    border-color: var(--sertrumex-green);
    color: var(--bs-white);
}

/* Para la línea horizontal sobre fondos oscuros */
.border-white {
    border-top: 1px solid rgba(255, 255, 255, 0.3) !important;
}