@keyframes revelarTitulo {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

body {
    background: #000000;
    color: #f3f4f6;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.clients-section {
    position: relative;
    /* Full-width section that contains a full-bleed background layer.
       Background is rendered via ::before so it doesn't affect layout or cause overflow. */
    width: 100%;
    left: 0;
    transform: none;
    padding: 40px 0;
    box-sizing: border-box;
    overflow: hidden; /* clip any accidental overflow from children */
}

.clients-section::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image: 
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.7) 0%,   /* arriba oscuro */
            rgba(0, 0, 0, 0.3) 40%,  /* transición */
            rgba(0, 0, 0, 0) 100%    /* abajo transparente */
        ),
        var(--clients-bg, url('/static/img/default.webp'));

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    z-index: 0;
}

.clients-section > .container {
    position: relative; /* keep content above the background layer */
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0px;
    margin-top: 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 0px;
}

.section-header p {
    color: #ffffff;
    font-size: 1.2rem;
    margin-top:12px;
}

.clients-grid {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    padding: 0 15px;
}

.client-item {
    background: linear-gradient(145deg, #111115, #1a1a22);
    border: 1px solid #222227;
    border-radius: 20px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 0.95rem;
    font-weight: 400;
    color: #e5e7eb;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    min-width: 0;
    flex-wrap: wrap;
}

.client-content {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
}

.client-content span {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    white-space: normal;
    line-height: 1.3;
}

.client-dot {
    width: 7px;
    height: 7px;
    background: #d28510;
    border-radius: 50%;
    box-shadow: 0 0 8px #d28510;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.client-arrow {
    color: #55555c;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-weight: 300;
    flex-shrink: 0;
}


.client-item:hover .client-dot {
    transform: scale(1.3);
}

.client-item:hover .client-arrow {
    color: #d28510;
    transform: translateX(3px);
}

.filler-stats {
    max-width: 1200px;
    margin: 60px auto 0 auto;
    background: #111115;
    border: 1px solid #222227;
    border-radius: 16px;
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    gap: 24px;
    animation: aparecerBloque 0.8s ease-out forwards;
}

.stat-item h3 {
    font-size: 2.2rem;
    color: #d28510;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-item p {
    color: #d7d9de;
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

@keyframes aparecerBloque {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .clients-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }
    .section-header h1 {
        font-size: 2.1rem;
    }
}

@media (max-width: 768px) {
    .clients-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .client-arrow {
        display: none;
    }
    .client-item {
        padding: 12px 14px;
        font-size: 0.9rem;
    }
    .filler-stats {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: px;
        margin-top: 40px;
    }
    .stat-item h3 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .clients-grid {
        grid-template-columns: 1fr 1fr; /* 👈 2 columnas */
        gap: 10px;
    }

    .section-header h1 {
        font-size: 1.7rem;
    }

    .section-header p {
        font-size: 0.95rem;
    }

    .client-item {
        padding: 12px 14px;
        font-size: 14px;
    }
    .meet2 {
        margin-top: 25px !important;
        margin-bottom: 10px !important;
    }
}

@keyframes revelarTextoSuperior {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 0.8; transform: translateY(0); }
}

