:root {
    --blanco: rgba(255,255,255,1); /* #FFFFFF  */
    --verdesagem: rgba(0,150,0,1); /* #009600  */
    --verdefondo: #267F00; /* footer background tone */
    --verdesagemhover: rgba(20,180,38,1); /* #14B428  */
    --verdeclaro: rgba(140,210,140,1); /* #E1FFE1  */
    --naranjacomein: rgba(255,128,64,1); /* #FF8040  */
}



/*** Spinner Start ***/

#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease-out, visibility 0s linear .5s;
    z-index: 99999;
 }

 #spinner.show {
     transition: opacity .8s ease-out, visibility 0s linear .0s;
     visibility: visible;
     opacity: 1;
 }

/*** Spinner End ***/

.bg-spectrumsbu {
    background-color: rgba(0,150,0,1) !important;
}

.bg-spectrumsbu-claro {
    background-color: rgba(153,211,168,1) !important;
}

.bg-sagem {
    color: black;
    background-color: #009600 !important;
}

.titulo-spectrumsbu {
    color: rgba(0,150,0,1) !important;
    font-weight: 600;
}

.subtitulo-spectrumsbu {
    color: black !important;
    font-weight: 500;
}

.dropdown-menu {
    background-color: rgba(140,210,140,1) !important;
}

.dropdown-item:hover {
    background-color: rgba(255,255,255,0.4); /* Fondo al pasar el mouse */
}

/*** Button Start ***/
.btn {
    font-weight: 600;
    transition: .5s;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-md-square {
    width: 46px;
    height: 46px;
}

.btn-lg-square {
    width: 58px;
    height: 58px;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.back-to-top {
    position: fixed;
    width: 50px;
    height: 50px;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

/*** Button End ***/


/*** Topbar Start ***/

.topbar .top-info {
    letter-spacing: 1px;
}

.topbar .top-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

.topbar .top-link a {
    margin-right: 10px;
}

#note {
    width: 500px;
    overflow: hidden;
}

#note small {
    position: relative;
    display: inline-block;
    animation: mymove 12s infinite;
    animation-timing-function: ease-in-out;
}

@keyframes mymove {
    from {left: -100%;}
    to {left: 100%;}
}

/*** Topbar End ***/


/*** Navbar Start ***/
.navbar .navbar-nav {
    padding: 15px 0;
}

.navbar .navbar-nav .nav-link {
    padding: 10px;
    color: var(--bs-white);
    font-size: 18px;
    outline: none;
    
}

    .navbar .navbar-nav .nav-link:hover,
    .navbar .navbar-nav .nav-link.active {
        color: var(--verdeclaro) !important;
    }

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "font awesome 5 free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        transition: .5s;
        opacity: 0;
    }
}

.navbar .nav-item:hover .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    transition: .5s;
    opacity: 1;
}

/*** Navbar End ***/


/*** About Start ***/

.about-infodisplay {
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
}

.parrafo {
    text-align: justify;
    font-weight: 500;
    font-size: calc(1rem + .7vw);
}

.aboutfotos img {
    height: auto;
    width: calc(20rem + 30vw);
    cursor: pointer;
    margin-top: 30px;
}

.aboutresponsive {
    display: flex;
    flex-direction: column; /* row; */
    align-content: center;
    gap: 3rem;
    padding: 1rem 0;
}

.aboutfotos {
    display: flex;
    justify-content: center;
}

