
.section-soluciones {
    padding: 6rem 0;
    background-color: #f8f9fa;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .solutions-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .ds-solutions-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .ds-solutions-grid > .solution-card {
        grid-column: span 2;
    }

    .ds-solutions-grid > .solution-card:nth-child(4) {
        grid-column: 2 / span 2;
    }

    .ds-solutions-grid > .solution-card:nth-child(5) {
        grid-column: 4 / span 2;
    }
}

.solution-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    position: relative;
    height: 100%;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.solution-title {
    font-size: 1.4rem;
    font-weight: 500;
    color: #1a1a1a;
    transition: all 0.3s ease;
    margin: 0 0 1rem 0;
    z-index: 2;
    position: relative;
    line-height: 1.3;
    letter-spacing: 0.02em;
}

.solution-desc {
    font-size: 0.95rem;
    font-weight: 400;
    color: #5f6877;
    margin-top: 0;
    max-height: none;
    opacity: 1;
    overflow: visible;
    transition: all 0.4s ease;
    z-index: 2;
    position: relative;
    line-height: 1.7;
}

.solution-card:hover {
    background: #03173b;
    border-color: #03173b;
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(3, 23, 59, 0.2);
}

.solution-card:hover .solution-title {
    color: #ffffff;
}

.solution-card:hover .solution-desc {
    color: rgba(255, 255, 255, 0.82);
}

.ds-solutions-grid > .solution-card .solution-title {
    margin-bottom: 0;
}

@media (hover: hover) and (pointer: fine) {
    .ds-solutions-grid > .solution-card .solution-desc {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        margin-top: 0;
        transform: translateY(10px);
        transition: max-height 0.35s ease, opacity 0.28s ease, transform 0.35s ease, margin-top 0.35s ease;
    }

    .ds-solutions-grid > .solution-card:hover .solution-desc {
        max-height: 380px;
        opacity: 1;
        margin-top: 0.9rem;
        transform: translateY(0);
    }
}

@media (hover: hover) and (pointer: fine) and (min-width: 992px) {
    .ds-solutions-grid > .solution-card {
        min-height: 156px;
        padding: 1.2rem 1.15rem;
        justify-content: center;
        border-color: rgba(3, 23, 59, 0.12);
        box-shadow: 0 8px 18px -16px rgba(3, 23, 59, 0.35);
    }

    .ds-solutions-grid > .solution-card .solution-title {
        font-size: 1.1rem;
        line-height: 1.28;
        margin: 0;
        max-width: 100%;
    }

    .ds-solutions-grid > .solution-card:hover {
        min-height: 300px;
        padding: 1.9rem 1.55rem;
        justify-content: flex-start;
        transform: translateY(-8px) scale(1.015);
        box-shadow: 0 26px 36px -14px rgba(3, 23, 59, 0.45);
    }
}

@media (hover: none), (pointer: coarse) {
    .ds-solutions-grid > .solution-card .solution-desc {
        max-height: none;
        opacity: 1;
        margin-top: 0.75rem;
        transform: none;
    }
}

.star-ribbon {
    position: absolute;
    top: 0;
    right: 2rem;
    width: 32px;
    height: 48px;
    background: #E73E1D;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 8px;
    color: white;
    z-index: 5;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 6px rgba(231, 62, 29, 0.3);
}

.star-ribbon::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 0;
    border-left: 16px solid transparent;
    border-right: 16px solid transparent;
    border-top: 8px solid #E73E1D;
}

.ds-cert-inline {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: nowrap;
    overflow: visible;
    padding: 0.2rem 0.1rem 0.9rem;
}

.ds-cert-item {
    position: relative;
    width: 186px;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: transform 0.25s ease;
    cursor: pointer;
    z-index: 1;
}

.ds-cert-item:hover {
    transform: translateY(-3px);
    z-index: 15;
}

.ds-cert-box {
    width: 100%;
    height: 206px;
    border: 1px solid rgba(3, 23, 59, 0.14);
    border-radius: 14px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px -18px rgba(3, 23, 59, 0.5);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.ds-cert-item:hover .ds-cert-box {
    border-color: rgba(3, 23, 59, 0.28);
    box-shadow: 0 16px 34px -22px rgba(3, 23, 59, 0.6);
}

.ds-cert-icon {
    width: 74%;
    height: 74%;
    object-fit: contain;
}

.ds-cert-name {
    margin: 0.75rem 0 0;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    color: #1e1e1f;
    min-height: 2.6rem;
}

.ds-cert-tooltip {
    position: absolute;
    top: 50%;
    left: calc(100% + 12px);
    width: 286px;
    transform: translateY(-50%) translateX(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    background: #03173b;
    color: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.9rem 1rem;
    box-shadow: 0 16px 36px -16px rgba(3, 23, 59, 0.7);
    z-index: 12;
}

.ds-cert-tooltip::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -7px;
    width: 12px;
    height: 12px;
    background: #03173b;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateY(-50%) rotate(45deg);
}

.ds-cert-item-left .ds-cert-tooltip {
    left: auto;
    right: calc(100% + 12px);
    transform: translateY(-50%) translateX(-8px);
}

.ds-cert-item-left .ds-cert-tooltip::before {
    left: auto;
    right: -7px;
    border-left: none;
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ds-cert-item:hover .ds-cert-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.ds-cert-item-left:hover .ds-cert-tooltip {
    transform: translateY(-50%) translateX(0);
}

.ds-cert-tooltip h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 0.4rem;
    letter-spacing: -0.2px;
}

.ds-cert-tooltip p {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.92);
}

.ds-awards-title {
    margin: 0 0 1.4rem;
    font-size: 1.28rem;
    font-weight: 600;
    color: #03173b;
    text-align: center;
}

.ds-awards-carousel .certificado .ct-imagen {
    width: 212px;
    height: 126px;
    margin: 0 auto;
    border: 1px solid rgba(3, 23, 59, 0.12);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 22px -18px rgba(3, 23, 59, 0.5);
    padding: 1rem;
}

.ds-awards-carousel .certificado .ct-imagen img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.ds-awards-carousel .certificado h3 {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
    margin-top: 0.65rem;
}

@media (max-width: 992px) {
    .ds-cert-inline {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 1.2rem;
    }

    .ds-cert-item {
        width: 164px;
    }

    .ds-cert-box {
        height: 178px;
    }

    .ds-cert-tooltip {
        top: calc(100% + 10px);
        left: 50%;
        right: auto;
        width: min(76vw, 320px);
        transform: translateX(-50%) translateY(8px);
    }

    .ds-cert-tooltip::before {
        top: -7px;
        left: 50%;
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        transform: translateX(-50%) rotate(135deg);
    }

    .ds-cert-item-left .ds-cert-tooltip {
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(8px);
    }

    .ds-cert-item-left .ds-cert-tooltip::before {
        right: auto;
        top: -7px;
        left: 50%;
        border-right: none;
        border-top: none;
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        transform: translateX(-50%) rotate(135deg);
    }

    .ds-cert-item:hover .ds-cert-tooltip,
    .ds-cert-item-left:hover .ds-cert-tooltip {
        transform: translateX(-50%) translateY(0);
    }

    .ds-awards-title {
        font-size: 1.15rem;
    }
}
