﻿/* General */
html {
    font-size: 14px;
}
body {
    font-family: 'Inter', sans-serif;
}  
/* Sidebar flotante en móviles */
@media (max-width: 991px) {
    #sidebarMenu {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        width: 250px;
        z-index: 1030;
        overflow-y: auto;
        background-color: #fff;
        transition: transform 0.3s ease-in-out;
    }

    .flex-grow-1 {
        margin-left: 0;
    }

    /* Oscurecer el fondo cuando sidebar abierto */
    .sidebar-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1020;
        display: none;
    }

        .sidebar-backdrop.show {
            display: block;
        }
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    min-height: 100vh;
    background: #f8f9fa;
}

/* Sidebar moderno */
#sidebarMenu {
    width: 250px;
    min-height: 100vh;
    background: #fff;
    border-right: 1px solid #ddd;
    transition: all 0.3s ease;
    box-shadow: 2px 0 5px rgba(0,0,0,0.05);
    padding-top: 20px;
}

#sidebarMenu .nav-link {
    font-size: 0.95rem;
    color: #495057;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 6px;
    transition: all 0.2s ease-in-out;
}

#sidebarMenu .nav-link:hover {
    background: #e9ecef;
    color: #212529;
    font-weight: 500;
}

#sidebarMenu .nav-link.active {
    background: #4361ee;
    color: white !important;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(67,97,238,0.4);
}

/* Navbar superior */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.navbar-brand {
    color: #4361ee !important;
}

/* Botones */
.btn:focus, .btn:active:focus {
    box-shadow: 0 0 0 0.2rem rgba(67,97,238,0.25);
}

/* Footer */
.footer {
    font-size: 0.85rem;
    background: #f1f3f5;
}


/* Sidebar logo solo imagen */
.sidebar-logo {
    padding: 15px 0;
}

.sidebar-logo img {
    max-height: 60px; /* Altura máxima del logo */
    width: auto; /* Mantiene proporción */
    display: block;
    transition: transform 0.2s ease; /* efecto hover opcional */
}

/* Opcional: efecto hover ligero */
.sidebar-logo img:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .sidebar-logo img {
        max-height: 45px; /* Logo más pequeño en móviles */
    }
}

.main-img-container {
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f7f7;
    border-radius: 4px;
    overflow: hidden; /* Evita que la imagen se salga del contenedor */
}

.main-img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 768px) {
    .main-img-container {
        height: auto; /* Que crezca según la imagen */
        margin-bottom: 20px;
    }

    .main-img {
        width: 100%; /* Ocupa todo el ancho disponible */
        height: auto; /* Mantiene proporción */
    }
    
    .col-md-1, .col-md-6, .col-md-5 {
        flex: 0 0 100%;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
    
    .ps-5 {
        padding-left: 0 !important;
    }
}

/*Nav bar moviéndose*/
.scroll-text-container {
    width: 70%; /* NAV más estrecho */
    height: 25px;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    display: flex;
    align-items: center;
}

.scroll-text {
    display: inline-block;
    padding-left: 150%; /* MÁS separación antes de entrar y al salir */
    font-size: 15px;
    font-weight: bold;
    color: black;
    animation: scroll 12s linear infinite;
}

/* Detener al hacer hover */
.scroll-text-container:hover .scroll-text {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}


/*Menu Lateral izq con scroll*/

/*#sidebarMenu {
    height: 100vh;*/ /* Sidebar ocupa el alto total de la pantalla */
    /*overflow-y: auto;*/ /* Scroll solo dentro del menú */
    /*overflow-x: hidden;*/ /* Evitar scroll horizontal */
    /*position: fixed;*/ /* Sidebar fijo */
    /*top: 0;
    left: 0;
    width: 250px;*/ /* Ajusta el ancho si quieres */
    /*z-index: 1030;*/ /* Para evitar que quede detrás del navbar */
/*}*/

/* Ajustar contenido principal para que no quede debajo del menú */
/*.content-wrapper {
    margin-left: 250px;*/ /* Igual al ancho del sidebar */
/*}

@media (max-width: 991px) {*/
    /* En móvil se comporta como collapse normal */
    /*#sidebarMenu {
        position: fixed;
        width: 240px;
    }

    .content-wrapper {
        margin-left: 0;
    }
}*/

/*Correccion Movil*/
html, body {
    max-width: 100%;
    overflow-x: hidden !important;
}



@media (max-width: 768px) {
    #sidebarMenu {
        width: 200px !important; /* Antes: 250px */
        max-width: 200px !important;
    }
}