@keyframes entradaTarjeta {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.titulo-procesos { opacity: 1; }
.tarjeta-animable { opacity: 1; }
.texto-superior { opacity: 1; }

.texto-superior.activo {
    animation: revelarTextoSuperior 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.titulo-procesos.activo {
    animation: revelarTitulo 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.tarjeta-animable.activo:nth-child(1) {
    animation: entradaTarjeta 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.1s forwards;
}
.tarjeta-animable.activo:nth-child(2) {
    animation: entradaTarjeta 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.2s forwards;
}
.tarjeta-animable.activo:nth-child(3) {
    animation: entradaTarjeta 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.3s forwards;
}

.seccion-procesos {
    background: #000000;
    color: #ffffff;
    padding: 0px 0px;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin-top: 0px;
}

.titulo-procesos {
    font-size: 2.5rem;
    font-weight: 600;
    max-width: 700px;
    margin: 0 auto 4rem auto;
    line-height: 1.3;
    letter-spacing: -0.5px;
    color: #ffffff;
}

#texto-sup-target {
        font-size: 2rem; /* Más pequeño para móviles */
    }
@media (max-width: 768px) {
    .seccion-procesos {
        margin-top: 10px;
        padding: 10px 15px;
    }
    .titulo-procesos {
        font-size: 1.7rem;
        text-align: center;
        margin-bottom: 2rem;
    }
    .texto-superior {
        font-size: 1.2rem !important;
        letter-spacing: 1px !important;
        margin: 0px auto 20px !important;
    }
}

.texto-superior {
    margin: 30px auto 8px auto;
    max-width: 900px;
}

.tarjeta-animable {
    padding: 20px;
    margin-bottom: 20px;
}

.premium-card {
    margin: 0;
    padding: 0;
}

.contenido-card {
    padding: 32px 28px;
}

.clientes-grid .client-item {
    margin-bottom: 24px;
}

.meet {
    min-height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 40px auto 40px auto;
    margin-top: -10px;
}

.meet2 {
    min-height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 40px auto 40px auto;
}


@media (max-width: 576px) {
    .meet {
        margin-top: 0px;
        margin-bottom: 30px;;
    }
    .btn-solutions {
        width: 60%;
        text-align: center;
    }
    
}

.premium-card {
    position: relative;
    overflow: hidden;
    height: 100%;
    border-radius: 16px;
    background: #13171c;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.imagen-card {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}

.imagen-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: none;
}

.imagen-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0%) brightness(90%);
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.contenido-card {
    padding: 15px 15px;
}

@media (max-width: 768px) {
    .imagen-card {
        height: 150px;
    }
    .contenido-card {
        padding: 12px 20px;
    }
}

.icono-contenedor {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(27, 54, 93, 0.2);
    border: 1px solid rgba(27, 54, 93, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a76a8;
    margin-bottom: 15px;
    transition: all 0.4s ease;
}

.icono-contenedor svg {
    width: 20px;
    height: 20px;
    display: block;
    stroke-width: 2;
    overflow: visible;
}

@media (max-width: 768px) {
    .icono-contenedor {
        width: 40px;
        height: 40px;
        margin-bottom: 16px;
    }
    .icono-contenedor svg {
        width: 151px;
        height: 20px;
    }
}

.subtitulo-proceso {
    font-size: 1.6rem;
    font-weight: 550;
    margin-bottom: 15px;
    color: #f39c12;
}

.descripcion-proceso {
    font-size: 1.1rem;
    color: #f6f7f7;
    line-height: 1.6;
    text-align: center;
}

@media (max-width: 768px) {
    .subtitulo-proceso {
        font-size: 1.35rem;
        margin-bottom: 8px;
    }
    .descripcion-proceso {
        font-size: 0.96rem;
        line-height: 1.5;
    }
}

.btn-solutions {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 10px;
    background: #f29100;
    color: #000000;
    font-size: 1.3rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-solutions:hover {
    background-color: rgba(237, 154, 22, 0.1);
    color: #f29100 !important;
    border-color: #f29100;
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(237, 154, 22, 0.5);
}

.btn-meet {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 10px;
    background: #f29100;
    color: #000000;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-meet:hover {
    background:rgb(12, 11, 11);
    color: #f29100 !important;
    border-color: #f29100;
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(237, 154, 22, 0.5);
}


.premium-card:hover {
    transform: translateY(-8px);
    background: #000000;
}

.premium-card:hover img {
    transform: scale(1.05);
    filter: grayscale(0%) brightness(100%);
}

.premium-card:hover .icono-contenedor {
    background: rgba(243, 156, 18, 0.15);
    border-color: rgba(243, 156, 18, 0.6);
    color: #f39c12;
}

.titulo-procesos.banner-strategy {
    margin: 0 auto 4rem auto;
}


@media (max-width: 575.98px) {
    #texto-sup-target {
        font-size: 1.5rem; /* Más pequeño para móviles */
        margin-top: 0px !important;   
        margin-bottom: 30px !important;
    }

    /* Reduce el margen superior e inferior de la tarjeta en móviles */
    .tarjeta-animable {
        margin-top: 10px !important;    /* Cambia 10px por el valor que desees */
        margin-bottom: 0px !important; /* Cambia 10px por el valor que desees */
    }
}