@media (max-width: 1250px) {
    .aboutresponsive {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .parrafo {
        width: 100%;
    }

}

/*** About End ***/


/*** Product Start ***/

.product-infodisplay{
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
}

.parrafo {
    text-align: justify;
    font-weight: 500;
    font-size: calc(1rem + .7vw);
    padding: 1rem;
}

.productfotos img {
    height: auto;
    width: calc(20rem + 15vw);
    cursor: pointer;
    margin-top: 30px;
}

.productresponsive {
    display: flex;
    flex-direction: row;
    align-content: center;
    gap: 3rem;
    padding: 1rem;
}

@media (max-width: 1250px) {
    .productresponsive {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .parrafo {
        width: 100%;
        padding: 1rem;
    }

    .productfotos{
        display: flex;
        justify-content: center;
    }
}

/*** Product End ***/

/*** Carousel Start ***/

.carousel-item {
    position: relative;
}

.carousel-item::after {
    content: "";
    width: 100vw;
    height: auto;
    position: absolute;
    top: 0;
    left: 0;
   
    /*background: rgba(0, 0, 0, .6);*/
}

.carousel-caption {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.carousel-item p {
    max-width: 700px;
    margin: 0 auto 35px auto;
}

.carousel-control-prev {
    width: calc(2rem + 3vw);
    height: calc(2rem + 1vw);
    position: absolute;
    top: 50%;
    left: 0;
    background: var(--verdeclaro); 

    border-radius: 0 50px 50px 0;
    opacity: 1;
}

    .carousel-control-prev:hover {
        background: var(--verdesagem); 
        transition: .8s;
    }

.carousel-control-next {
    width: calc(2rem + 3vw);
    height: calc(2rem + 1vw);
    position: absolute;
    top: 50%;
    right: 0;
    background: var(--verdeclaro);
    border-radius: 50px 0 0 50px;
    opacity: 1;
}

.carousel-control-next:hover {
    background: var(--verdesagem);
    transition: .8s;
}

.carousel-caption .carousel-content a button.carousel-content-btn1 {
    background: var(--verdesagem);
    color: var(--bs-dark);
    opacity: 1;
    border: 0;
    border-radius: 20px;
}

.carousel-caption .carousel-content a button.carousel-content-btn1:hover {
    background: var(--verdeclaro);
    color: #ffffff;
    border: 0;
    opacity: 1;
    transition: 1s;
    border-radius: 20px;
}

.carousel-caption .carousel-content a button.carousel-content-btn2 {
    background: var(--verdeclaro);
    color: var(--bs-white);
    opacity: 1;
    border: 0;
    border-radius: 20px;
}

.carousel-caption .carousel-content a button.carousel-content-btn2:hover {
    background: var(--verdesagem);
    color: var(--bs-dark);
    border: 0;
    opacity: 1;
    transition: 1s;
    border-radius: 20px;
}

.carousel-caption h6,
.carousel-caption h4,
.carousel-caption h1,
.carousel-caption p {
    text-shadow: 5px 5px 5px rgba(0, 0, 0, 0.95);
}

.fotocarusel {
    width: 100%;
    height: auto;
}

.botones-carousel a,
.botones-carousel button {
    background-color: #d4fcd4; /* Verde muy claro */
    color: #145214; /* Verde muy oscuro */
    border: 2px solid #145214;
    transition: all 0.3s ease;
}

    .botones-carousel a:hover,
    .botones-carousel button:hover {
        background-color: #145214; /* Fondo verde oscuro */
        color: #d4fcd4; /* Texto verde claro */
        border-color: #d4fcd4;
    }



#carousel .carousel-indicators li {
    width: 10px;
    height: 10px;
    background: var(--verdeclaro);
    margin: 10px;
    border-radius: 5px;
    opacity: 1;
}

#carousel .carousel-indicators li:hover {
    background: var(--verdesagem);
    opacity: 1;
}

@media (max-width: 768px) {
    .carousel-caption p {
        display: none;
    }
}

@media (max-width: 490px) {
    .botones-carousel {
        flex-direction: column;
    }
}

@media (max-width: 992px) {
    .carousel-item {
        min-height: 500px;
    }

        .carousel-item img {
            max-height: 500px; /* limita altura máxima */
            height: auto;
            object-fit: cover;
            width: 100%; /* asegurar escala correcta */
        }

        .carousel-item h1 {
            font-size: 40px !important;
        }

        .carousel-item p {
            font-size: 16px !important;
        }
}

@media (max-width: 768px) {
    .carousel-item {
        min-height: 400px;
    }

        .carousel-item img {
            max-height: 400px; /* menor altura máxima en móviles */
            height: auto;
            object-fit: cover;
            width: 100%;
        }

        .carousel-item h1 {
            font-size: 28px !important;
        }

        .carousel-item p {
            font-size: 14px !important;
        }
}

/* Opcional: para pantallas muy pequeñas evitar crecimientos extra */
@media (max-width: 400px) {
    .carousel-item img {
        max-height: 250px;
        width: 90vw; /* ancho relativo al viewport */
        height: auto;
        object-fit: contain;
    }
}



.page-header {
    background: linear-gradient(rgba(0, 0, 0, .6), rgba(0, 0, 0, .6)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--bs-white);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-size: 18px;
    color: var(--bs-white);
}

/*** Carousel End ***/


/*** Services Start ***/

.services .services-item {
    box-shadow: 0 0 60px rgba(0, 0, 0, .2);
    width: 100%;
    height: 100%;
    border-radius: 10px;
    padding: 10px 0;
    position: relative;
}


.services-content::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    border-radius: 10px 10px 0 0;
    background: rgba(12, 216, 5, 0.8);
    transition: .5s;
}

.services-content::after {
    top: 0;
    bottom: auto;
    border-radius: 10px 10px 10px 10px;
}

.services-item:hover .services-content::after {
    height: 100%;
    opacity: 1;
    transition: .5s;
}

.services-item:hover .services-content-icon {
    position: relative;
    z-index: 2;
}

.services-item .services-content-icon i,
.services-item .services-content-icon p {
    transition: .5s;
}

.services-item:hover .services-content-icon i {
    color: var(--verdesagem) !important;
}

.services-item:hover .services-content-icon p {
    color: var(--bs-white);
}

/*** Services End ***/

/*** Contacto Start ***/
.contact-detail::before {
    position: absolute;
    content: "";
    height: 50%;
    width: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(rgb(210, 243, 235, 1), rgba(230, 250, 245, .3)), url(../img/background.jpg) center center no-repeat;
    background-size: cover;
    border-radius: 10px;
    z-index: -1;
}

