/* =========================================
   VARIABLES DE MARCA
========================================= */
:root {
    --fx-red: #B2181E;
    --fx-red-dark: #8A1217;
    --fx-grey: #4A4D50;
    --fx-grey-light: #DDDDDD;
    --fx-dark: #121416;
    --fx-light: #F4F6F8;
}

/* =========================================
   ESTILOS GENERALES
========================================= */
html,
body {
    background-color: var(--fx-dark) !important;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.letter-spacing-1 {
    letter-spacing: 1px;
}

/* =========================================
   NAVBAR
========================================= */
.navbar {
    padding: 15px 0;
    background-color: var(--fx-dark) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    height: 100px;
}

.navbar img {
    height: 60px;
    filter: drop-shadow(5px 5px 8px var(--fx-grey));
    margin: 10px;
    margin-right: 55px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 20%;
    padding: 5px;
    width: auto;
    transition: all 0.3s ease;
}

.navbar img:hover {
    height: 70px;
    filter: drop-shadow(5px 5px 8px var(--fx-grey-light));
    margin: 5px;
    margin-right: 50px;
    background-color: rgba(255, 255, 255, 0.9);
}

.navbar-brand span,
.nav-link {
    background-color: var(--fx-dark);
    color: #ffffff !important;
    letter-spacing: 1px;
    font-size: 1.25rem;
    font-weight: 600;
}

.nav-link:hover {
    color: var(--fx-red) !important;
}

/* =========================================
   HERO SECTION
========================================= */
.hero-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 40px;
    text-align: center;
    background-image: url('../images/slide1.jpg');
    /* imagen pendiente de cambioo */
    background-size: cover;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/slide1.jpg'); 
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    text-transform: uppercase;
    text-shadow: 2px 2px 12px rgb(0, 0, 0);
    margin: 25px 0;
    color: #ffffff;
}

.hero-section p {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #d8d8d8;
}

/* =========================================
   GRID PRINCIPAL 2 x N
========================================= */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;

    width: 100%;
    background-color: var(--fx-red);
    padding: 2px;
}

/* =========================================
   TARJETAS
========================================= */
.bento-item {
    background-color: var(--fx-grey);

    min-height: 420px;

    padding: 50px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    transition: all 0.3s ease;
}

.bento-item:hover {
    background-color: #55585c;
}

.bento-item h3 {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.bento-item p {
    color: #dcdcdc;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* =========================================
   BADGES
========================================= */
.badge {
    width: fit-content;
    margin-bottom: 20px;
    font-size: 0.8rem;
    letter-spacing: 1px;
    padding: 10px 18px;
}

/* =========================================
   BOTONES
========================================= */
.btn-danger {
    border-radius: 0;
    background-color: var(--fx-red);
    border: 1px solid var(--fx-red);
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background-color: var(--fx-red-dark);
    border-color: var(--fx-red-dark);
}

.btn-solicitar {
    display: block;
    margin: 50px auto;
    padding: 18px 50px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 0;
    background-color: var(--fx-red);
    border: 2px solid var(--fx-red);
    color: #ffffff;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-solicitar:hover {
    background-color: transparent;
    color: var(--fx-red);
    border: 2px solid var(--fx-red);
}

/* =========================================
   EXPERIENCIA
========================================= */
.experience-section {
    background-color: var(--fx-grey);
    padding: 80px 30px;
    text-align: center;
}

.experience-section h3 {
    color: #ffffff;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.experience-section p {
    max-width: 900px;
    margin: 0 auto;
    color: #d8d8d8;
    line-height: 1.8;
}

/* =========================================
   CARRUSEL INFINITO DE CLIENTES (LOGOS)
========================================= */
.clients-section {
    background-color: var(--fx-grey-light);
    /* background-color: #08090A; Un tono un poco más oscuro que el fondo principal para darle profundidad */
    padding: 60px 0;
    color:var(--fx-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden; /* Evita que el carrusel desborde la pantalla */
}

.logo-slider {
    /* background-color: var(--fx-light); */
    filter: drop-shadow(0 4px 6px var(--fx-dark)); /* Sombra sutil para dar profundidad */
    width: 100%;
    height: 100px;
    margin: auto;
    overflow: hidden;
    position: relative;
}

/* Sombras en los bordes para dar efecto de que los logos aparecen y desaparecen suavemente */
.logo-slider::before,
.logo-slider::after {
    content: "";
    position: absolute;
    top: 0;
    width: 250px; /* Ancho de la sombra */
    height: 100px;
    z-index: 2;
}

.logo-slider::before {
    left: 0;
    background: linear-gradient(to right, #08090A 0%, rgba(8, 9, 10, 0) 100%);
}

.logo-slider::after {
    right: 0;
    background: linear-gradient(to left, #ffffff 0%, rgba(246, 247, 248, 0) 100%);
}

/* Contenedor que hace la animación */
.slide-track {
    display: flex;
    width: calc(250px * 12); 
    animation: scrollLogos 35s linear infinite; /* 35 segundos de velocidad, ajusta a tu gusto */
}

/* Pausa el carrusel si el usuario pone el mouse encima */
.slide-track:hover {
    animation-play-state: paused;
}

.slide {
    height: 100px;
    width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Estilo de los logos: Grises por defecto, toman color al hacer hover */
.slide img {
    max-width: 100%;
    max-height: 80px;
    filter: grayscale(40%) opacity(0.5); /* Estilo institucional apagado */
    transition: filter 0.4s ease, transform 0.4s ease;
    padding: 10px;

}

.slide img:hover {
    padding: 5px;
    filter: grayscale(0%) opacity(1); /* Vuelven a su color normal */
    transform: scale(1.15); /* Ligero zoom */
    border-radius: 20%;;
    background-color: var(--fx-grey-light); /* Fondo gris claro al hacer hover para destacar el logo */
}

/* Animación Clave (Keyframes) */
@keyframes scrollLogos {
    0% { 
        transform: translateX(0); 
    }
    100% { 
        /* Debe moverse exactamente la mitad de su tamaño total para hacer el loop perfecto */
        transform: translateX(calc(-250px * 6)); 
    }
}

/* =========================================
   FOOTER
========================================= */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background-color: var(--fx-dark);
    color: var(--fx-light);
    padding: 30px 20px;
    text-align: center;
}

footer p {
    margin-bottom: 10px;
}

footer small {
    color: var(--fx-grey-light);
    opacity: 0.7;
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 991px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .hero-section {
        padding: 60px 25px;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .bento-item {
        min-height: auto;
        padding: 35px 25px;
    }

    .bento-item h3 {
        font-size: 1.6rem;
    }

    .bento-item p {
        font-size: 1rem;
    }

    .logo-slider::before,
    .logo-slider::after {
        width: 50px;
    }

    .btn-solicitar {
        padding: 15px 30px;
        font-size: 1rem;
        margin: 30px auto;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 50px 20px;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .bento-item {
        padding: 25px 20px;
    }

    .bento-item h3 {
        font-size: 1.3rem;
    }

    .bento-item p {
        font-size: 0.95rem;
    }

    .badge {
        font-size: 0.75rem;
        padding: 8px 14px;
    }
}