/* Componente Text Area */
.text-area {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    flex: 1 0 0;
    overflow: auto; /* Mostrar scrollbar si el texto excede la altura */
    color: var(--paleta-complementaria-azul-profundo, #0033A0);
    font-feature-settings: 'liga' off, 'clig' off;
    text-overflow: ellipsis;
    font-family: var(--desktop-body-regular-font-family);
    font-size: var(--desktop-body-regular-font-size);
    font-style: var(--desktop-body-regular-font-style);
    font-weight: var(--desktop-body-regular-font-weight);
    line-height: var(--desktop-body-regular-line-height);
    border: none;
    outline: none;
    background-color: transparent;
    resize: vertical; /* Permitir redimensionamiento */
    min-height: 90px; /* Altura mínima para 4 líneas */
    position: relative;
    width: 100%;
}

.text-area::placeholder {
    color: var(--tonos-neutros-pantone-429-C, #B4B4B5) !important;
}

.text-area-container {
    display: flex;
    padding: 12px;
    align-items: center;
    gap: 10px;
    align-self: stretch;
    border-radius: 12px;
    border: 1px solid var(--paleta-principal-azul-cielo-latino, #2D6DF6);
    width: 100%;
}

.text-area-container:hover {
    border-color: var(--paleta-complementaria-azul-profundo, #26328C);
    box-shadow: 0px 4px 8px 0px rgba(83, 89, 144, 0.80);
}

.text-area-container:focus-within,
.text-area:focus {
    border-color: var(--paleta-principal-azul-cielo-latino, #2D6DF6);
}

.text-area-container:active,
.text-area:active {
    border-color: var(--paleta-complementaria-azul-profundo, #0033A0);
}

.text-area-container:active:hover,
.text-area-container:active:focus {
    border-color: var(--paleta-complementaria-azul-profundo, #0033A0);
    box-shadow: 0px 4px 8px 0px rgba(83, 89, 144, 0.80);
}

.text-area:disabled,
.text-area:disabled:hover,
.text-area:disabled:focus,
.text-area:disabled:active {
    color: var(--tonos-neutros-pantone-429-C, #B4B4B5);
}

.text-area-container:has(.text-area:disabled) {
    border-color: var(--tonos-neutros-pantone-429-C, #B4B4B5);
}

/* Scrollbar styles */
.text-area::-webkit-scrollbar {
    width: 8px;
}

.text-area::-webkit-scrollbar-track {
    background: var(--fondos-digitales-fondo-5, #F8F8F8); /* Fondo del scroll gris claro */
}

.text-area::-webkit-scrollbar-thumb {
    background: var(--tonos-neutros-pantone-429-C, #B4B4B5);
    border-radius: 4px;
}

.text-area::-webkit-scrollbar-thumb:hover {
    background: var(--tonos-neutros-pantone-429-C, #888B8D);
}