.sidebar-logo img {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain;
}


@media (max-width: 768px) {
    .navbar {
        padding: 6px 10px !important;
    }

    main {
        padding: 10px !important;
    }

    .scroll-text {
        font-size: 13px !important;
    }
}


@media (max-width: 768px) {
    .col-md-1, .col-md-6, .col-md-5, .col-*, [class*="col-"] {
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
}

.text-justify {
    text-align: justify;
}

.USD {
   color:forestgreen;
   font-weight: bold;
}
.MN {
    color: saddlebrown;
    font-weight: bold;
}

/* Cinta diagonal "Nuevo" / "Actualizado" en la esquina superior derecha de la tarjeta
   (requiere que el contenedor tenga position: relative y overflow: hidden) */
.card-ribbon {
    position: absolute;
    top: 25px;
    right: -42px;
    width: 160px;
    min-width: 160px;
    box-sizing: border-box;
    padding: 3px 0;
    white-space: nowrap;
    overflow: hidden;
    transform: rotate(45deg);
    transform-origin: center;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.2;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
    z-index: 20;
    pointer-events: none;
}

.ribbon-nuevo {
    background: #198754;
}

.ribbon-actualizado {
    background: #dc3545;
}

/* Punto de estado en el menú lateral (nuevo / actualizado esta semana) */
.nav-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: 4px;
    vertical-align: middle;
    box-shadow: 0 0 0 2px #fff;
}

.dot-nuevo {
    background: #198754;
}

.dot-actualizado {
    background: #dc3545;
}

/* ===== HOME INFOENSAMBLE ONLY ===== */

.home-infoensamble {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background-color: #f5f7fa;
    color: #333;
}

    /* Container */
    .home-infoensamble .container {
        max-width: 1100px;
        margin: auto;
        padding: 0 20px;
    }

    /* HERO */
    .home-infoensamble .hero {
        background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
        color: white;
        padding: 90px 0;
        text-align: center;
    }

        .home-infoensamble .hero h1 span {
            color: #00e0ff;
        }

        .home-infoensamble .hero p {
            max-width: 700px;
            margin: auto;
            font-size: 1.1rem;
            opacity: 0.9;
        }

    /* SERVICES */
    .home-infoensamble .services {
        padding: 70px 0;
    }

        .home-infoensamble .services h2 {
            text-align: center;
            margin-bottom: 50px;
        }

    .home-infoensamble .service-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 25px;
    }

    .home-infoensamble .service-card {
        background: white;
        border-radius: 12px;
        padding: 30px;
        text-align: center;
        box-shadow: 0 10px 25px rgba(0,0,0,0.08);
        transition: transform .3s, box-shadow .3s;
    }

        .home-infoensamble .service-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.15);
        }

        .home-infoensamble .service-card .icon {
            font-size: 2.2rem;
            margin-bottom: 15px;
        }

    /* GAMING */
    .home-infoensamble .gaming {
        background: #111;
        color: white;
        padding: 70px 0;
        text-align: center;
    }

        .home-infoensamble .gaming p {
            max-width: 700px;
            margin: auto;
            opacity: 0.85;
        }

    /* WHY US */
    .home-infoensamble .why-us {
        padding: 70px 0;
    }

        .home-infoensamble .why-us h2 {
            text-align: center;
            margin-bottom: 40px;
        }

    .home-infoensamble .benefits {
        display: flex;
        justify-content: center;
        gap: 30px;
        flex-wrap: wrap;
    }

    .home-infoensamble .benefit {
        background: #fff;
        padding: 15px 25px;
        border-radius: 30px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    }

    /* CTA */
    .home-infoensamble .cta {
        background: linear-gradient(135deg, #25d366, #128c7e);
        color: white;
        padding: 70px 0;
        text-align: center;
    }

    .home-infoensamble .btn-whatsapp {
        display: inline-block;
        margin-top: 20px;
        background: white;
        color: #128c7e;
        padding: 14px 30px;
        border-radius: 30px;
        font-weight: bold;
        text-decoration: none;
        transition: transform .2s, box-shadow .2s;
    }

        .home-infoensamble .btn-whatsapp:hover {
            transform: scale(1.05);
            box-shadow: 0 8px 20px rgba(0,0,0,0.25);
        }

    /* FOOTER */
    .home-infoensamble .footer {
        background: #0b0b0b;
        color: #aaa;
        text-align: center;
        padding: 20px 0;
        font-size: 0.9rem;
    }
