/* ============================================
   INPUT GLASS - Clase base para todos los inputs
   ============================================ */
.input-glass {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    color: #f1f5f9;
    padding: 14px 18px;
    font-size: 16px;
    width: 100%;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.input-glass::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.input-glass:focus {
    border-color: #09742c;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

.input-glass:hover {
    background: rgba(255, 255, 255, 0.08);
}

.input-glass:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.input-glass.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.input-glass.success {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

/* ============================================
   VARIANTES (opcionales)
   ============================================ */

/* Input más pequeño */
.input-glass-sm {
    padding: 10px 14px;
    font-size: 14px;
    border-radius: 12px;
}

/* Input más grande */
.input-glass-lg {
    padding: 18px 22px;
    font-size: 18px;
    border-radius: 20px;
}

/* Input sin borde visible (solo fondo) */
.input-glass-ghost {
    border-color: transparent;
    background: rgba(255, 255, 255, 0.04);
}

.input-glass-ghost:focus {
    border-color: #6366f1;
    background: rgba(255, 255, 255, 0.06);
}

/* Input con icono a la izquierda */
.input-glass-icon-l {
    padding-left: 50px;
}

/* Input con icono a la derecha */
.input-glass-icon-r {
    padding-right: 50px;
}



.input-icon {
    left: 15px;
    background: #01180061;
    padding: 5px;
    display: flex !important;
    align-items: center;
    border-radius: 100px;
    width: 30px;
    height: 30px;
    z-index: 1;
    justify-content: center;
}

/* ============================================
   SELECT (para que combine con inputs)
   ============================================ */
.select-glass {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    color: #f1f5f9;
    padding: 14px 18px;
    font-size: 16px;
    width: 100%;
    outline: none;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}

.select-glass:focus {
    border-color: #63f176;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.select-glass option {
    background: #1e293b;
    color: #f1f5f9;
}

/* ============================================
   TEXTAREA
   ============================================ */
.textarea-glass {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    color: #f1f5f9;
    padding: 14px 18px;
    font-size: 16px;
    width: 100%;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
}

.textarea-glass:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.textarea-glass::placeholder {
    color: #94a3b8;
}

/* ============================================
   WRAPPER para inputs con iconos o botones
   ============================================ */
.input-glass-wrapper {
    display: flex;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.input-glass-wrapper:focus-within {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.input-glass-wrapper .input-glass,
.input-glass-wrapper .input_telefono,
.input-glass-wrapper input {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 14px 16px;
}

.input-glass-wrapper .input-glass:focus,
.input-glass-wrapper .input_telefono:focus,
.input-glass-wrapper input:focus {
    box-shadow: none !important;
}

/* Elementos dentro del wrapper (botones, iconos) */
.input-glass-wrapper .input-addon {
    display: flex;
    align-items: center;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.04);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    flex-shrink: 0;
    font-size: 14px;
}

.input-glass-wrapper .input-addon-right {
    border-right: none;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

/* ============================================
   CHECKBOX y RADIO (estilo glass)
   ============================================ */
.checkbox-glass {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkbox-glass:checked {
    background: #6366f1;
    border-color: #6366f1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.checkbox-glass:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.radio-glass {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.radio-glass:checked {
    background: #6366f1;
    border-color: #6366f1;
    box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.2);
}

.radio-glass:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

/* ============================================
   UTILIDADES
   ============================================ */

/* Para inputs con fondo oscuro */
.dark-input-glass {
    background: rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.06);
}

.dark-input-glass:focus {
    border-color: #6366f1;
    background: rgba(0, 0, 0, 0.3);
}

/* Para inputs con fondo claro */
.light-input-glass {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
    color: #1e293b;
}

.light-input-glass::placeholder {
    color: #64748b;
}

.light-input-glass:focus {
    background: rgba(255, 255, 255, 0.7);
    border-color: #6366f1;
}


.form-input{
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    color: #1f2937;
    transition: all 0.25s ease;
    width: 100%;
    font-size: 0.875rem;
    outline: none;
}
.dark .form-input {
    background: #1f2937;
    border-color: #374151;
    color: #f3f4f6;
}
.form-input:focus {
    border-color: #1a8a3f;
    box-shadow: 0 0 0 3px rgba(26,138,63,0.12);
}
.form-input::placeholder{
    color: #9ca3af;
}


.form-select {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    color: #1f2937;
    transition: all 0.25s ease;
    width: 100%;
    font-size: 0.875rem;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}
.dark .form-select {
    background: #1f2937;
    border-color: #374151;
    color: #f3f4f6;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239ca3af' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
}
.form-select:focus {
    border-color: #1a8a3f;
    box-shadow: 0 0 0 3px rgba(26,138,63,0.12);
}
.form-select option {
    background: white;
    color: #1f2937;
}
.dark .form-select option {
    background: #1f2937;
    color: #f3f4f6;
}

.form-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: #1a8a3f;
    border-radius: 0.25rem;
    cursor: pointer;
}


.form-textarea {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    color: #1f2937;
    transition: all 0.25s ease;
    width: 100%;
    font-size: 0.875rem;
    outline: none;
    resize: vertical;
    min-height: 80px;
}
.dark .form-textarea {
    background: #1f2937;
    border-color: #374151;
    color: #f3f4f6;
}
.form-textarea:focus {
    border-color: #1a8a3f;
    box-shadow: 0 0 0 3px rgba(26,138,63,0.12);
}
.form-textarea::placeholder {
    color: #9ca3af;
}
