:root {
    --color-primary: #307582;
    --color-primary-dark: #173F49;
    --color-text: #2d2d2d;
    --color-text-light: #8d8a8a;
    --color-border: #e0e0e0;
}

.group {
    position: relative;
    width: 100%;
}

.input {
    font-size: 16px;
    padding: 14px 12px 14px 5px;
    display: block;
    width: 100%;
    border: none;
    border-bottom: 2px solid var(--color-border);
    background: transparent;
    color: var(--color-text);
    transition: border-color 0.3s ease;
}

.input:focus {
    outline: none;
    border-bottom-color: var(--color-primary);
}

.input:focus ~ label,
.input:valid ~ label,
.input:not(:placeholder-shown) ~ label {
    top: -20px;
    font-size: 13px;
    color: var(--color-primary);
    font-weight: 500;
}

label {
    color: var(--color-text-light);
    font-size: 16px;
    font-weight: 400;
    position: absolute;
    pointer-events: none;
    left: 5px;
    top: 14px;
    transition: 0.3s ease all;
    -moz-transition: 0.3s ease all;
    -webkit-transition: 0.3s ease all;
}

.bar {
    position: relative;
    display: block;
    width: 100%;
}

.bar:before,
.bar:after {
    content: '';
    height: 2px;
    width: 0;
    bottom: 0;
    position: absolute;
    background: var(--color-primary);
    transition: 0.3s ease all;
    -moz-transition: 0.3s ease all;
    -webkit-transition: 0.3s ease all;
}

.bar:before {
    left: 50%;
}

.bar:after {
    right: 50%;
}

.input:focus ~ .bar:before,
.input:focus ~ .bar:after {
    width: 50%;
}

.inputContainer {
    max-height: 400px;
    overflow-y: auto;
}

/* Mejoras para accesibilidad */
.input::placeholder {
    color: transparent;
}

.input:focus::placeholder {
    color: var(--color-text-light);
    opacity: 0.5;
}

/* Estilos para inputs con error (futuro) */
.input.error {
    border-bottom-color: #e74c3c;
}

.input.error ~ label {
    color: #e74c3c;
}

.input.error ~ .bar:before,
.input.error ~ .bar:after {
    background: #e74c3c;
}
