/**
 * Seguridad Roles Component Styles
 * Mobile First
 */

.dh-seguridad-roles {
    background: var(--primary-white);
    padding: 40px 0;
}

.dh-seguridad-roles__container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.dh-seguridad-roles__content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    border-radius: 20px;
}

/* Header */
.dh-seguridad-roles__header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    width: 100%;
}

.dh-seguridad-roles__overline {
    display: flex;
    justify-content: flex-start;
    padding: 5px;
}

.dh-seguridad-roles__overline p {
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    line-height: 100%;
    letter-spacing: 1.44px;
    text-transform: uppercase;
    color: var(--primary-red-100);
    text-align: left;
    margin: 0;
    white-space: nowrap;
}

.dh-seguridad-roles__title {
    font-family: 'Lato', sans-serif;
    font-size: 22px;
    font-style: normal;
    font-weight: 700;
    line-height: 100%;
    color: var(--primary-black-100);
    margin: 0;
    text-align: left;
}

.dh-seguridad-roles__description {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.32;
    color: var(--primary-black-100);
    text-align: left;
    margin: 0;
    width: 100%;
}

/* Features List */
.dh-seguridad-roles__features {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-bottom: 7px;
    /* 16px gap + 7px = 23px to button */
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.dh-seguridad-roles__feature-item {
    display: flex;
    align-items: flex-start;
    /* Align icon with first line of text if wrapping */
    gap: 8px;
    /* Gap text - icon 8px */
}

.dh-seguridad-roles__feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 23px;
    height: 23px;
}

.dh-seguridad-roles__feature-icon img {
    width: 100%;
    height: 100%;
    display: block;
}

.dh-seguridad-roles__feature-text {
    color: var(--primary-black-100, #111B29);
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 132%;
    /* 21.12px */
}

/* Botón */
.dh-seguridad-roles__button-wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}

.dh-seguridad-roles__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 2px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.dh-seguridad-roles__button:hover {
    gap: 12px;
}

.dh-seguridad-roles__button:hover .dh-seguridad-roles__button-text {
    color: var(--primary-red-60);
}

.dh-seguridad-roles__button:hover .dh-seguridad-roles__button-icon path {
    stroke: var(--primary-red-60);
}

.dh-seguridad-roles__button-text {
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 100%;
    color: var(--primary-red-100);
    margin: 0;
    transition: color 0.3s ease;
}

.dh-seguridad-roles__button-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    display: block;
}

.dh-seguridad-roles__button-icon path {
    transition: stroke 0.3s ease;
}

.dh-seguridad-roles__button-icon path {
    stroke: var(--primary-red-100);
    transition: stroke 0.3s ease;
}

.dh-seguridad-roles__button:hover .dh-seguridad-roles__button-icon path {
    stroke: var(--primary-red-60);
}

/* Grid de logos */
.dh-seguridad-roles__logos {
    background: #F7F8FA;
    border-radius: 18px;
    padding: 30px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.dh-seguridad-roles__logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 1;
    height: auto;
    min-width: 0;
}

.dh-seguridad-roles__logo-item picture {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    max-width: 100%;
}

.dh-seguridad-roles__logo-img {
    max-width: 100%;
    max-height: 75px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Desktop Styles - Horizontal Layout starts at 768px */
@media (min-width: 768px) {
    .dh-seguridad-roles {
        padding: 60px 0;
    }

    .dh-seguridad-roles__container {
        gap: 40px;
        /* Smaller gap for tablet */
        align-items: flex-start;
    }

    .dh-seguridad-roles__content {
        flex-direction: row;
        gap: 30px;
        /* Smaller gap for tablet */
        align-items: center;
        padding: 0;
        max-width: 100%;
    }

    /* Left Column: Text */
    .dh-seguridad-roles__header {
        flex: 1 1 40%;
        /* Takes ~40% of space */
        min-width: 300px;
        /* Reduced min-width for tablet */
        max-width: 550px;
        width: auto;
    }

    .dh-seguridad-roles__title {
        font-size: 24px;
        line-height: 100%;
    }

    .dh-seguridad-roles__description {
        font-size: 16px;
    }

    /* Right Column: Logos Box */
    .dh-seguridad-roles__logos {
        flex: 1 1 55%;
        /* Takes remaining space */
        min-width: 0;
        width: auto;
        padding: 30px 20px;
        /* Reduced padding */
        gap: 20px 20px;
        /* Vertical gap, horizontal gap */

        /* Fluid Grid Logic */
        display: flex;
        flex-wrap: wrap;
        /* Allow wrapping */
        justify-content: center;
        /* Center items (3 top 2 bottom look) */
        align-items: center;
        height: auto;
        /* Let it grow if it wraps */
    }

    /* Equal height for Home Page */
    body.home .dh-seguridad-roles__content {
        align-items: stretch;
    }

    .dh-seguridad-roles__logo-item {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 5px;
    }

    .dh-seguridad-roles__logo-img {
        max-height: 70px;
        /* Slightly smaller for tablet */
        max-width: 100%;
        object-fit: contain;
    }
}

/* Large Desktop Adjustments */
@media (min-width: 1300px) {
    .dh-seguridad-roles__content {
        max-width: 1218px;
        margin: 0 auto;
        gap: 40px;
    }

    .dh-seguridad-roles__header {
        flex: 0 0 600px;
        /* Fixed width for text on large screens */
        min-width: 500px;
    }

    .dh-seguridad-roles__logos {
        flex: 1;
        padding: 40px;
        gap: 26px;
    }

    .dh-seguridad-roles__logo-img {
        max-height: 85px;
    }
}