.contact-map {
    background: #26d48c;
}

.contact-form {
    background: #26d48c;
}

/*** Contacto End ***/


/*** Footer Start ***/

.footer,
.footer.bg-sagem,
.container-fluid.footer {
    /* footer specific corporate green tone via variable */
    background-color: var(--verdefondo) !important;
}

.footer .container {
    background-color: transparent !important;
}

.footer .short-link a,
.footer .help-link a,
.footer .contact-link a {
    transition: .5s;
}

.footer .short-link a:hover,
.footer .help-link a:hover,
.footer .contact-link a:hover {
    letter-spacing: 1px;
}

.footer .hightech-link a:hover {
    background: var(--verdesagem);
    border: 0;
}

/* Force footer text and link color to white for contrast against dark green */
.footer,
.footer a,
.footer .text-secondary,
.footer .text-light,
.footer .text-white {
    color: #ffffff !important;
}

.footer hr {
    border-color: rgba(255,255,255,0.15) !important;
}

/*** Footer End ***/

/*** Logo Dinámico ***/

.logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

svg {
    width: 80%;
    max-width: 800px;
    height: auto;
}

path {
    stroke-width: 2;
    fill-opacity: 0;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.animar {
    animation: dibujar 3s ease-in-out forwards, rellenar 1s ease forwards 3s;
}

@keyframes dibujar {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes rellenar {
    to {
        fill-opacity: 1;
        stroke-width: 0;
    }
}

/*** Fin Logo Dinámico ***/

/* Solutions component styles moved from Layout/Solutions.razor */
.solutions-features {
}

/* Feature Card styles for Solutions component */
.feature-card-premium {
    position: relative;
    background: white;
    border: 3px solid transparent;
    border-radius: 15px;
    padding: 35px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden; /* clip child images so they don't overflow card */
    cursor: pointer;
    height: 100%;
}

.feature-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 1rem 2rem rgba(0, 150, 0, 0.2);
    border-color: #009600;
}

.feature-card-premium:hover .feature-number {
    color: rgba(0, 150, 0, 0.2) !important;
}

.feature-card-premium:hover .feature-icon-premium {
    transform: scale(1.1);
}

.feature-icon-logo {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-icon-premium {
    max-width: 100% !important;
}

/* spacing below icons across cards */
.feature-icon-premium {
    margin-bottom: 40px;
}

.feature-icon-logo {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: fit-content;
    max-width: 60%;
    margin-left: 0;
    margin-right: 0;
}

.feature-icon-logo img {
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    display: block;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
}

.large-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,150,0,0.15);
    padding: 10px;
}

.large-feature-icon {
    margin-bottom: 24px; /* extra separation for large icon */
}

/* Icon circle container - ensure perfect circular shape */
.icon-circle {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    flex-shrink: 0;
}

/* Deployment cards - keep no border for these specific ones */
.deployment-option {
    border: none !important;
}

.deployment-option:hover {
    border: none !important;
    border-color: transparent !important;
}

/* Spacing for badges and separation from the title */
.feature-badge-tech {
    margin-bottom: 16px; /* space between badges and the title */
}

.feature-badge-tech .badge {
    margin-right: 8px; /* space between badges */
}

@media (max-width: 576px) {
    .feature-badge-tech { margin-bottom: 12px; }
    .feature-badge-tech .badge { margin-right: 6px; }
}

/* Ensure logos in the three smaller solution cards share the same visual height */
@media (min-width: 768px) {
    .col-md-4 .feature-icon-premium {
        height: 70px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .col-md-4 .feature-icon-premium img {
        max-height: 70px !important;
        width: auto !important;
    }
}

.feature-image-wrapper img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
    object-fit: contain; /* prevent cropping while fitting */
}

.feature-card-premium:hover .feature-icon-logo {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 150, 0, 0.25) !important;
}

.feature-card-premium:hover .feature-icon-logo img {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.solution-features-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding: 15px 0;
}

.solution-feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    color: #666;
    font-size: 1.05rem;
    font-weight: 700;
}

.solution-feature-item i {
    margin-top: 0;
    margin-right: 8px;
    flex-shrink: 0;
    color: var(--verdesagem);
}

.solution-feature-item span { line-height: 1.5; }

.feature-image-wrapper { position: relative; border-radius: 12px; overflow: hidden; margin-top: auto; background: linear-gradient(135deg, rgba(0, 150, 0, 0.05) 0%, rgba(0, 150, 0, 0.1) 100%); padding: 20px; transition: all 0.3s ease; text-align: center; }
.feature-image-wrapper:hover { background: linear-gradient(135deg, rgba(0, 150, 0, 0.1) 0%, rgba(0, 150, 0, 0.15) 100%); transform: scale(1.02); }
.btn-service-link { display: block; text-decoration: none; }
.feature-logo-image { width: 100%; height: auto; display: block; transition: all 0.3s ease; margin: 0 auto; }
.feature-logo-image:hover { transform: scale(1.05); }

@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 991.98px) { .feature-card-premium { margin-bottom: 1.5rem; } }
