﻿.delegados-comerciales {
    display: flex;
    flex-direction: column; /* Columna por defecto */
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 16px;
    gap: 24px;
    background-color: #EEF1FA;
    box-sizing: border-box;
    margin: 0 auto;
}

.seccion-header {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #EEF1FA;
    overflow: hidden;
    text-align:center
}

.imagen-mapa {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    box-shadow: none !important;
    background-color: #EEF1FA;
}


.titulo-formulario-delegados {
    font-family: Roboto;
    font-size: 28px;
    font-weight: 600;
    line-height: 32.81px;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    margin-top:40px;
    padding-bottom:8px
}

.subtitulo-formulario-delegados {
    font-family: Roboto;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    margin: 0;
}

.formulario {
    width: 100%;
    max-width: 558px;
    height:auto;
    gap: 24px;
    background: #EEF1FA;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    box-sizing: border-box;
}

.busqueda-delegados {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.form-busqueda {
    display: flex;
    gap: 16px;
    align-items: center;
    width: 100%;
    max-width: 510px;
    margin: 0 auto;
    flex-wrap: wrap; /* Adaptar para pantallas más pequeñas */
}

.form-control {
    height: 43px;
    padding: 8px 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}

select.form-control {
    appearance: none;
    background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'><path fill='%23cccccc' d='M2 0L0 2h4zM0 3l2 2 2-2z'/></svg>") no-repeat right 16px center;
    background-size: 8px 10px;
    padding-right: 32px;
    width: 100%;
    max-width: 240px; /* Ancho máximo */
    background-color:#FFFFFF
}

.error {
    color: red;
    font-size: 14px;
}

@media (min-width: 768px) {
    .delegados-comerciales {
        flex-direction: row;
        justify-content: center;
    }

    .seccion-header,
    .formulario {
        width: 50%;
    }
}

@media (max-width: 767px) {
    .form-busqueda {
        flex-direction: column; /* Cambiar a columna en pantallas pequeñas */
        gap: 12px;
    }

    .form-control {
        max-width: 100%; /* Ancho completo */
    }
}

#listaDelegados {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    /* gap: 16px; */
    /* padding: 16px; */
    list-style: none;
    margin: 0;
    padding:0;
}
#resultadosDelegados {
width:100%;
margin:0;
}

.delegado-card {
    /* background: #fff; */
    /* border: 1px solid #ddd; */
    /* border-radius: 8px; */
    padding: 16px;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
    text-align: left;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #34495e;
}

    .delegado-card strong {
        font-size: 16px;
        font-weight: 600;
/*        margin-bottom: 8px;
*/        display: block;
    }

    .delegado-card a {
        color: #18a08d;
        text-decoration: none;
    }

        .delegado-card a:hover {
            text-decoration: underline;
        }

/* Responsividad para móviles */
@media (max-width: 767px) {
    .delegado-card {
        font-size: 12px;
    }

    #listaDelegados {
        padding: 8px;
        gap: 12px;
    }
}


